Dune::LeafVTKWriter< G > Class Template Reference
[Visualization ToolKit (VTK)]
#include <vtkwriter.hh>
Inheritance diagram for Dune::LeafVTKWriter< G >:

Detailed Description
template<class G>
class Dune::LeafVTKWriter< G >
VTKWriter on the leaf grid.
Public Member Functions | |
LeafVTKWriter (const G &grid, VTKOptions::DataMode dm=VTKOptions::conforming) | |
Construct a VTK writer for the leaf level of a given grid. | |
void | addCellData (VTKFunction *p) |
Add a grid function that lives on the cells of the grid to the visualization. | |
void | addCellData (const V &v, std::string name) |
Add a grid function (represented by container) that lives on the cells of the grid to the visualization. | |
void | addVertexData (VTKFunction *p) |
Add a grid function that lives on the vertices of the grid to the visualization. | |
void | addVertexData (const V &v, std::string name) |
Add a grid function (represented by container) that lives on the cells of the grid to the visualization output. | |
void | clear () |
clear list of registered functions | |
void | write (const char *name, VTKOptions::OutputType ot=VTKOptions::ascii) |
write output; interface might change later | |
void | pwrite (const char *name, const char *path, const char *extendpath, VTKOptions::OutputType ot=VTKOptions::ascii) |
write output; interface might change later |
Member Function Documentation
void Dune::VTKWriter< G , G::template Codim< 0 >::LeafIndexSet >::addCellData | ( | VTKFunction * | p | ) | [inline, inherited] |
Add a grid function that lives on the cells of the grid to the visualization.
- Parameters:
-
p The function to visualize.
void Dune::VTKWriter< G , G::template Codim< 0 >::LeafIndexSet >::addCellData | ( | const V & | v, | |
std::string | name | |||
) | [inline, inherited] |
Add a grid function (represented by container) that lives on the cells of the grid to the visualization.
The container has to have random access via operator[] (e. g. std::vector). The value of the grid function for an arbitrary element will be accessed by calling operator[] with the id of the element.
- Parameters:
-
v The container with the values of the grid function for each cell. name A name to indentify the grid function.
void Dune::VTKWriter< G , G::template Codim< 0 >::LeafIndexSet >::addVertexData | ( | VTKFunction * | p | ) | [inline, inherited] |
Add a grid function that lives on the vertices of the grid to the visualization.
- Parameters:
-
p The function to visualize.
void Dune::VTKWriter< G , G::template Codim< 0 >::LeafIndexSet >::addVertexData | ( | const V & | v, | |
std::string | name | |||
) | [inline, inherited] |
Add a grid function (represented by container) that lives on the cells of the grid to the visualization output.
The container has to have random access via operator[] (e. g. std::vector). The value of the grid function for an arbitrary element will be accessed by calling operator[] with the id of the element.
- Parameters:
-
v The container with the values of the grid function for each cell. name A name to indentify the grid function.
void Dune::VTKWriter< G , G::template Codim< 0 >::LeafIndexSet >::write | ( | const char * | name, | |
VTKOptions::OutputType | ot = VTKOptions::ascii | |||
) | [inline, inherited] |
write output; interface might change later
- Parameters:
-
name The name of the file to write to. ot The output type for the file.
The documentation for this class was generated from the following file: