dune-vtk 2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Dune::Vtk::VTKLocalFunctionWrapper< GridView > Class Template Referencefinal

Type erasure for Legacy VTKFunction. More...

#include <dune/vtk/legacyvtkfunction.hh>

Inheritance diagram for Dune::Vtk::VTKLocalFunctionWrapper< GridView >:
Inheritance graph

Public Member Functions

 VTKLocalFunctionWrapper (std::shared_ptr< VTKFunction< GridView > const > const &fct)
 Constructor. Stores a shared pointer to the passed Dune::VTKFunction.
 
virtual void bind (Entity const &entity) override
 Stores a pointer to the passed entity.
 
virtual void unbind () override
 Unsets the stored entity pointer.
 
virtual double evaluate (int comp, LocalCoordinate const &xi) const override
 Evaluate the Dune::VTKFunction in LocalCoordinates on the stored Entity.
 

Detailed Description

template<class GridView>
class Dune::Vtk::VTKLocalFunctionWrapper< GridView >

Type erasure for Legacy VTKFunction.

Constructor & Destructor Documentation

◆ VTKLocalFunctionWrapper()

template<class GridView >
Dune::Vtk::VTKLocalFunctionWrapper< GridView >::VTKLocalFunctionWrapper ( std::shared_ptr< VTKFunction< GridView > const > const &  fct)
inlineexplicit

Constructor. Stores a shared pointer to the passed Dune::VTKFunction.

Member Function Documentation

◆ bind()

template<class GridView >
virtual void Dune::Vtk::VTKLocalFunctionWrapper< GridView >::bind ( Entity const &  entity)
inlineoverridevirtual

Stores a pointer to the passed entity.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.

◆ evaluate()

template<class GridView >
virtual double Dune::Vtk::VTKLocalFunctionWrapper< GridView >::evaluate ( int  comp,
LocalCoordinate const &  xi 
) const
inlineoverridevirtual

Evaluate the Dune::VTKFunction in LocalCoordinates on the stored Entity.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.

◆ unbind()

template<class GridView >
virtual void Dune::Vtk::VTKLocalFunctionWrapper< GridView >::unbind ( )
inlineoverridevirtual

Unsets the stored entity pointer.

Implements Dune::Vtk::LocalFunctionInterface< GridView >.


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