Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
graphics::DataDXData Class Reference

Graphics in OpenDX - data. More...

#include <dataDX.hh>

Inheritance diagram for graphics::DataDXData:
Inheritance graph
[legend]
Collaboration diagram for graphics::DataDXData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Attributes

concepts::Array< Real > coeff_
 Elementwise coefficients of the shape functions.
const concepts::ElementFormula
< Real > * 
efrm_
 Formula to plot (given elementwise)
std::auto_ptr< const
concepts::Formula< Real > > 
frm_
 Formula to plot.
std::string name_
 Name of this data component.
std::ostream & os_
 Output stream.
uint pc_
 Data correspond to positions (0) or connections (1)
concepts::Array< Real > shpfnc_
 Values of the shape functions.
const concepts::Vector< Real > * solution_
 Vector of the variable to plot.
concepts::Array< Real > vertexSol_
 Solution in the vertices in the list of vertices.
uint vertexSolIndex_
 Index of the next entry in vertexSol_ which will be written.
concepts::Array< Real > vtxData_
 Data vector of data belonging to the vertex list.
VertexListvtxList_
 List of vertices.

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 383 of file dataDX.hh.


Constructor & Destructor Documentation

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
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
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
virtual graphics::DataDXData::~DataDXData ( ) [virtual]

Member Function Documentation

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

Definition at line 426 of file dataDX.hh.

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

Definition at line 427 of file dataDX.hh.

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

Definition at line 425 of file dataDX.hh.

virtual std::ostream& concepts::CellPostprocess< Real >::info ( std::ostream &  os) const [protected, virtual, inherited]
virtual void graphics::DataDXData::operator() ( const concepts::Cell cell) [inline, virtual]

Application operator.

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

Parameters:
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

Definition at line 423 of file dataDX.hh.

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< Real > &  elm) [pure virtual, inherited]

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 >.

virtual void graphics::DataDXData::operator() ( const concepts::Element< Real > &  elm) throw (concepts::MissingFeature) [virtual]
void graphics::DataDXData::write ( const float  x) const

Writes a float in binary format to the output stream.


Member Data Documentation

Elementwise coefficients of the shape functions.

Definition at line 446 of file dataDX.hh.

Formula to plot (given elementwise)

Definition at line 443 of file dataDX.hh.

std::auto_ptr<const concepts::Formula<Real> > graphics::DataDXData::frm_ [private]

Formula to plot.

Definition at line 440 of file dataDX.hh.

std::string graphics::DataDXData::name_ [private]

Name of this data component.

Definition at line 458 of file dataDX.hh.

std::ostream& graphics::DataDXData::os_ [private]

Output stream.

Definition at line 434 of file dataDX.hh.

uint graphics::DataDXData::pc_ [private]

Data correspond to positions (0) or connections (1)

Definition at line 461 of file dataDX.hh.

Values of the shape functions.

Definition at line 449 of file dataDX.hh.

Vector of the variable to plot.

Definition at line 437 of file dataDX.hh.

Solution in the vertices in the list of vertices.

Definition at line 452 of file dataDX.hh.

Index of the next entry in vertexSol_ which will be written.

Definition at line 455 of file dataDX.hh.

Data vector of data belonging to the vertex list.

Definition at line 467 of file dataDX.hh.

List of vertices.

Definition at line 464 of file dataDX.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)