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

#include <VTUTextFileWriter.h>

Inheritance diagram for tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter:
Collaboration diagram for tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter:

Public Member Functions

virtual ~CellDataWriter ()
 
virtual void close () override
 If you close your writer, each cell/vertex has to be assigned a value, i.e.
 
virtual void plotCell (int index, double value) override
 Write data for one cell.
 
virtual void plotCell (int index, const tarch::la::Vector< 2, double > &value) override
 
virtual void plotCell (int index, const tarch::la::Vector< 3, double > &value) override
 
virtual void plotCell (int index, double *values, int numberOfValues) override
 
double getMinValue () const
 
double getMaxValue () const
 
virtual void assignRemainingCellsDefaultValues () override
 

Private Member Functions

 CellDataWriter (const std::string &dataIdentifier, VTUTextFileWriter &writer, int recordsPerCell, std::string dataType)
 
 CellDataWriter (const CellDataWriter &copy)
 

Private Attributes

const std::string _dataType
 
const std::string _identifier
 Only required for assertions.
 
int _lastWriteCommandCellNumber
 Is set to -1 in the beginning and then incremented by each data plot call.
 
VTUTextFileWriter & _myWriter
 Underlying VTU writer.
 
std::ostringstream _out
 Output stream.
 
int _recordsPerCell
 
double _minValue
 
double _maxValue
 

Friends

class VTUTextFileWriter
 The father class is a friend.
 

Detailed Description

Definition at line 239 of file VTUTextFileWriter.h.

Constructor & Destructor Documentation

◆ CellDataWriter() [1/2]

tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::CellDataWriter ( const std::string & dataIdentifier,
VTUTextFileWriter & writer,
int recordsPerCell,
std::string dataType )
private

◆ CellDataWriter() [2/2]

tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::CellDataWriter ( const CellDataWriter & copy)
private

Definition at line 276 of file VTUTextFileWriter.h.

References assertion.

◆ ~CellDataWriter()

virtual tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::~CellDataWriter ( )
virtual

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

virtual void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::assignRemainingCellsDefaultValues ( )
overridevirtual

◆ close()

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

If you close your writer, each cell/vertex has to be assigned a value, i.e.

you may not add less data than you have cells. See

Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellDataWriter.

◆ getMaxValue()

double tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::getMaxValue ( ) const

◆ getMinValue()

double tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::getMinValue ( ) const

◆ plotCell() [1/4]

virtual void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::plotCell ( int index,
const tarch::la::Vector< 2, double > & value )
overridevirtual

◆ plotCell() [2/4]

virtual void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::plotCell ( int index,
const tarch::la::Vector< 3, double > & value )
overridevirtual

◆ plotCell() [3/4]

virtual void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::plotCell ( int index,
double * values,
int numberOfValues )
overridevirtual

◆ plotCell() [4/4]

virtual void tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::plotCell ( int index,
double value )
overridevirtual

Write data for one cell.

Parameters
indexIndex of the cell. This index has to equal the index used for the cell within the VTKWriter class interface.
valueValue for the cell.

Implements tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellDataWriter.

Friends And Related Symbol Documentation

◆ VTUTextFileWriter

friend class VTUTextFileWriter
friend

The father class is a friend.

There are no other friends.

Definition at line 245 of file VTUTextFileWriter.h.

Field Documentation

◆ _dataType

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

Definition at line 247 of file VTUTextFileWriter.h.

◆ _identifier

const std::string tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_identifier
private

Only required for assertions.

Definition at line 252 of file VTUTextFileWriter.h.

◆ _lastWriteCommandCellNumber

int tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_lastWriteCommandCellNumber
private

Is set to -1 in the beginning and then incremented by each data plot call.

If we close the writer, the counter is reset to -2.

Definition at line 258 of file VTUTextFileWriter.h.

◆ _maxValue

double tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_maxValue
private

Definition at line 273 of file VTUTextFileWriter.h.

◆ _minValue

double tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_minValue
private

Definition at line 272 of file VTUTextFileWriter.h.

◆ _myWriter

VTUTextFileWriter& tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_myWriter
private

Underlying VTU writer.

Definition at line 263 of file VTUTextFileWriter.h.

◆ _out

std::ostringstream tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_out
private

Output stream.

Definition at line 268 of file VTUTextFileWriter.h.

◆ _recordsPerCell

int tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter::CellDataWriter::_recordsPerCell
private

Definition at line 270 of file VTUTextFileWriter.h.


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