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


Public Member Functions | |
| void | add (uint a) |
Increments the counter for the quads or cubes by a. | |
| uint | counts () const |
| Returns the number of quads or cubes which have to be built with connections. | |
| DataDXCoordinates (std::ostream &os, const uint count, VertexList *vtxList=0, const uint dim=2) | |
| Constructor. | |
| void | inc () |
Increments cntCoords_ by 1. | |
| virtual void | operator() (const concepts::Cell &) |
| Application operator. | |
| virtual void | operator() (const Element< Real > &elm)=0 |
| Application operator. | |
| virtual void | operator() (const concepts::Element< Real > &elm) |
| void | write (const float x) const |
| Writes a float in binary format to the output stream. | |
| virtual | ~DataDXCoordinates () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| uint | cntCoords_ |
| Number of coordinates written so far, only for internal use. | |
| uint | counts_ |
| Number of quads or cubes which have to be built with connections. | |
| const uint | dim_ |
| Dimension of the coordinates to be saved. | |
| std::ostream & | os_ |
| Output stream. | |
| VertexList * | vtxList_ |
| List of the vertices. | |
Graphics in OpenDX - coordinates.
This class writes the coordinates of the points 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::DataDXCoordinates::DataDXCoordinates | ( | std::ostream & | os, |
| const uint | count, | ||
| VertexList * | vtxList = 0, |
||
| const uint | dim = 2 |
||
| ) |
Constructor.
| os | Output stream where the OpenDX data should be written to |
| count | Number of points |
| vtxList | List of the vertices and their coordinates. This is only needed if the solution should also be plotted in the corners of the elements. Give a 0 pointer if you don't want the corners to be written to the file. |
| dim | Spatial dimension of the problem |
| virtual graphics::DataDXCoordinates::~DataDXCoordinates | ( | ) | [virtual] |
| void graphics::DataDXCoordinates::add | ( | uint | a | ) | [inline] |
| uint graphics::DataDXCoordinates::counts | ( | ) | const |
Returns the number of quads or cubes which have to be built with connections.
| void graphics::DataDXCoordinates::inc | ( | ) | [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::DataDXCoordinates::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::DataDXCoordinates::operator() | ( | const concepts::Element< Real > & | elm | ) | [virtual] |
| void graphics::DataDXCoordinates::write | ( | const float | x | ) | const |
Writes a float in binary format to the output stream.
uint graphics::DataDXCoordinates::cntCoords_ [private] |
uint graphics::DataDXCoordinates::counts_ [private] |
const uint graphics::DataDXCoordinates::dim_ [private] |
std::ostream& graphics::DataDXCoordinates::os_ [private] |
VertexList* graphics::DataDXCoordinates::vtxList_ [private] |