|
Peano
|
VTK Writer. More...
#include <VTKTextFileWriter.h>


Data Structures | |
| class | CellDataWriter |
| class | CellWriter |
| Writes the element data. More... | |
| class | VertexDataWriter |
| class | VertexWriter |
| This is the vertex writer you have to create to plot the vertices. More... | |
Public Member Functions | |
| VTKTextFileWriter (const std::string &fileName, const std::string &indexFileName, tarch::plotter::PVDTimeSeriesWriter::IndexFileMode modeFile, double timeStamp, const int precision=6) | |
| virtual | ~VTKTextFileWriter () |
| virtual bool | isOpen () override |
| virtual bool | writeToFile () override |
| virtual void | clear () override |
| Clear the writer, i.e. | |
| virtual VertexWriter * | createVertexWriter () override |
| Caller has to destroy this instance manually. | |
| virtual CellWriter * | createCellWriter () override |
| Caller has to destroy this instance manually. | |
| virtual CellDataWriter * | createCellDataWriter (const std::string &identifier, int recordsPerCell) override |
| Caller has to destroy this instance manually. | |
| virtual VertexDataWriter * | createVertexDataWriter (const std::string &identifier, int recordsPerVertex) override |
| Caller has to destroy this instance manually. | |
Public Member Functions inherited from tarch.plotter::griddata::unstructured::UnstructuredGridWriter | |
| virtual | ~UnstructuredGridWriter ()=default |
Private Member Functions | |
| void | validateDataWriterIdentifier (const std::string &identifier) const |
| std::string | setDoubleOrFloatString (const int precision) |
Private Attributes | |
| bool | _writtenToFile |
| const int | _precision |
| precision | |
| const std::string | _doubleOrFloat |
| either "float" or "double" depending on _precision | |
| int | _numberOfVertices |
| Total number of vertices. | |
| int | _numberOfCells |
| Total number of cells. | |
| int | _numberOfCellEntries |
| Total number of cell entries. | |
| std::string | _vertexDescription |
| std::string | _cellDescription |
| std::string | _cellTypeDescription |
| std::string | _vertexDataDescription |
| std::string | _cellDataDescription |
| std::string | _fileName |
Static Private Attributes | |
| static tarch::logging::Log | _log |
| Logging device. | |
| static const std::string | HEADER |
VTK Writer.
Output for vtk files (paraview) as text files.
!! Usage
!!! Thread-safety
The plotter is not thread-safe and shall never be thread-safe: It is the responsibility of the using system to implement thread-safe calls. For Peano, this is the mappings where some events could occur simultaneously.
Definition at line 50 of file VTKTextFileWriter.h.
| tarch.plotter::griddata::unstructured::vtk::VTKTextFileWriter::VTKTextFileWriter | ( | const std::string & | fileName, |
| const std::string & | indexFileName, | ||
| tarch::plotter::PVDTimeSeriesWriter::IndexFileMode | modeFile, | ||
| double | timeStamp, | ||
| const int | precision = 6 |
||
| ) |
|
virtual |
|
overridevirtual |
Clear the writer, i.e.
erase all the data. However, as the writer does not track how many vertex and cell writers you've created, it's up to you to ensure that none of these instances is left.
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
Referenced by peano4.api.output.Makefile.Makefile::__init__().

|
overridevirtual |
Caller has to destroy this instance manually.
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Do not create more than one cell writer.
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Caller has to destroy this instance manually.
Do not create more than one vertex writer.
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
overridevirtual |
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
private |
Definition at line 94 of file VTKTextFileWriter.h.
|
private |
|
overridevirtual |
Implements tarch.plotter::griddata::unstructured::UnstructuredGridWriter.
|
private |
Definition at line 87 of file VTKTextFileWriter.h.
|
private |
Definition at line 84 of file VTKTextFileWriter.h.
|
private |
Definition at line 85 of file VTKTextFileWriter.h.
|
private |
either "float" or "double" depending on _precision
Definition at line 66 of file VTKTextFileWriter.h.
|
private |
Definition at line 89 of file VTKTextFileWriter.h.
|
staticprivate |
Logging device.
Definition at line 56 of file VTKTextFileWriter.h.
|
private |
Total number of cell entries.
See _cellListEntries.
Definition at line 81 of file VTKTextFileWriter.h.
|
private |
Total number of cells.
Definition at line 76 of file VTKTextFileWriter.h.
|
private |
Total number of vertices.
Definition at line 71 of file VTKTextFileWriter.h.
|
private |
precision
Definition at line 63 of file VTKTextFileWriter.h.
|
private |
Definition at line 86 of file VTKTextFileWriter.h.
|
private |
Definition at line 83 of file VTKTextFileWriter.h.
|
private |
Definition at line 60 of file VTKTextFileWriter.h.
|
staticprivate |
Definition at line 58 of file VTKTextFileWriter.h.