graphics::MeshDX< F > Class Template Reference
Draws a picture of a mesh in DX format and stores the result in a file. More...
#include <meshDX.hh>
Public Member Functions | |
MeshDX (concepts::Mesh &msh, std::string filename) throw (concepts::Assertion) | |
Constructor. More... | |
MeshDX (concepts::Space< F > &spc, std::string filename, uint dim) throw (concepts::Assertion) | |
Constructor. More... | |
Private Member Functions | |
void | constructor_ (concepts::GlobalPostprocess< F > &postProcess, std::string &filename, uint nelm, uint dim) |
Private constructor. More... | |
Private Attributes | |
std::string | filename_ |
Filename. More... | |
concepts::Mesh * | msh_ |
The mesh. More... | |
concepts::Space< F > * | spc_ |
The space. More... | |
Detailed Description
template<class F>
class graphics::MeshDX< F >
Draws a picture of a mesh in DX format and stores the result in a file.
This class is just an executor class for MeshDXCell
and BoundaryDXCell
, the real work to draw the picture is done there.
The created file contains information on the cells of the mesh and the attribute of the boundary cells (if it is set). graphics/dx/mesh-boundary.net
contains a Visual Program for OpenDX to display this information.
The class has a template parameter which is not very handy. For this purpose, there are two trampoline functions drawMeshDX
which create this class and handle the template parameter corretctly.
- See also
drawMeshDX
the trampoline function of this class-
MeshDXCell
on of the classes which does the real work -
BoundaryDXCell
on of the classes which does the real work - Homepage of OpenDX
- Homepage of OpenDX at IBM research
- Todo:
- Include more information: attribute for cells, diameter etc.
- Examples
- hpFEM3d-EV.cc.
Constructor & Destructor Documentation
◆ MeshDX() [1/2]
graphics::MeshDX< F >::MeshDX | ( | concepts::Mesh & | msh, |
std::string | filename | ||
) | |||
throw | ( | concepts::Assertion | |
) |
Constructor.
The coarsest grid will be depicted. To store the results, a new file is created.
- Parameters
-
msh Mesh which should be drawn filename File where the data for OpenDX should be stored
◆ MeshDX() [2/2]
graphics::MeshDX< F >::MeshDX | ( | concepts::Space< F > & | spc, |
std::string | filename, | ||
uint | dim | ||
) | |||
throw | ( | concepts::Assertion | |
) |
Constructor.
The currently used grid in the space will be depicted. To store the results, a new file is created.
- Parameters
-
spc Space which should be drawn filename File where the data for OpenDX should be stored dim Spatial dimensions of the space, this parameter can be determined by the spaceDimensionTraits by using spaceDimension
- See also
- spaceDimension
Member Function Documentation
◆ constructor_()
|
private |
Private constructor.
Member Data Documentation
◆ filename_
|
private |
◆ msh_
|
private |
◆ spc_
|
private |
The documentation for this class was generated from the following file:
- graphics/meshDX.hh