Package: GrAL Cartesian2D        GrAL: Packages | Concepts | Homepage

GrAL::cartesian2d::stored_geometry< COORD > Class Template Reference
[Geometric components for Cartesian2D]

"Classical" geometry for RegGrid2D with stored coordinate values More...

#include </home/guntram/tmp/GrAL/gral/cartesian2d/include/Gral/Grids/Cartesian2D/stored-geometry.h>

Inherits GrAL::cartesian2d::dimension_dependend_extensions2d<stored_geometry_base<COORD>, stored_geometry<COORD>, point_traits<COORD>::dimension>.

List of all members.

Public Types

typedef Segment< Edge, base > segment_type
 geometric representation of edges
typedef Polygon2d< Face, base > polygon_type
 geometric representation of faces (cells)

Public Member Functions

segment_type segment (const Edge &e) const
 get geometric representation for an edge
polygon_type polygon (const Face &f) const
 get geometric representation for a face (cell)
double volume (const Edge &e) const
 1-dimensional volume of an edge
double length (const Edge &e) const
 length of a (straight) edge
double volume (const Cell &c) const
 2-dimensional volume of a cell
coord_type center (const Edge &e) const
 Midpoint of an edge.
coord_type center (const Cell &c) const
 Center of inertia of a cell.
Constructors
 stored_geometry ()
 Empty geometry.
 stored_geometry (const RegGrid2D &gg)
 Storage allocated, but coordinates not initialized.


Detailed Description

template<class COORD>
class GrAL::cartesian2d::stored_geometry< COORD >

"Classical" geometry for RegGrid2D with stored coordinate values

This is a straight-line geometric embedding for the grid class RegGrid2D that simply stores the vertex coordinates. The type COORD of the coordinates is a template parameter.

If COORD lives in a 2-dimensional space, there is additionaly the functionality in dimension_dependend_extensions2d<BASE, GEOM, 2> available.

See also:
Test in test-stored-geometry.C

Definition at line 97 of file stored-geometry.h.


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

©  Guntram Berti 1997-2009. See the GrAL Homepage for up-to-date information.

Generated on Tue Mar 31 19:12:13 2009 for GrAL Cartesian2D by doxygen 1.5.8