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

#include <PeanoHDF5PatchFileWriter.h>

Inheritance diagram for tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter::CellDataWriter:
Collaboration diagram for tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter::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::PeanoHDF5PatchFileWriter &writer)
 
virtual ~CellDataWriter ()
 
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 Attributes

tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter_writer
 
const std::string _identifier
 
const int _numberOfUnknowns
 
std::vector< double_data
 

Detailed Description

Definition at line 66 of file PeanoHDF5PatchFileWriter.h.

Constructor & Destructor Documentation

◆ CellDataWriter()

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

◆ ~CellDataWriter()

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

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

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

◆ close()

void tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter::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 142 of file PeanoHDF5PatchFileWriter_CellDataWriter.cpp.

References assertion5, assertion6, and logDebug.

◆ getFirstCellWithinPatch()

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

◆ plotCell() [1/2]

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

◆ plotCell() [2/2]

void tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter::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 108 of file PeanoHDF5PatchFileWriter_CellDataWriter.cpp.

Field Documentation

◆ _data

◆ _identifier

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

Definition at line 70 of file PeanoHDF5PatchFileWriter.h.

Referenced by CellDataWriter().

◆ _numberOfUnknowns

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

Definition at line 71 of file PeanoHDF5PatchFileWriter.h.

Referenced by CellDataWriter().

◆ _writer

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

Definition at line 68 of file PeanoHDF5PatchFileWriter.h.

Referenced by CellDataWriter().


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