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

Static Public Member Functions | Protected Member Functions | Static Private Member Functions
graphics::MatlabMesh Class Reference

Routines for writing mesh and formula for a single cell for different cell types. More...

#include <matlab.hh>

Inheritance diagram for graphics::MatlabMesh:
Inheritance graph
[legend]
Collaboration diagram for graphics::MatlabMesh:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Routines for writing mesh and formula for a single cell for different cell types.

Author:
Kersten Schmidt, 2005

Definition at line 323 of file matlab.hh.


Member Function Documentation

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.

Parameters:
cntrconnector
osoutput streams
npnumber of points (per direction)
cntcounter
template<uint dim>
void graphics::MatlabMesh::writeCoord ( typename concepts::Point< Real, dim >  x,
std::map< std::string, std::ostream * > &  os 
) [static]

Writes the coordinates of one point to output streams.

Parameters:
xcoordinates
osoutput streams

Definition at line 391 of file matlab.hh.

static void graphics::MatlabMesh::writeCoord ( concepts::Point< Real, 2 >  x,
std::map< std::string, std::ostream * > &  os 
) [static]
template<class F >
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]

Writes for a cell a formula on the mesh, with coordinates, to output streams.

Parameters:
cellCell
osoutput streams
npnumber of points (per direction)
cntcounter
frmFormula

Definition at line 402 of file matlab.hh.

Here is the call graph for this function:

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.

Parameters:
cellCell
osoutput streams
npnumber of points (per direction)
cntcounter
boundaryif true, only on points on boundary are set
coordif 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]

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

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