-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparaview.html
More file actions
49 lines (34 loc) · 2.45 KB
/
paraview.html
File metadata and controls
49 lines (34 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: ParaView Tips and Plugins
---
<h2> About ParaView </h2>
<a href="http://www.paraview.org"> ParaView </a> is an open-source data analysis and visualization application developed by <a href=http://www.kitware.com> Kitware</a>. It is the visualization tool of choice for AMCG for visualization of Fluidity output.
<h2> ParaView Plugins </h2>
Paraview allows for <a href=http://www.paraview.org/Wiki/ParaView/Plugin_HowTo>user developed plugins</a>, written in C++, to extend its functionality. At their most basic, paraview plugins can simply be new VTK filters, extending the pipeline to generate new output, along with an xml file describing the input requirements and output obligations of the filter.
<h2> A skeleton filter </h2>
The files for a basic C++ vtk filter looks something like the following:
<ul>
<li><a href="{{ site.url }}/paraview/Template.xml.html">Template.xml</a></li>
<li><a href="{{ site.url }}/paraview/vtkTemplate.h.html">vtkTemplate.h</a></li>
<li><a href="{{ site.url }}/paraview/vtkTemplate.cxx.html">vtkTemplate.cxx</a></li>
</ul>
<h2> Compiling plugins </h2>
ParaView and VTK both use CMake as their build system. CMake, another kitware product, attempts to automate the process for files based on the recursive processing of text files named <em>CMakeLists.txt</em> placed within the directory structure. For a ParaView plugin the required file looks something like the following:
<pre><code>
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
ADD_PARAVIEW_PLUGIN(
Template "0.0"
SERVER_MANAGER_XML Template.xml
SERVER_MANAGER_SOURCES vtkTemplate.h vtkTemplate.cxx
)
</code></pre>
For the macros presented here to resolve it is necessary to provide a full development installation of ParaView. If a packaged version is not available for your system this will require building your own version from source. This is typically a fairly simple process once again using cmake. Full instructions are available from the ParaView website.
<h2> A Control Volume filter</h2>
As a further example, lets build a more useful filter, in this case one to generate the control volume tesselation within a P1DG fluidity output:
<ul>
<li><a href="paraview/ShowCVs.xml.html">ShowCVs.xml</a></li>
<li><a href="paraview/vtkShowCVs.h.html">vtkShowCVs.h</a></li>
<li><a href="paraview/vtkShowCVs.cxx.html">vtkShowCVs.cxx</a></li>
</ul>
<img class=TextWrapped src="images/FEM_Example.png"><img class=TextWrapped src="images/CV_Example.png">