Peano
Loading...
Searching...
No Matches
tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter Class Referenceabstract

A writer for scalar data on elements. More...

#include <PatchWriter.h>

Inheritance diagram for tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter:

Public Member Functions

virtual ~CellDataWriter ()=default
 
virtual void plotCell (int index, double value)=0
 Write data for one cell.
 
virtual void plotCell (int index, double *values)=0
 
virtual void close ()=0
 If you close your writer, each cell/vertex has to be assigned a value, i.e.
 
virtual void assignRemainingCellsDefaultValues ()=0
 
virtual int getFirstCellWithinPatch (int patchIndex) const =0
 

Detailed Description

A writer for scalar data on elements.

Definition at line 50 of file PatchWriter.h.

Constructor & Destructor Documentation

◆ ~CellDataWriter()

Member Function Documentation

◆ assignRemainingCellsDefaultValues()

virtual void tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter::assignRemainingCellsDefaultValues ( )
pure virtual

◆ close()

virtual void tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter::close ( )
pure virtual

◆ getFirstCellWithinPatch()

virtual int tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter::getFirstCellWithinPatch ( int  patchIndex) const
pure virtual

◆ plotCell() [1/2]

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

◆ plotCell() [2/2]

virtual void tarch.plotter::griddata::blockstructured::PatchWriter::CellDataWriter::plotCell ( int  index,
double  value 
)
pure virtual

Write data for one cell.

You have to tell the plotter which cell you want to manipulate. If you are not sure, use getFirstCellWithinPatch() of the class to transform the patch index you got from plotPatch() into a proper vertex/cell index.

Parameters
indexIndex of the cell.
valueValue for the cell.

Implemented in tarch.plotter::griddata::blockstructured::PeanoBinaryPatchFileWriter::CellDataWriter, tarch.plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter::CellDataWriter, and tarch.plotter::griddata::blockstructured::PeanoTextPatchFileWriter::CellDataWriter.


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