Peano
Loading...
Searching...
No Matches
tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter Class Reference

This is the vertex writer you have to create to plot the vertices. More...

#include <VTUTextFileWriter.h>

Inheritance diagram for tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter:
Collaboration diagram for tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter:

Public Member Functions

virtual ~VertexWriter ()
 
virtual int plotVertex (const tarch::la::Vector< 2, double > &position) override
 
virtual int plotVertex (const tarch::la::Vector< 3, double > &position) override
 
virtual void close () override
 

Private Member Functions

 VertexWriter (VTUTextFileWriter &writer, std::string datatype)
 
 VertexWriter (const VertexWriter &writer)
 Do not copy a vertex writer.
 

Private Attributes

const std::string _dataType
 either "float" or "double" depending on _precision
 
int _currentVertexNumber
 Counter for the vertices written.
 
VTUTextFileWriter & _myWriter
 Underlying VTU writer.
 
std::ostringstream _out
 Output stream.
 

Friends

class VTUTextFileWriter
 The father class is a friend.
 

Detailed Description

This is the vertex writer you have to create to plot the vertices.

Besides the pure syntax management, the writer also provides a number generator which provides you with a unique id for each vertex.

Please ensure that you call close() on the vertex writer before you close the underlying VTUTextFileWriter.

Definition at line 124 of file VTUTextFileWriter.h.

Constructor & Destructor Documentation

◆ VertexWriter() [1/2]

tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::VertexWriter ( VTUTextFileWriter & writer,
std::string datatype )
private

◆ VertexWriter() [2/2]

tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::VertexWriter ( const VertexWriter & writer)
private

Do not copy a vertex writer.

Definition at line 156 of file VTUTextFileWriter.h.

References assertion.

◆ ~VertexWriter()

virtual tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::~VertexWriter ( )
virtual

Member Function Documentation

◆ close()

virtual void tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::close ( )
overridevirtual

◆ plotVertex() [1/2]

virtual int tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::plotVertex ( const tarch::la::Vector< 2, double > & position)
overridevirtual

◆ plotVertex() [2/2]

virtual int tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::plotVertex ( const tarch::la::Vector< 3, double > & position)
overridevirtual

Friends And Related Symbol Documentation

◆ VTUTextFileWriter

friend class VTUTextFileWriter
friend

The father class is a friend.

There are no other friends.

Definition at line 130 of file VTUTextFileWriter.h.

Field Documentation

◆ _currentVertexNumber

int tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::_currentVertexNumber
private

Counter for the vertices written.

Holds the maximum index.

Definition at line 139 of file VTUTextFileWriter.h.

◆ _dataType

const std::string tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::_dataType
private

either "float" or "double" depending on _precision

Definition at line 134 of file VTUTextFileWriter.h.

◆ _myWriter

VTUTextFileWriter& tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::_myWriter
private

Underlying VTU writer.

Definition at line 144 of file VTUTextFileWriter.h.

◆ _out

std::ostringstream tarch.plotter::griddata::unstructured::vtk::VTUTextFileWriter::VertexWriter::_out
private

Output stream.

Definition at line 149 of file VTUTextFileWriter.h.


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