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

#include <PeanoBinaryPatchFileWriter.h>

Inheritance diagram for tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::CellDataWriter:
Collaboration diagram for tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::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::PeanoBinaryPatchFileWriter &writer)
 
virtual ~CellDataWriter ()
 
void setPrecision (int precision)
 Has no effect, as the quantities are written as raw doubles.
 
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::PeanoBinaryPatchFileWriter & _writer
 
const std::string _identifier
 
const int _numberOfCellsPerAxis
 
const int _numberOfUnknowns
 
int _entryCounter
 
std::vector< double > _out
 

Detailed Description

Definition at line 134 of file PeanoBinaryPatchFileWriter.h.

Constructor & Destructor Documentation

◆ CellDataWriter()

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

◆ ~CellDataWriter()

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

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

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

◆ close()

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::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::PeanoBinaryPatchFileWriter::CellDataWriter::flushIfPatchIsComplete ( )
protected

◆ getCellsPerPatch()

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

◆ getFirstCellWithinPatch()

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

◆ plotCell() [1/2]

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

◆ plotCell() [2/2]

virtual void tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::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::PeanoBinaryPatchFileWriter::CellDataWriter::setPrecision ( int  precision)

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

Field Documentation

◆ _entryCounter

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

Definition at line 141 of file PeanoBinaryPatchFileWriter.h.

◆ _identifier

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

Definition at line 138 of file PeanoBinaryPatchFileWriter.h.

◆ _numberOfCellsPerAxis

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

Definition at line 139 of file PeanoBinaryPatchFileWriter.h.

◆ _numberOfUnknowns

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

Definition at line 140 of file PeanoBinaryPatchFileWriter.h.

◆ _out

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

Definition at line 142 of file PeanoBinaryPatchFileWriter.h.

◆ _writer

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

Definition at line 136 of file PeanoBinaryPatchFileWriter.h.


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