Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Private Member Functions | Private Attributes
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>

Collaboration diagram for graphics::MeshDX< F >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshDX (concepts::Mesh &msh, std::string filename) throw (concepts::Assertion)
 Constructor.
 MeshDX (concepts::Space< F > &spc, std::string filename, uint dim) throw (concepts::Assertion)
 Constructor.

Private Member Functions

void constructor_ (concepts::GlobalPostprocess< F > &postProcess, std::string &filename, uint nelm, uint dim)
 Private constructor.

Private Attributes

std::string filename_
 Filename.
concepts::Meshmsh_
 The mesh.
concepts::Space< F > * spc_
 The space.

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
Author:
Philipp Frauenfelder, 2001
Todo:
Include more information: attribute for cells, diameter etc.
Examples:

hpFEM3d-EV.cc.

Definition at line 87 of file meshDX.hh.


Constructor & Destructor Documentation

template<class F>
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:
mshMesh which should be drawn
filenameFile where the data for OpenDX should be stored
template<class F>
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:
spcSpace which should be drawn
filenameFile where the data for OpenDX should be stored
dimSpatial dimensions of the space, this parameter can be determined by the spaceDimensionTraits by using spaceDimension
See also:
spaceDimension

Member Function Documentation

template<class F>
void graphics::MeshDX< F >::constructor_ ( concepts::GlobalPostprocess< F > &  postProcess,
std::string &  filename,
uint  nelm,
uint  dim 
) [private]

Private constructor.


Member Data Documentation

template<class F>
std::string graphics::MeshDX< F >::filename_ [private]

Filename.

Definition at line 116 of file meshDX.hh.

template<class F>
concepts::Mesh* graphics::MeshDX< F >::msh_ [private]

The mesh.

Definition at line 113 of file meshDX.hh.

template<class F>
concepts::Space<F>* graphics::MeshDX< F >::spc_ [private]

The space.

Definition at line 110 of file meshDX.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)