Class documentation of Concepts

Loading...
Searching...
No Matches
graphics::DataDXData Class Referenceabstract

#include <dataDX.hh>

Inheritance diagram for graphics::DataDXData:
concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

 DataDXData (std::ostream &os, const concepts::Vector< Real > &solution, const uint count, const std::string &name, VertexList *vtxList=0)
 
 DataDXData (std::ostream &os, const concepts::Formula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
 
 DataDXData (std::ostream &os, const concepts::ElementFormula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
 
virtual void operator() (const concepts::Element< Real > &elm)
 
virtual void operator() (const concepts::Cell &)
 
const concepts::Formula< Real > * formula () const
 
const concepts::Array< Real > & coeff () const
 
const concepts::ElementFormula< Real > * elementFormula () const
 
void write (const float x) const
 Writes a float in binary format to the output stream.
 
virtual void operator() (const Element< Real > &elm)=0
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

Graphics in OpenDX - data. This class writes the solution to the file.

You should not use this class directly, Instead, use the executor class DataDX or (even simpler) its trampoline function drawDataDX (which hides the template parameter of DataDX).

See also
DataDX the executor class
drawDataDX the trampoline function of DataDX
Author
Philipp Frauenfelder, 2000

Definition at line 367 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDXData() [1/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::Vector< Real > &  solution,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor. Prepares to plot the given solution.

Parameters
osOutput stream where the OpenDX data should be written to
solutionThe vector containing the variable which should be plotted
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

◆ DataDXData() [2/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::Formula< Real > &  frm,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor. Prepares to plot the given formula.

Parameters
osOutput stream where the DX data should be written to
frmFormula to be plotted
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

◆ DataDXData() [3/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::ElementFormula< Real > &  frm,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor. Prepares to plot the given formula.

Parameters
osOutput stream where the DX data should be written to
frmFormula to be plotted (given elementwise)
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

Member Function Documentation

◆ coeff()

const concepts::Array< Real > & graphics::DataDXData::coeff ( ) const
inline

Definition at line 409 of file dataDX.hh.

◆ elementFormula()

const concepts::ElementFormula< Real > * graphics::DataDXData::elementFormula ( ) const
inline

Definition at line 410 of file dataDX.hh.

◆ formula()

const concepts::Formula< Real > * graphics::DataDXData::formula ( ) const
inline

Definition at line 408 of file dataDX.hh.

◆ info()

virtual std::ostream & concepts::CellPostprocess< Real >::info ( std::ostream &  os) const
protectedvirtualinherited

◆ operator()() [1/2]

virtual void graphics::DataDXData::operator() ( const concepts::Cell cell)
inlinevirtual

Application operator. This application operator has to be overloaded to post process a mesh.

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

Definition at line 406 of file dataDX.hh.

◆ operator()() [2/2]

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< Real > &  elm)
pure virtualinherited

Application operator. This application operator has to be overloaded to post process a space.

Parameters
elmCurrent element

Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.


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