graphics::MeshDXCell< F > Class Template Reference

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

#include <meshDX.hh>

Inheritance diagram for graphics::MeshDXCell< F >:
concepts::CellPostprocess< F > concepts::OutputOperator

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

Definition at line 165 of file meshDX.hh.

Constructor & Destructor Documentation

◆ MeshDXCell()

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.

◆ ~MeshDXCell()

template<class F >
virtual graphics::MeshDXCell< F >::~MeshDXCell ( )
virtual

Member Function Documentation

◆ info()

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

Member Data Documentation

◆ dim_

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

Spatial dimension of the mesh or space.

Definition at line 198 of file meshDX.hh.

◆ os_

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

Output stream.

Definition at line 192 of file meshDX.hh.

◆ vtxList_

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

List of vertices.

Definition at line 195 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