Routines for writing mesh and formula for a single cell for different cell types. More...
#include <matlab.hh>


Static Public Member Functions | |
| static void | writeAttributes (const concepts::Connector &cntr, std::map< std::string, std::ostream * > &os) |
| Writes for a cell the attributes to output streams. | |
| static void | writeCoord (concepts::Point< Real, 2 > x, std::map< std::string, std::ostream * > &os) |
| template<uint dim> | |
| static void | writeCoord (typename concepts::Point< Real, dim > x, std::map< std::string, std::ostream * > &os) |
| Writes the coordinates of one point to output streams. | |
| template<class F > | |
| static void | writeFormula (const concepts::Cell &cell, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, const concepts::PiecewiseFormulaBase< F > *frm) |
| Writes for a cell a formula on the mesh, with coordinates, to output streams. | |
| static void | writeMesh (const concepts::Cell &cell, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true) |
| Writes for a cell the mesh, eventually with coordinates, to output streams. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Static Private Member Functions | |
| static void | writeMesh_ (const concepts::Quad2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true) |
| static void | writeMesh_ (const concepts::Edge2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true) |
| static void | writeMesh_ (const concepts::InfiniteQuad2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true) |
Routines for writing mesh and formula for a single cell for different cell types.
| virtual std::ostream& graphics::MatlabMesh::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| static void graphics::MatlabMesh::writeAttributes | ( | const concepts::Connector & | cntr, |
| std::map< std::string, std::ostream * > & | os | ||
| ) | [static] |
Writes for a cell the attributes to output streams.
| cntr | connector |
| os | output streams |
| np | number of points (per direction) |
| cnt | counter |
| void graphics::MatlabMesh::writeCoord | ( | typename concepts::Point< Real, dim > | x, |
| std::map< std::string, std::ostream * > & | os | ||
| ) | [static] |
| static void graphics::MatlabMesh::writeCoord | ( | concepts::Point< Real, 2 > | x, |
| std::map< std::string, std::ostream * > & | os | ||
| ) | [static] |
| void graphics::MatlabMesh::writeFormula | ( | const concepts::Cell & | cell, |
| std::map< std::string, std::ostream * > & | os, | ||
| const concepts::Array< uint > & | np, | ||
| uint & | cnt, | ||
| const concepts::PiecewiseFormulaBase< F > * | frm | ||
| ) | [static] |
| static void graphics::MatlabMesh::writeMesh | ( | const concepts::Cell & | cell, |
| std::map< std::string, std::ostream * > & | os, | ||
| const concepts::Array< uint > & | np, | ||
| uint & | cnt, | ||
| bool | boundary = false, |
||
| bool | coord = true |
||
| ) | [static] |
Writes for a cell the mesh, eventually with coordinates, to output streams.
| cell | Cell |
| os | output streams |
| np | number of points (per direction) |
| cnt | counter |
| boundary | if true, only on points on boundary are set |
| coord | if true, output of coordinates |
| static void graphics::MatlabMesh::writeMesh_ | ( | const concepts::Quad2d & | quad, |
| std::map< std::string, std::ostream * > & | os, | ||
| const concepts::Array< uint > & | np, | ||
| uint & | cnt, | ||
| bool | boundary = false, |
||
| bool | coord = true |
||
| ) | [static, private] |
| static void graphics::MatlabMesh::writeMesh_ | ( | const concepts::Edge2d & | quad, |
| std::map< std::string, std::ostream * > & | os, | ||
| const concepts::Array< uint > & | np, | ||
| uint & | cnt, | ||
| bool | boundary = false, |
||
| bool | coord = true |
||
| ) | [static, private] |
| static void graphics::MatlabMesh::writeMesh_ | ( | const concepts::InfiniteQuad2d & | quad, |
| std::map< std::string, std::ostream * > & | os, | ||
| const concepts::Array< uint > & | np, | ||
| uint & | cnt, | ||
| bool | boundary = false, |
||
| bool | coord = true |
||
| ) | [static, private] |