Dune::LevelVTKWriter< G > Class Template Reference
[Visualization ToolKit (VTK)]

#include <vtkwriter.hh>

Inheritance diagram for Dune::LevelVTKWriter< G >:

Dune::VTKWriter< G, G::template Codim< 0 >::LevelIndexSet >

List of all members.


Detailed Description

template<class G>
class Dune::LevelVTKWriter< G >

VTKWriter on a given level grid.

Public Member Functions

 LevelVTKWriter (const G &grid, int level, VTKOptions::DataMode dm=VTKOptions::conforming)
 Construct a VTK writer for a certain 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 parallel output; interface might change later

Protected Member Functions

void pwrite (const char *name, const char *path, const char *extendpath, VTKOptions::OutputType ot, const int mySize, const int myRank)
 write output; interface might change later

Member Function Documentation

void Dune::VTKWriter< G , G::template Codim< 0 >::LevelIndexSet >::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 >::LevelIndexSet >::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 >::LevelIndexSet >::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 >::LevelIndexSet >::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 >::LevelIndexSet >::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 (default value is ascii).

void Dune::VTKWriter< G , G::template Codim< 0 >::LevelIndexSet >::pwrite ( const char *  name,
const char *  path,
const char *  extendpath,
VTKOptions::OutputType  ot = VTKOptions::ascii 
) [inline, inherited]

write parallel output; interface might change later

write parallel output; interface might change later

Parameters:
name The name of the file to write to.
path path to write data to
extendpath path to write single processor data to (if extendpath = "" then no extra path is used)
ot The output type for the file (default value is ascii).


The documentation for this class was generated from the following file:

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].