|
dune-vtk 2.12
|
Base class for file writers for the Vtk XML file formats. More...
#include <dune/vtk/vtkwriterbase.hh>

Public Types | |
| using | GridView = GV |
| using | DataCollector = DC |
Protected Types | |
| enum | PositionTypes { POINT_DATA , CELL_DATA } |
| using | VtkFunction = Dune::Vtk::GridFunction< GridView > |
| using | Domain = typename GridView::template Codim< 0 >::Entity::Geometry::GlobalCoordinate |
| using | pos_type = typename std::ostream::pos_type |
Friends | |
| template<class > | |
| class | TimeseriesWriter |
| template<class > | |
| class | PvdWriter |
Detailed Description
Base class for file writers for the Vtk XML file formats.
- Template Parameters
-
GV Model of Dune::GridView DC Model of DataCollectorInterface
Member Typedef Documentation
◆ DataCollector
◆ Domain
|
protected |
◆ GridView
◆ pos_type
|
protected |
◆ VtkFunction
|
protected |
Member Enumeration Documentation
◆ PositionTypes
Constructor & Destructor Documentation
◆ VtkWriterBase() [1/4]
|
inline |
Constructor, passes the gridView to the DataCollector.
Creates a new VtkWriterBase for the provided GridView. Initializes a DataCollector that is used to collect point coordinates, cell connectivity and data values.
This constructor assumes, that the DataCollector can be constructed from a single argument, the passed gridView.
- Parameters
-
gridView Implementation of Dune::GridView format Format of the VTK file, either Vtk::FormatTypes::BINARY, Vtk::FormatTypes::ASCII, or Vtk::COMPRESSED datatype Data type of a single component of the point coordinates [Vtk::DataTypes::FLOAT32] headertype Integer type used in binary data headers [Vtk::DataTypes::UINT32]
◆ VtkWriterBase() [2/4]
|
inline |
Constructor, wraps the passed DataCollector in a non-destroying shared_ptr.
◆ VtkWriterBase() [3/4]
|
inline |
Constructor, stores the passed DataCollector.
◆ VtkWriterBase() [4/4]
|
inline |
Constructor, stores the passed DataCollector.
Member Function Documentation
◆ addCellData() [1/4]
|
inline |
◆ addCellData() [2/4]
|
inline |
◆ addCellData() [3/4]
|
inline |
Attach cell data to the writer.
Attach a global function to the writer that will be evaluated at cell centers. The global function must be assignable to the function wrapper Vtk::GridFunction. Additional argument for output datatype and number of components can be passed. See Vtk::GridFunction Constructor for possible arguments.
- Parameters
-
fct A GridFunction or Dune::VTKFunction info Additional arguments, like name,numComponents,dataTypeorrangeType
◆ addCellData() [4/4]
|
inline |
◆ addPointData() [1/4]
|
inline |
◆ addPointData() [2/4]
|
inline |
◆ addPointData() [3/4]
|
inline |
Attach point data to the writer.
Attach a global function to the writer that will be evaluated at grid points (vertices and higher order points). The global function must be assignable to the function wrapper Vtk::GridFunction. Additional argument for output datatype and number of components can be passed. See Vtk::GridFunction Constructor for possible arguments.
- Parameters
-
fct A GridFunction or Dune::VTKFunction inf Additional arguments, like name,numComponents,dataTypeorrangeType
◆ addPointData() [4/4]
|
inline |
◆ comm()
|
inlineprotected |
◆ getDatatype()
|
inlineprotected |
◆ getEndian()
|
inlineprotected |
◆ getFileExtension()
|
inlineprotected |
◆ getFormat()
|
inlineprotected |
◆ getNames()
|
protected |
Return PointData/CellData attributes for the name of the first scalar/vector/tensor DataArray.
◆ setCompressor()
|
inline |
Sets the compressor type used in binary data headers, Additionally a compression level can be passed with level = -1 means: default compression level. Level must be in [0-9]
◆ setDatatype()
|
inline |
Sets the global datatype used for coordinates and other global float values.
◆ setFormat()
|
inline |
◆ setHeadertype()
|
inline |
Sets the integer type used in binary data headers.
◆ write()
|
overridevirtual |
Write the attached data to the file.
- Parameters
-
fn Filename of the VTK file. May contain a directory and any file extension. dir The optional parameter specifies the directory of the partition files for parallel writes.
- Returns
- File name that is actually written.
Implements Dune::Vtk::FileWriter.
◆ writeAppended()
|
protected |
◆ writeData()
|
protected |
◆ writeDataAppended()
|
protected |
◆ writeHeader()
|
protected |
◆ writePoints()
|
protected |
◆ writeValuesAppended()
|
protected |
◆ writeValuesAscii()
|
protected |
Friends And Related Symbol Documentation
◆ PvdWriter
◆ TimeseriesWriter
Member Data Documentation
◆ block_size
|
protected |
◆ cellData_
|
protected |
◆ compression_level
|
protected |
◆ compressor_
|
protected |
◆ dataCollector_
|
protected |
◆ datatype_
|
protected |
◆ format_
|
protected |
◆ headertype_
|
protected |
◆ pointData_
|
protected |
The documentation for this class was generated from the following files:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8