dune-grid 2.9.0
|
Type erasure wrapper for VTK data sets. More...
#include <dune/grid/io/file/vtk/vtkwriter.hh>
Classes | |
struct | FunctionWrapper |
Type erasure implementation for functions conforming to the dune-functions LocalFunction interface. More... | |
struct | FunctionWrapperBase |
Base class for polymorphic container of underlying data set. More... | |
struct | GlobalFunctionWrapper |
Type erasure implementation for C++ functions, i.e., functions that can be evaluated in global coordinates. More... | |
struct | VTKFunctionWrapper |
Type erasure implementation for legacy VTKFunctions. More... | |
Public Types | |
typedef VTK::DataArrayWriter | Writer |
Public Member Functions | |
template<typename F , std::enable_if_t< Impl::IsBindable< F, Entity >::value, int > = 0> | |
VTKLocalFunction (F &&f, VTK::FieldInfo fieldInfo) | |
Construct a VTKLocalFunction for a dune-functions style LocalFunction. More... | |
template<typename F , std::enable_if_t< not Impl::IsBindable< F, Entity >::value &&Impl::HasLocalFunction< F >::value, int > = 0> | |
VTKLocalFunction (F &&f, VTK::FieldInfo fieldInfo) | |
Construct a VTKLocalFunction for a dune-functions GridViewFunction. More... | |
template<typename F , std::enable_if_t< not Impl::IsBindable< F, Entity >::value &¬ Impl::HasLocalFunction< F >::value, int > = 0> | |
VTKLocalFunction (F &&f, VTK::FieldInfo fieldInfo) | |
Construct a VTKLocalFunction for a C++ (global) function. More... | |
VTKLocalFunction (const std::shared_ptr< const VTKFunction > &vtkFunctionPtr) | |
Construct a VTKLocalFunction for a legacy VTKFunction. More... | |
std::string | name () const |
Returns the name of the data set. More... | |
const VTK::FieldInfo & | fieldInfo () const |
Returns the VTK::FieldInfo for the data set. More... | |
void | bind (const Entity &e) const |
Bind the data set to grid entity e. More... | |
void | unbind () const |
Unbind the data set from the currently bound entity. More... | |
void | write (const Coordinate &pos, Writer &w) const |
Write the value of the data set at local coordinate pos to the writer w. More... | |
Public Attributes | |
std::shared_ptr< FunctionWrapperBase > | _f |
VTK::FieldInfo | _fieldInfo |
Type erasure wrapper for VTK data sets.
This wrapper has value semantics
typedef VTK::DataArrayWriter Dune::VTKWriter< GridView >::VTKLocalFunction::Writer |
|
inline |
Construct a VTKLocalFunction for a dune-functions style LocalFunction.
|
inline |
Construct a VTKLocalFunction for a dune-functions GridViewFunction.
|
inline |
Construct a VTKLocalFunction for a C++ (global) function.
|
inlineexplicit |
Construct a VTKLocalFunction for a legacy VTKFunction.
|
inline |
Bind the data set to grid entity e.
|
inline |
Returns the VTK::FieldInfo for the data set.
|
inline |
Returns the name of the data set.
|
inline |
Unbind the data set from the currently bound entity.
|
inline |
Write the value of the data set at local coordinate pos to the writer w.
std::shared_ptr<FunctionWrapperBase> Dune::VTKWriter< GridView >::VTKLocalFunction::_f |
VTK::FieldInfo Dune::VTKWriter< GridView >::VTKLocalFunction::_fieldInfo |