5 #include <dune/grid/io/file/vtk/function.hh>
14 template <
class Gr
idView>
29 virtual void bind (Entity
const& entity)
override
41 virtual double evaluate (
int comp, LocalCoordinate
const& xi)
const override
43 return fct_->evaluate(comp, *entity_, xi);
47 std::shared_ptr<VTKFunction<GridView>
const> fct_;
48 Entity
const* entity_;
Definition: datacollectorinterface.hh:9
Type erasure for Legacy VTKFunction.
Definition: legacyvtkfunction.hh:17
VTKLocalFunctionWrapper(std::shared_ptr< VTKFunction< GridView > const > const &fct)
Constructor. Stores a shared pointer to the passed Dune::VTKFunction.
Definition: legacyvtkfunction.hh:24
virtual double evaluate(int comp, LocalCoordinate const &xi) const override
Evaluate the Dune::VTKFunction in LocalCoordinates on the stored Entity.
Definition: legacyvtkfunction.hh:41
virtual void bind(Entity const &entity) override
Stores a pointer to the passed entity.
Definition: legacyvtkfunction.hh:29
virtual void unbind() override
Unsets the stored entity pointer.
Definition: legacyvtkfunction.hh:35
An abstract base class for LocalFunctions that can be bound to an element and evaluated in local coor...
Definition: localfunctioninterface.hh:11
typename Entity::Geometry::LocalCoordinate LocalCoordinate
Definition: localfunctioninterface.hh:14
typename GridView::template Codim< 0 >::Entity Entity
Definition: localfunctioninterface.hh:13