Base class for graphics format writing. Entry points are. More...
Public Member Functions | |
TypeName ("writer") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, writer, word,(),()) | |
writer () | |
Construct null. More... | |
virtual | ~writer ()=0 |
Destructor. More... | |
virtual fileName | getFileName (const coordSet &, const wordList &) const =0 |
Generate file name with correct extension. More... | |
virtual void | write (const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0 |
General entry point for writing. More... | |
virtual void | write (const coordSet &, const wordList &, const List< Field< Type >> &, Ostream &) const |
General entry point for writing. More... | |
virtual void | write (const bool writeTracks, const PtrList< coordSet > &, const wordList &valueSetNames, const List< List< Field< Type >>> &, Ostream &) const =0 |
General entry point for writing of multiple coordSets. More... | |
virtual Ostream & | write (const scalar, Ostream &) const |
Write scalar as ascii. More... | |
template<class VSType > | |
Ostream & | writeVS (const VSType &, Ostream &) const |
virtual Ostream & | write (const vector &, Ostream &) const |
Write vector. Tab separated ascii. More... | |
virtual Ostream & | write (const sphericalTensor &, Ostream &) const |
Write sphericalTensor. Tab separated ascii. More... | |
virtual Ostream & | write (const symmTensor &, Ostream &) const |
Write symmTensor. Tab separated ascii. More... | |
virtual Ostream & | write (const tensor &, Ostream &) const |
Write tensor. Tab separated ascii. More... | |
template<class VSType > | |
Foam::Ostream & | writeVS (const VSType &value, Ostream &os) const |
Static Public Member Functions | |
static autoPtr< writer > | New (const word &writeFormat) |
Return a reference to the selected writer. More... | |
Protected Member Functions | |
fileName | getBaseName (const coordSet &, const wordList &) const |
Generates filename from coordSet and sampled fields. More... | |
void | writeCoord (const coordSet &, const label sampleI, Ostream &) const |
void | writeTable (const coordSet &, const List< Type > &, Ostream &) const |
Writes single-column ascii write. Column 1 is coordSet coordinate,. More... | |
void | writeTable (const coordSet &, const List< const List< Type > * > &, Ostream &os) const |
Writes multi-column ascii write. Column 1 is coordSet coordinate,. More... | |
virtual void | writeSeparator (Ostream &os) const |
Writes a separator. Used by write functions. More... | |
Base class for graphics format writing. Entry points are.
- write(..).
Write to an Ostream a table of points with corresponding values.
Example:
// Construct writer of xmgr type autoPtr<writer<scalar>> scalarFormatter(writer<scalar>::New("xmgr")); // Output list of points and corresponding values scalarFormatter().write ( coordSet(...) "U.component(0)", // name of values vals // values );
|
protected |
|
protectedvirtual |
Writes a separator. Used by write functions.
Reimplemented in csvSetWriter< Type >.
TypeName | ( | "writer< Type >" | ) |
Runtime type information.
|
static |
Return a reference to the selected writer.
Definition at line 38 of file writer.C.
Referenced by histogram::read(), streamLineBase::read(), particleDistribution::read(), regionSizeDistribution::read(), and graph::write().
Generate file name with correct extension.
Implemented in nastranSetWriter< Type >, csvSetWriter< Type >, jplotSetWriter< Type >, vtkSetWriter< Type >, ensightSetWriter< Type >, gnuplotSetWriter< Type >, rawSetWriter< Type >, and xmgraceSetWriter< Type >.
Referenced by meshRefinement::findRegions(), and sampledSets::writeSampleFile().
|
pure virtual |
General entry point for writing.
The data is organized in a set of point with one or more values per point
Implemented in nastranSetWriter< Type >, csvSetWriter< Type >, jplotSetWriter< Type >, vtkSetWriter< Type >, ensightSetWriter< Type >, gnuplotSetWriter< Type >, rawSetWriter< Type >, and xmgraceSetWriter< Type >.
Referenced by meshRefinement::findRegions(), vtkSetWriter< Type >::write(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), Foam::writeAreaField(), Foam::vtk::writeCellSetFaces(), Foam::vtk::writeFaceSet(), Foam::writePointField(), sampledSets::writeSampleFile(), Foam::writeVolField(), vtkWrite::writeVolFields(), lumpedPointMovement::writeVTP(), AMIWeights::writeWeightField(), and lumpedPointMovement::writeZonesVTP().
|
pure virtual |
General entry point for writing of multiple coordSets.
Each coordSet (track) has same data variables. The data is per variable, per track, per point of track. If writeTracks adds connecting lines (wherever applicable)
Implemented in nastranSetWriter< Type >, csvSetWriter< Type >, jplotSetWriter< Type >, vtkSetWriter< Type >, ensightSetWriter< Type >, gnuplotSetWriter< Type >, rawSetWriter< Type >, and xmgraceSetWriter< Type >.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Foam::Ostream& writeVS | ( | const VSType & | value, |
Ostream & | os | ||
) | const |