Peano
Loading...
Searching...
No Matches
tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter Class Reference

#include <PeanoTextPatchFileWriter.h>

Inheritance diagram for tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter:
Collaboration diagram for tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter:

Public Member Functions

 CellDataWriter (const std::string &identifier, int unknownsPerAxis, int numberOfUnknowns, const std::string &description, const std::string &metaData, double *mapping, tarch::plotter::griddata::blockstructured::PeanoTextPatchFileWriter &writer)
 
virtual ~CellDataWriter ()
 
void setPrecision (int precision)
 
int getCellsPerPatch () const
 
virtual void plotCell (int index, double value) override
 Write data for one cell.
 
virtual void plotCell (int index, double *values) override
 
virtual void close () override
 If you close your writer, each cell/vertex has to be assigned a value, i.e.
 
virtual void assignRemainingCellsDefaultValues () override
 
virtual int getFirstCellWithinPatch (int index) const override
 

Protected Member Functions

void flushIfPatchIsComplete ()
 

Protected Attributes

tarch::plotter::griddata::blockstructured::PeanoTextPatchFileWriter & _writer
 
const std::string _identifier
 
const int _numberOfCellsPerAxis
 
const int _numberOfUnknowns
 
int _entryCounter
 
std::stringstream _out
 

Detailed Description

Definition at line 113 of file PeanoTextPatchFileWriter.h.

Constructor & Destructor Documentation

◆ CellDataWriter()

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

◆ ~CellDataWriter()

virtual tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::~CellDataWriter ( )
virtual

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

virtual void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::assignRemainingCellsDefaultValues ( )
overridevirtual

◆ close()

virtual void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::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::blockstructured::PatchWriter::CellDataWriter.

◆ flushIfPatchIsComplete()

void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::flushIfPatchIsComplete ( )
protected

◆ getCellsPerPatch()

int tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::getCellsPerPatch ( ) const

◆ getFirstCellWithinPatch()

virtual int tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::getFirstCellWithinPatch ( int  patchIndex) const
overridevirtual

◆ plotCell() [1/2]

virtual void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::plotCell ( int  index,
double *  values 
)
overridevirtual

◆ plotCell() [2/2]

virtual void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::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::blockstructured::PatchWriter::CellDataWriter.

◆ setPrecision()

void tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::setPrecision ( int  precision)

Field Documentation

◆ _entryCounter

int tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_entryCounter
protected

Definition at line 120 of file PeanoTextPatchFileWriter.h.

◆ _identifier

const std::string tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_identifier
protected

Definition at line 117 of file PeanoTextPatchFileWriter.h.

◆ _numberOfCellsPerAxis

const int tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_numberOfCellsPerAxis
protected

Definition at line 118 of file PeanoTextPatchFileWriter.h.

◆ _numberOfUnknowns

const int tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_numberOfUnknowns
protected

Definition at line 119 of file PeanoTextPatchFileWriter.h.

◆ _out

std::stringstream tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_out
protected

Definition at line 121 of file PeanoTextPatchFileWriter.h.

◆ _writer

tarch::plotter::griddata::blockstructured::PeanoTextPatchFileWriter& tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter::_writer
protected

Definition at line 115 of file PeanoTextPatchFileWriter.h.


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