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::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. | |
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).
Definition at line 96 of file meshEPS.hh.
| 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.
| os | Output stream where the data should be written to |
| msh | The mesh which should be draw |
| scale | Optional scaling parameter |
| 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.
| os | Output stream where the data should be written to |
| spc | The space which should be drawn |
| scale | Optional scaling parameter |
| 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] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in EvaluateEa_of_x, CellA_M_alpha_of_x, CellA_M_of_x_MC, graphics::BaseMeshCell, graphics::VertexList, hp2D::APrioriRefinement, hp3D::APrioriRefinement, concepts::CellIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellEdgeIntegral< F >, and graphics::BaseOutputCell< Real >.
| void graphics::MeshEPSCell< F >::maxMax | ( | const concepts::Real2d & | x | ) |
| void graphics::MeshEPSCell< F >::offsetMin | ( | const concepts::Real2d & | x | ) |
| 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.
| cell | Current cell |
Implements concepts::CellPostprocess< Real >.
| 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.
| elm | Current element |
Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.
Real graphics::MeshEPSCell< F >::greyscale_ [private] |
Greyscaling factor.
Definition at line 136 of file meshEPS.hh.
concepts::Real2d graphics::MeshEPSCell< F >::max_ [private] |
Offset of the top right corner from the origin.
Definition at line 142 of file meshEPS.hh.
unsigned int graphics::MeshEPSCell< F >::nPoints_ [private] |
Number of points per edge to be drawn.
Definition at line 145 of file meshEPS.hh.
concepts::Real2d graphics::MeshEPSCell< F >::offset_ [private] |
Offset of the bottom left corner from the origin.
Definition at line 139 of file meshEPS.hh.
std::ostream& graphics::MeshEPSCell< F >::os_ [private] |
Output stream.
Definition at line 130 of file meshEPS.hh.
Real graphics::MeshEPSCell< F >::scale_ [private] |
Scaling factor.
Definition at line 133 of file meshEPS.hh.