Peano 4
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 106 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()

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

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

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

◆ close()

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.

Definition at line 84 of file PeanoTextPatchFileWriter_CellDataWriter.cpp.

◆ flushIfPatchIsComplete()

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

Definition at line 87 of file PeanoTextPatchFileWriter_CellDataWriter.cpp.

◆ getCellsPerPatch()

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

Definition at line 36 of file PeanoTextPatchFileWriter_CellDataWriter.cpp.

References tarch::la::aPowI().

Referenced by CellDataWriter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFirstCellWithinPatch()

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

◆ plotCell() [1/2]

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

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

Definition at line 66 of file PeanoTextPatchFileWriter_CellDataWriter.cpp.

References tarch::la::equals(), and values.

Here is the call graph for this function:

◆ plotCell() [2/2]

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.

Definition at line 48 of file PeanoTextPatchFileWriter_CellDataWriter.cpp.

References tarch::la::equals().

Here is the call graph for this function:

◆ 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 113 of file PeanoTextPatchFileWriter.h.

◆ _identifier

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

Definition at line 110 of file PeanoTextPatchFileWriter.h.

◆ _numberOfCellsPerAxis

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

Definition at line 111 of file PeanoTextPatchFileWriter.h.

Referenced by CellDataWriter().

◆ _numberOfUnknowns

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

Definition at line 112 of file PeanoTextPatchFileWriter.h.

Referenced by CellDataWriter().

◆ _out

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

Definition at line 114 of file PeanoTextPatchFileWriter.h.

Referenced by CellDataWriter().

◆ _writer

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

Definition at line 108 of file PeanoTextPatchFileWriter.h.

Referenced by CellDataWriter().


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