graphics::MeshDXCell< F > Class Template Reference
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. More... | |
virtual void | operator() (const concepts::Cell &cell) throw (concepts::MissingFeature, concepts::Assertion) |
Application operator. More... | |
virtual void | operator() (const concepts::Element< F > &elm) throw (concepts::MissingFeature) |
Application operator. More... | |
virtual | ~MeshDXCell () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
uint | dim_ |
Spatial dimension of the mesh or space. More... | |
std::ostream & | os_ |
Output stream. More... | |
VertexList & | vtxList_ |
List of vertices. More... | |
Detailed Description
template<class F>
class graphics::MeshDXCell< F >
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
).
- See also
MeshDX
the executor class-
drawMeshDX
the trampoline function ofMeshDX
Constructor & Destructor Documentation
◆ MeshDXCell()
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.
- Parameters
-
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
- Precondition
- dim = 2 or dim = 3 corresponds to the spatial dimension of the mesh or space.
◆ ~MeshDXCell()
|
virtual |
Member Function Documentation
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CellEdgeIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellIntegral< F >, concepts::PRefinement< F, dim >, concepts::HRefinement< F, dim >, hp3D::APrioriRefinement, hp2D::APrioriRefinement, graphics::VertexList, graphics::MatrixBaseElementFormulaCell< F, G >, graphics::MatrixCounterCell, graphics::BaseMeshCell, graphics::BaseFormulaCell< F, G >, graphics::BaseElementFormulaCell< F, G >, graphics::BaseDataCell< F, G >, graphics::BaseOutputCell< F >, graphics::BaseOutputCell< typename concepts::Realtype< F >::type >, and graphics::BaseOutputCell< Real >.
◆ operator()() [1/2]
|
virtual |
Application operator.
This application operator has to be overloaded to post process a mesh.
- Parameters
-
cell Current cell
Implements concepts::CellPostprocess< F >.
◆ operator()() [2/2]
|
virtual |
Application operator.
This application operator has to be overloaded to post process a space.
- Parameters
-
elm Current element
Implements concepts::CellPostprocess< F >.
Member Data Documentation
◆ dim_
|
private |
◆ os_
|
private |
◆ vtxList_
|
private |
The documentation for this class was generated from the following file:
- graphics/meshDX.hh