graphics::MeshEPSCell< F > Class Template Referenceabstract

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

#include <meshEPS.hh>

Inheritance diagram for graphics::MeshEPSCell< F >:
concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

void maxMax (const concepts::Real2d &x)
 
 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. More...
 
 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. More...
 
void offsetMin (const concepts::Real2d &x)
 
virtual void operator() (const concepts::Cell &cell) throw (concepts::MissingFeature)
 Application operator. More...
 
virtual void operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature)
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

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

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 98 of file meshEPS.hh.

Constructor & Destructor Documentation

◆ MeshEPSCell() [1/2]

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

◆ MeshEPSCell() [2/2]

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

◆ EPSheader_()

template<class F >
void graphics::MeshEPSCell< F >::EPSheader_ ( const concepts::Real2d  max,
std::ostream &  os 
) const
private

◆ info()

◆ maxMax()

template<class F >
void graphics::MeshEPSCell< F >::maxMax ( const concepts::Real2d x)

◆ offsetMin()

template<class F >
void graphics::MeshEPSCell< F >::offsetMin ( const concepts::Real2d x)

◆ operator()() [1/3]

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

◆ operator()() [2/3]

template<class F >
virtual void graphics::MeshEPSCell< F >::operator() ( const concepts::Element< Real > &  elm)
throw (concepts::MissingFeature
)
virtual

◆ operator()() [3/3]

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< F > &  elm)
pure virtualinherited

Application operator.

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

Parameters
elmCurrent element

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

Member Data Documentation

◆ greyscale_

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

Greyscaling factor.

Definition at line 138 of file meshEPS.hh.

◆ max_

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

Offset of the top right corner from the origin.

Definition at line 144 of file meshEPS.hh.

◆ nPoints_

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

Number of points per edge to be drawn.

Definition at line 147 of file meshEPS.hh.

◆ offset_

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

Offset of the bottom left corner from the origin.

Definition at line 141 of file meshEPS.hh.

◆ os_

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

Output stream.

Definition at line 132 of file meshEPS.hh.

◆ scale_

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

Scaling factor.

Definition at line 135 of file meshEPS.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