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

Definition at line 89 of file meshDX.hh.

Constructor & Destructor Documentation

◆ MeshDX() [1/2]

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

◆ MeshDX() [2/2]

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

◆ constructor_()

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

◆ filename_

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

Filename.

Definition at line 118 of file meshDX.hh.

◆ msh_

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

The mesh.

Definition at line 115 of file meshDX.hh.

◆ spc_

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

The space.

Definition at line 112 of file meshDX.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich