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

Public Member Functions | Protected Member Functions | Private Attributes
graphics::MeshDXCell< F > Class Template Reference

Draws a picture of a mesh in DX. More...

#include <meshDX.hh>

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

List of all members.

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.
VertexListvtxList_
 List of vertices.

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 of MeshDX
Author:
Philipp Frauenfelder, 2000

Definition at line 163 of file meshDX.hh.


Constructor & Destructor Documentation

template<class F >
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:
osOutput stream where the data should be written to.
vtxListList of vertices with coordinates and connectivity information
nelmsNumber of elements
nfacesNumber of boundary faces
dimNumber of spatial dimensions of the mesh or space
Precondition:
dim = 2 or dim = 3 corresponds to the spatial dimension of the mesh or space.
template<class F >
virtual graphics::MeshDXCell< F >::~MeshDXCell ( ) [virtual]

Member Function Documentation

template<class F>
virtual std::ostream& concepts::CellPostprocess< F >::info ( std::ostream &  os) const [protected, virtual, inherited]
template<class F >
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.

Parameters:
elmCurrent element

Implements concepts::CellPostprocess< F >.

template<class 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.

Parameters:
cellCurrent cell

Implements concepts::CellPostprocess< F >.


Member Data Documentation

template<class F >
uint graphics::MeshDXCell< F >::dim_ [private]

Spatial dimension of the mesh or space.

Definition at line 196 of file meshDX.hh.

template<class F >
std::ostream& graphics::MeshDXCell< F >::os_ [private]

Output stream.

Definition at line 190 of file meshDX.hh.

template<class F >
VertexList& graphics::MeshDXCell< F >::vtxList_ [private]

List of vertices.

Definition at line 193 of file meshDX.hh.


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

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