Peano
Loading...
Searching...
No Matches
tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter Class Reference

#include <PeanoBinaryPatchFileWriter.h>

Inheritance diagram for tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter:
Collaboration diagram for tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter:

Public Member Functions

 VertexDataWriter (const std::string &identifier, int unknownsPerAxis, int numberOfUnknowns, const std::string &description, const std::string &metaData, double *mapping, tarch::plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter &writer)
 
 ~VertexDataWriter ()
 
void setPrecision (int precision)
 Has no effect, as the quantities are written as raw doubles.
 
int getVerticesPerPatch () const
 
virtual void plotVertex (int index, double value) override
 Write data for one cell.
 
virtual void plotVertex (int index, double *values) override
 
template<typename T >
void plotVertex (int index, T *values)
 Plot a vertex whose values have another type than double.
 
virtual void close () override
 
virtual void assignRemainingVerticesDefaultValues () override
 
virtual int getFirstVertexWithinPatch (int index) const override
 

Protected Member Functions

void flushIfPatchIsComplete ()
 

Protected Attributes

tarch::plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter & _writer
 
const std::string _identifier
 
const int _numberOfVerticesPerAxis
 
const int _numberOfUnknowns
 
int _entryCounter
 Number of entries written within a patch.
 
std::vector< double > _out
 

Detailed Description

Definition at line 181 of file PeanoBinaryPatchFileWriter.h.

Constructor & Destructor Documentation

◆ VertexDataWriter()

tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::VertexDataWriter ( const std::string &  identifier,
int  unknownsPerAxis,
int  numberOfUnknowns,
const std::string &  description,
const std::string &  metaData,
double *  mapping,
tarch::plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter &  writer 
)

◆ ~VertexDataWriter()

tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::~VertexDataWriter ( )
virtual

Member Function Documentation

◆ assignRemainingVerticesDefaultValues()

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::assignRemainingVerticesDefaultValues ( )
overridevirtual

◆ close()

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::close ( )
overridevirtual

◆ flushIfPatchIsComplete()

void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::flushIfPatchIsComplete ( )
protected

◆ getFirstVertexWithinPatch()

virtual int tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::getFirstVertexWithinPatch ( int  patchIndex) const
overridevirtual

◆ getVerticesPerPatch()

int tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::getVerticesPerPatch ( ) const

◆ plotVertex() [1/3]

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::plotVertex ( int  index,
double *  values 
)
overridevirtual

◆ plotVertex() [2/3]

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::plotVertex ( int  index,
double  value 
)
overridevirtual

Write data for one cell.

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

Implements tarch.plotter::griddata::blockstructured::PatchWriter::VertexDataWriter.

◆ plotVertex() [3/3]

template<typename T >
void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::plotVertex ( int  index,
T *  values 
)

Plot a vertex whose values have another type than double.

The values are converted into doubles. Template functions cannot be virtual, hence this overload sits on the level of the writer.

◆ setPrecision()

void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::setPrecision ( int  precision)

Has no effect, as the quantities are written as raw doubles.

Field Documentation

◆ _entryCounter

int tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_entryCounter
protected

Number of entries written within a patch.

Definition at line 192 of file PeanoBinaryPatchFileWriter.h.

◆ _identifier

const std::string tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_identifier
protected

Definition at line 185 of file PeanoBinaryPatchFileWriter.h.

◆ _numberOfUnknowns

const int tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_numberOfUnknowns
protected

Definition at line 187 of file PeanoBinaryPatchFileWriter.h.

◆ _numberOfVerticesPerAxis

const int tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_numberOfVerticesPerAxis
protected

Definition at line 186 of file PeanoBinaryPatchFileWriter.h.

◆ _out

std::vector<double> tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_out
protected

Definition at line 193 of file PeanoBinaryPatchFileWriter.h.

◆ _writer

tarch::plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter& tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::VertexDataWriter::_writer
protected

Definition at line 183 of file PeanoBinaryPatchFileWriter.h.


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