graphics::MeshEPSCell< F > Class Template Referenceabstract
Draws a picture of a mesh in EPS. More...
#include <meshEPS.hh>
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
Definition at line 98 of file meshEPS.hh.
Constructor & Destructor Documentation
◆ MeshEPSCell() [1/2]
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
-
os Output stream where the data should be written to msh The mesh which should be draw scale Optional scaling parameter
◆ MeshEPSCell() [2/2]
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
-
os Output stream where the data should be written to spc The space which should be drawn scale Optional scaling parameter
Member Function Documentation
◆ EPSheader_()
|
private |
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CellEdgeIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellIntegral< F >, hp3D::APrioriRefinement, hp2D::APrioriRefinement, graphics::VertexList, graphics::MatrixCounterCell, graphics::BaseMeshCell, graphics::BaseOutputCell< F >, and graphics::BaseOutputCell< Real >.
◆ maxMax()
void graphics::MeshEPSCell< F >::maxMax | ( | const concepts::Real2d & | x | ) |
◆ offsetMin()
void graphics::MeshEPSCell< F >::offsetMin | ( | const concepts::Real2d & | x | ) |
◆ operator()() [1/3]
|
virtual |
Application operator.
This application operator has to be overloaded to post process a mesh.
- Parameters
-
cell Current cell
Implements concepts::CellPostprocess< Real >.
◆ operator()() [2/3]
|
virtual |
◆ operator()() [3/3]
|
pure virtualinherited |
Application operator.
This application operator has to be overloaded to post process a space.
- Parameters
-
elm Current element
Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.
Member Data Documentation
◆ greyscale_
|
private |
Greyscaling factor.
Definition at line 138 of file meshEPS.hh.
◆ max_
|
private |
Offset of the top right corner from the origin.
Definition at line 144 of file meshEPS.hh.
◆ nPoints_
|
private |
Number of points per edge to be drawn.
Definition at line 147 of file meshEPS.hh.
◆ offset_
|
private |
Offset of the bottom left corner from the origin.
Definition at line 141 of file meshEPS.hh.
◆ os_
|
private |
Output stream.
Definition at line 132 of file meshEPS.hh.
◆ scale_
|
private |
Scaling factor.
Definition at line 135 of file meshEPS.hh.
The documentation for this class was generated from the following file:
- graphics/meshEPS.hh