Writer of data linked with meshes into VTI format.
More...
#include <TNL/Meshes/Writers/VTIWriter.h>
|
| VTIWriter ()=delete |
| Construct with no parameters is not allowed.
|
|
| VTIWriter (std::ostream &str, VTK::FileFormat format=VTK::FileFormat::zlib_compressed) |
| Constructor of a VTIWriter.
|
|
| ~VTIWriter () |
| Destructor.
|
|
template<typename Array > |
void | writeCellData (const Array &array, const std::string &name, int numberOfComponents=1) |
| Writes data linked with mesh cells.
|
|
template<typename Array > |
void | writeDataArray (const Array &array, const std::string &name, int numberOfComponents=1) |
|
template<int EntityDimension = Mesh::getMeshDimension()> |
void | writeEntities (const Mesh &mesh) |
| Write mesh entites to the output file.
|
|
void | writeImageData (const Mesh &mesh) |
|
void | writeImageData (const typename Mesh::PointType &origin, const typename Mesh::CoordinatesType &begin, const typename Mesh::CoordinatesType &end, const typename Mesh::PointType &spaceSteps) |
|
void | writeMetadata (std::int32_t cycle=-1, double time=-1) |
| If desired, cycle and time of the simulation can put into the file.
|
|
template<typename Array > |
void | writePointData (const Array &array, const std::string &name, int numberOfComponents=1) |
| Writes data linked with mesh vertexes.
|
|
|
void | closeCellData () |
|
void | closePiece () |
|
void | closePointData () |
|
void | openCellData () |
|
void | openPointData () |
|
void | writeFooter () |
|
void | writeHeader () |
|
|
bool | cellDataClosed = false |
|
bool | cellDataOpen = false |
|
std::uint64_t | cellsCount = 0 |
|
VTK::FileFormat | format |
|
bool | imageDataOpen = false |
|
std::stringstream | metadata |
|
bool | pieceOpen = false |
|
bool | pointDataClosed = false |
|
bool | pointDataOpen = false |
|
std::uint64_t | pointsCount = 0 |
|
std::ostream | str |
|
bool | vtkfileOpen = false |
|
template<typename
Mesh>
class TNL::Meshes::Writers::VTIWriter< Mesh >
Writer of data linked with meshes into VTI format.
- Template Parameters
-
◆ VTIWriter()
Constructor of a VTIWriter.
- Parameters
-
str | output stream used for the export of the data. |
format | |
◆ writeCellData()
template<typename Array >
Writes data linked with mesh cells.
- Template Parameters
-
Array | type of array holding the data. |
- Parameters
-
array | instance of an array holding the data. |
name | is a name of data which will appear in the outptu file. |
numberOfComponents | is number of compononets of the data for each cell. |
◆ writeEntities()
template<int EntityDimension>
Write mesh entites to the output file.
It is here only for compatibility with VTUWriter - it just calls writeImageData, the EntityDimension is unused.
- Parameters
-
mesh | is a mesh to be exported. |
◆ writeMetadata()
◆ writePointData()
template<typename Array >
Writes data linked with mesh vertexes.
- Template Parameters
-
Array | type of array holding the data. |
- Parameters
-
array | instance of an array holding the data. |
name | is a name of data which will appear in the outptu file. |
numberOfComponents | is number of compononets of the data for each vertex. |
The documentation for this class was generated from the following files:
- src/TNL/Meshes/Writers/VTIWriter.h
- src/TNL/Meshes/Writers/VTIWriter.hpp