Dune::VTKWriter< GridView >::VTKFunction Class Reference
[Visualization ToolKit (VTK)]

#include <vtkwriter.hh>

Inherited by Dune::VTKWriter< GridView >::P0VectorWrapper< V >, and Dune::VTKWriter< GridView >::P1VectorWrapper< V >.

List of all members.


Detailed Description

template<class GridView>
class Dune::VTKWriter< GridView >::VTKFunction

A base class for grid functions with any return type and dimension

Trick : use double as return type.

Public Member Functions

virtual int ncomps () const =0
 return number of components
virtual double evaluate (int comp, const Entity &e, const Dune::FieldVector< DT, n > &xi) const =0
 evaluate single component comp in the entity e at local coordinates xi
virtual std::string name () const =0
 get name
virtual ~VTKFunction ()
 virtual destructor


Member Function Documentation

template<class GridView>
virtual double Dune::VTKWriter< GridView >::VTKFunction::evaluate ( int  comp,
const Entity e,
const Dune::FieldVector< DT, n > &  xi 
) const [pure virtual]

evaluate single component comp in the entity e at local coordinates xi

Evaluate the function in an entity at local coordinates.

Parameters:
[in] comp number of component to be evaluated
[in] e reference to grid entity of codimension 0
[in] xi point in local coordinates of the reference element of e
Returns:
value of the component


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

Generated on Tue Jul 28 22:28:42 2009 for dune-grid by  doxygen 1.5.6