Draws a picture of a mesh in DX. More...
#include <meshDX.hh>


Public Member Functions | |
| MeshDXCell (std::ostream &os, VertexList &vtxList, uint nelms, uint nfaces, uint dim=2) | |
| Constructor. | |
| virtual void | operator() (const concepts::Cell &cell) throw (concepts::MissingFeature, concepts::Assertion) |
| Application operator. | |
| virtual void | operator() (const concepts::Element< F > &elm) throw (concepts::MissingFeature) |
| Application operator. | |
| virtual | ~MeshDXCell () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| uint | dim_ |
| Spatial dimension of the mesh or space. | |
| std::ostream & | os_ |
| Output stream. | |
| VertexList & | vtxList_ |
| List of vertices. | |
Draws a picture of a mesh in DX.
The application operator of this class sketches the mesh in DX format for each cell or element.
You should not use this class directly. Instead, use the executor class MeshDX or (even simpler) its trampoline function drawMeshDX (which hides the template parameter of MeshDX).
MeshDX the executor class drawMeshDX the trampoline function of MeshDX | graphics::MeshDXCell< F >::MeshDXCell | ( | std::ostream & | os, |
| VertexList & | vtxList, | ||
| uint | nelms, | ||
| uint | nfaces, | ||
| uint | dim = 2 |
||
| ) |
Constructor.
Creates the header of the file and writes the coordinates of the vertices to the file. The order of the vertices is stored in the vertex list.
| os | Output stream where the data should be written to. |
| vtxList | List of vertices with coordinates and connectivity information |
| nelms | Number of elements |
| nfaces | Number of boundary faces |
| dim | Number of spatial dimensions of the mesh or space |
| virtual graphics::MeshDXCell< F >::~MeshDXCell | ( | ) | [virtual] |
| virtual std::ostream& concepts::CellPostprocess< F >::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::BaseOutputCell< F >, graphics::BaseDataCell< F, G >, graphics::BaseElementFormulaCell< F, G >, graphics::BaseFormulaCell< F, G >, graphics::BaseMeshCell, graphics::VertexList, hp2D::APrioriRefinement, hp3D::APrioriRefinement, concepts::HRefinement< F, dim >, concepts::PRefinement< F, dim >, concepts::CellIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellEdgeIntegral< F >, graphics::BaseOutputCell< G >, and graphics::BaseOutputCell< Real >.
| virtual void graphics::MeshDXCell< F >::operator() | ( | const concepts::Element< F > & | elm | ) | throw (concepts::MissingFeature) [virtual] |
Application operator.
This application operator has to be overloaded to post process a space.
| elm | Current element |
Implements concepts::CellPostprocess< F >.
| virtual void graphics::MeshDXCell< F >::operator() | ( | const concepts::Cell & | cell | ) | throw (concepts::MissingFeature, concepts::Assertion) [virtual] |
Application operator.
This application operator has to be overloaded to post process a mesh.
| cell | Current cell |
Implements concepts::CellPostprocess< F >.
uint graphics::MeshDXCell< F >::dim_ [private] |
std::ostream& graphics::MeshDXCell< F >::os_ [private] |
VertexList& graphics::MeshDXCell< F >::vtxList_ [private] |