dune-grid 2.9.0
Public Types | Public Member Functions | List of all members
Dune::VTK::VTKFunctionWriter< Func > Class Template Reference

Base class for function writers. More...

#include <dune/grid/io/file/vtk/functionwriter.hh>

Inheritance diagram for Dune::VTK::VTKFunctionWriter< Func >:
Inheritance graph

Public Types

typedef FieldVector< DF, mydim > Domain
 
typedef Func::Entity Cell
 

Public Member Functions

 VTKFunctionWriter (const std::shared_ptr< const Func > &func_, VTK::Precision prec=VTK::Precision::float32)
 
virtual std::string name () const
 return name More...
 
virtual unsigned ncomps () const
 return number of components of the vector More...
 
virtual void addArray (PVTUWriter &writer)
 add this field to the given parallel writer More...
 
virtual bool beginWrite (VTUWriter &writer, std::size_t nitems)
 start writing with the given writer More...
 
virtual void write (const typename Base::Cell &cell, const typename Base::Domain &xl)
 write at the given position More...
 
virtual void endWrite ()
 signal end of writing More...
 
virtual void write (const Cell &, const Domain &)
 write at the given position More...
 
virtual void write (const Cell &cell, unsigned cornerIndex)
 write at the given corner More...
 

Detailed Description

template<typename Func>
class Dune::VTK::VTKFunctionWriter< Func >

Base class for function writers.

Member Typedef Documentation

◆ Cell

typedef Func::Entity Dune::VTK::FunctionWriterBase< Func::Entity >::Cell
inherited

◆ Domain

typedef FieldVector<DF, mydim> Dune::VTK::FunctionWriterBase< Func::Entity >::Domain
inherited

Constructor & Destructor Documentation

◆ VTKFunctionWriter()

template<typename Func >
Dune::VTK::VTKFunctionWriter< Func >::VTKFunctionWriter ( const std::shared_ptr< const Func > &  func_,
VTK::Precision  prec = VTK::Precision::float32 
)
inline

Member Function Documentation

◆ addArray()

template<typename Func >
virtual void Dune::VTK::VTKFunctionWriter< Func >::addArray ( PVTUWriter writer)
inlinevirtual

add this field to the given parallel writer

Implements Dune::VTK::FunctionWriterBase< Func::Entity >.

◆ beginWrite()

template<typename Func >
virtual bool Dune::VTK::VTKFunctionWriter< Func >::beginWrite ( VTUWriter writer,
std::size_t  nitems 
)
inlinevirtual

start writing with the given writer

Implements Dune::VTK::FunctionWriterBase< Func::Entity >.

◆ endWrite()

template<typename Func >
virtual void Dune::VTK::VTKFunctionWriter< Func >::endWrite ( )
inlinevirtual

signal end of writing

Implements Dune::VTK::FunctionWriterBase< Func::Entity >.

◆ name()

template<typename Func >
virtual std::string Dune::VTK::VTKFunctionWriter< Func >::name ( ) const
inlinevirtual

◆ ncomps()

template<typename Func >
virtual unsigned Dune::VTK::VTKFunctionWriter< Func >::ncomps ( ) const
inlinevirtual

return number of components of the vector

Implements Dune::VTK::FunctionWriterBase< Func::Entity >.

◆ write() [1/3]

virtual void Dune::VTK::FunctionWriterBase< Func::Entity >::write ( const Cell ,
const Domain  
)
inlinevirtualinherited

write at the given position

This is the default dummy implementation. This method is not abstract so derived classes don't have to override it if they don't need it.

◆ write() [2/3]

virtual void Dune::VTK::FunctionWriterBase< Func::Entity >::write ( const Cell cell,
unsigned  cornerIndex 
)
inlinevirtualinherited

write at the given corner

This default method forwards the writing to write(const Cell&, const Domain&).

◆ write() [3/3]

template<typename Func >
virtual void Dune::VTK::VTKFunctionWriter< Func >::write ( const typename Base::Cell cell,
const typename Base::Domain xl 
)
inlinevirtual

write at the given position


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