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

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

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

#include <meshEPS.hh>

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

List of all members.

Public Member Functions

void maxMax (const concepts::Real2d &x)
 MeshEPSCell (std::ostream &os, concepts::Space< F > &spc, const Real scale=100, const Real greyscale=1.0, const unsigned int nPoints=20) throw (concepts::MissingFeature)
 Constructor.
 MeshEPSCell (std::ostream &os, concepts::Mesh2 &msh, const Real scale=100, const Real greyscale=1.0, const unsigned int nPoints=20) throw (concepts::MissingFeature)
 Constructor.
void offsetMin (const concepts::Real2d &x)
virtual void operator() (const concepts::Cell &cell) throw (concepts::MissingFeature)
 Application operator.
virtual void operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature)
virtual void operator() (const Element< Real > &elm)=0
 Application operator.

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Member Functions

void EPSheader_ (const concepts::Real2d max, std::ostream &os) const

Private Attributes

Real greyscale_
 Greyscaling factor.
concepts::Real2d max_
 Offset of the top right corner from the origin.
unsigned int nPoints_
 Number of points per edge to be drawn.
concepts::Real2d offset_
 Offset of the bottom left corner from the origin.
std::ostream & os_
 Output stream.
Real scale_
 Scaling factor.

Detailed Description

template<class F>
class graphics::MeshEPSCell< F >

Draws a picture of a mesh in EPS.

The application operator of this class sketches the mesh in EPS format for each cell or element.

You should not use this class directly. Instead, use the executor class MeshEPS or (even simpler) its trampoline function drawMeshEPS (which hides the template parameter of MeshEPS).

See also:
MeshEPS the executor class
drawMeshEPS the trampoline function of MeshEPS
Author:
Philipp Frauenfelder, 2000

Definition at line 96 of file meshEPS.hh.


Constructor & Destructor Documentation

template<class F >
graphics::MeshEPSCell< F >::MeshEPSCell ( std::ostream &  os,
concepts::Mesh2 msh,
const Real  scale = 100,
const Real  greyscale = 1.0,
const unsigned int  nPoints = 20 
) throw (concepts::MissingFeature)

Constructor.

First scanns the mesh for the top right and bottom left point and then prints the header of the EPS file.

Parameters:
osOutput stream where the data should be written to
mshThe mesh which should be draw
scaleOptional scaling parameter
template<class F >
graphics::MeshEPSCell< F >::MeshEPSCell ( std::ostream &  os,
concepts::Space< F > &  spc,
const Real  scale = 100,
const Real  greyscale = 1.0,
const unsigned int  nPoints = 20 
) throw (concepts::MissingFeature)

Constructor.

First scanns the mesh for the top right and bottom left point and then prints the header of the EPS file.

Parameters:
osOutput stream where the data should be written to
spcThe space which should be drawn
scaleOptional scaling parameter

Member Function Documentation

template<class F >
void graphics::MeshEPSCell< F >::EPSheader_ ( const concepts::Real2d  max,
std::ostream &  os 
) const [private]
virtual std::ostream& concepts::CellPostprocess< Real >::info ( std::ostream &  os) const [protected, virtual, inherited]
template<class F >
void graphics::MeshEPSCell< F >::maxMax ( const concepts::Real2d x)
template<class F >
void graphics::MeshEPSCell< F >::offsetMin ( const concepts::Real2d x)
template<class F >
virtual void graphics::MeshEPSCell< F >::operator() ( const concepts::Cell cell) throw (concepts::MissingFeature) [virtual]

Application operator.

This application operator has to be overloaded to post process a mesh.

Parameters:
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

template<class F >
virtual void graphics::MeshEPSCell< F >::operator() ( const concepts::Element< Real > &  elm) throw (concepts::MissingFeature) [virtual]
virtual void concepts::CellPostprocess< Real >::operator() ( const Element< Real > &  elm) [pure virtual, inherited]

Application operator.

This application operator has to be overloaded to post process a space.

Parameters:
elmCurrent element

Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.


Member Data Documentation

template<class F >
Real graphics::MeshEPSCell< F >::greyscale_ [private]

Greyscaling factor.

Definition at line 136 of file meshEPS.hh.

template<class F >
concepts::Real2d graphics::MeshEPSCell< F >::max_ [private]

Offset of the top right corner from the origin.

Definition at line 142 of file meshEPS.hh.

template<class F >
unsigned int graphics::MeshEPSCell< F >::nPoints_ [private]

Number of points per edge to be drawn.

Definition at line 145 of file meshEPS.hh.

template<class F >
concepts::Real2d graphics::MeshEPSCell< F >::offset_ [private]

Offset of the bottom left corner from the origin.

Definition at line 139 of file meshEPS.hh.

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

Output stream.

Definition at line 130 of file meshEPS.hh.

template<class F >
Real graphics::MeshEPSCell< F >::scale_ [private]

Scaling factor.

Definition at line 133 of file meshEPS.hh.


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

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