Graphics in OpenDX - data. More...
#include <dataDX.hh>


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. | |
| VertexList * | vtxList_ |
| List of vertices. | |
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).
| 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.
| os | Output stream where the OpenDX data should be written to |
| solution | The vector containing the variable which should be plotted |
| count | Number of points |
| name | Name of the solution |
| vtxList | List 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.
| os | Output stream where the DX data should be written to |
| frm | Formula to be plotted |
| count | Number of points |
| name | Name of the solution |
| vtxList | List 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.
| os | Output stream where the DX data should be written to |
| frm | Formula to be plotted (given elementwise) |
| count | Number of points |
| name | Name of the solution |
| vtxList | List of the vertices and their coordinates |
| virtual graphics::DataDXData::~DataDXData | ( | ) | [virtual] |
| const concepts::Array<Real>& graphics::DataDXData::coeff | ( | ) | const [inline] |
| const concepts::ElementFormula<Real>* graphics::DataDXData::elementFormula | ( | ) | const [inline] |
| const concepts::Formula<Real>* graphics::DataDXData::formula | ( | ) | const [inline] |
| virtual std::ostream& concepts::CellPostprocess< Real >::info | ( | std::ostream & | os | ) | const [protected, virtual, inherited] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in EvaluateEa_of_x, CellA_M_alpha_of_x, CellA_M_of_x_MC, graphics::BaseMeshCell, graphics::VertexList, hp2D::APrioriRefinement, hp3D::APrioriRefinement, concepts::CellIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellEdgeIntegral< F >, and graphics::BaseOutputCell< Real >.
| 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.
| cell | Current cell |
Implements concepts::CellPostprocess< Real >.
| 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.
| elm | Current 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.
concepts::Array<Real> graphics::DataDXData::coeff_ [private] |
const concepts::ElementFormula<Real>* graphics::DataDXData::efrm_ [private] |
std::auto_ptr<const concepts::Formula<Real> > graphics::DataDXData::frm_ [private] |
std::string graphics::DataDXData::name_ [private] |
std::ostream& graphics::DataDXData::os_ [private] |
uint graphics::DataDXData::pc_ [private] |
concepts::Array<Real> graphics::DataDXData::shpfnc_ [private] |
const concepts::Vector<Real>* graphics::DataDXData::solution_ [private] |
concepts::Array<Real> graphics::DataDXData::vertexSol_ [private] |
uint graphics::DataDXData::vertexSolIndex_ [private] |
concepts::Array<Real> graphics::DataDXData::vtxData_ [private] |
VertexList* graphics::DataDXData::vtxList_ [private] |