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

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

#include <VTKTextFileWriter.h>

Inheritance diagram for tarch.plotter::griddata::unstructured::vtk::VTKTextFileWriter::VertexWriter:
Collaboration diagram for tarch.plotter::griddata::unstructured::vtk::VTKTextFileWriter::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 (VTKTextFileWriter &writer)
 
 VertexWriter (const VertexWriter &writer)
 Do not copy a vertex writer.
 

Private Attributes

int _currentVertexNumber
 Counter for the vertices written.
 
VTKTextFileWriter & _myWriter
 Underlying VTK writer.
 
std::ostringstream _out
 Output stream.
 

Friends

class VTKTextFileWriter
 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 VTKTextFileWriter.

Definition at line 125 of file VTKTextFileWriter.h.

Constructor & Destructor Documentation

◆ VertexWriter() [1/2]

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

◆ VertexWriter() [2/2]

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

Do not copy a vertex writer.

Definition at line 153 of file VTKTextFileWriter.h.

References assertion.

◆ ~VertexWriter()

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

Member Function Documentation

◆ close()

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

◆ plotVertex() [1/2]

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

◆ plotVertex() [2/2]

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

Friends And Related Symbol Documentation

◆ VTKTextFileWriter

friend class VTKTextFileWriter
friend

The father class is a friend.

There are no other friends.

Definition at line 131 of file VTKTextFileWriter.h.

Field Documentation

◆ _currentVertexNumber

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

Counter for the vertices written.

Holds the maximum index.

Definition at line 136 of file VTKTextFileWriter.h.

◆ _myWriter

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

Underlying VTK writer.

Definition at line 141 of file VTKTextFileWriter.h.

◆ _out

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

Output stream.

Definition at line 146 of file VTKTextFileWriter.h.


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