Go to Overview over all GrAL packages.
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

stored_geometry_reg2d Class Template Reference

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

#include <stored-geometry.h>

Inheritance diagram for stored_geometry_reg2d:

Inheritance graph
[legend]
Collaboration diagram for stored_geometry_reg2d:

Collaboration graph
[legend]
List of all members.

Public Types

typedef stored_geometry_reg2d_base<
Coord2D > 
geom_base
typedef stored_geometry_reg2d<
Coord2D > 
self
typedef point_traits< Coord2D > pt
typedef algebraic_primitives<
Coord2D > 
ap
typedef Segment< Edge, geom_base > segment_type
typedef Polygon2d< Face, geom_base > polygon_type

Public Methods

 stored_geometry_reg2d ()
 stored_geometry_reg2d (const RegGrid2D &gg)
segment_type segment (const Edge &e) const
polygon_type polygon (const Face &f) const
double volume (const Edge &e) const
double length (const Edge &e) const
double volume (const EdgeIterator &e) const
double volume (const Cell &c) const
coord_type center (const Edge &e) const
coord_type center (const Cell &c) const
coord_type outer_area_normal (const NeighbourCellIterator &nb)
coord_type outer_area_normal (const FacetOnCellIterator &f)
coord_type normal_dir (const Edge &e) const
coord_type normed_outer_normal (const Edge &e, const Cell &c) const

Friends

istream & operator>> (istream &in, self &rs)

Detailed Description

template<class Coord2D>
class stored_geometry_reg2d< Coord2D >

"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 Coord2D of the coordinates is a template parameter. This uses a grid_function<Vertex,Coord2D> to store the coordinates, so you (yet) have to provide a specialization to these parameters.

There is a problem with the provided functionality: If we have a 2D-embedding (which is assumed the normal case) we may provide normal directions to Edges, in the 3D-case this does not make sense. So there are 2 possibilities:

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


Member Typedef Documentation

template<class Coord2D>
typedef stored_geometry_reg2d_base<Coord2D> stored_geometry_reg2d::geom_base
 

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

template<class Coord2D>
typedef stored_geometry_reg2d<Coord2D> stored_geometry_reg2d::self
 

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

template<class Coord2D>
typedef point_traits<Coord2D> stored_geometry_reg2d::pt
 

Reimplemented from basic_algebraic_primitives.

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

template<class Coord2D>
typedef algebraic_primitives<Coord2D> stored_geometry_reg2d::ap
 

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

template<class Coord2D>
typedef Segment<Edge,geom_base> stored_geometry_reg2d::segment_type
 

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

Referenced by center, length, segment, and volume.

template<class Coord2D>
typedef Polygon2d<Face,geom_base> stored_geometry_reg2d::polygon_type
 

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

Referenced by center, polygon, and volume.


Constructor & Destructor Documentation

template<class Coord2D>
stored_geometry_reg2d< Coord2D >::stored_geometry_reg2d (    )  [inline]
 

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

template<class Coord2D>
stored_geometry_reg2d< Coord2D >::stored_geometry_reg2d (  const RegGrid2D &    gg )  [inline]
 

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


Member Function Documentation

template<class Coord2D>
segment_type stored_geometry_reg2d< Coord2D >::segment (  const Edge &    e )  const [inline]
 

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

References grid_types< RegGrid2D >::Edge, and segment_type.

template<class Coord2D>
polygon_type stored_geometry_reg2d< Coord2D >::polygon (  const Face &    f )  const [inline]
 

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

References grid_types< RegGrid2D >::Face, and polygon_type.

template<class Coord2D>
double stored_geometry_reg2d< Coord2D >::volume (  const Edge &    e )  const [inline]
 

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

References grid_types< RegGrid2D >::Edge, and segment_type.

Referenced by volume.

template<class Coord2D>
double stored_geometry_reg2d< Coord2D >::length (  const Edge &    e )  const [inline]
 

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

References grid_types< RegGrid2D >::Edge, and segment_type.

template<class Coord2D>
double stored_geometry_reg2d< Coord2D >::volume (  const EdgeIterator &    e )  const [inline]
 

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

References grid_types< RegGrid2D >::EdgeIterator, and volume.

template<class Coord2D>
double stored_geometry_reg2d< Coord2D >::volume (  const Cell &    c )  const [inline]
 

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

References grid_types< RegGrid2D >::Cell, and polygon_type.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::center (  const Edge &    e )  const [inline]
 

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

References stored_geometry_reg2d_base::coord_type, grid_types< RegGrid2D >::Edge, and segment_type.

Referenced by normed_outer_normal, and outer_area_normal.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::center (  const Cell &    c )  const [inline]
 

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

References grid_types< RegGrid2D >::Cell, stored_geometry_reg2d_base::coord_type, and polygon_type.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::outer_area_normal (  const NeighbourCellIterator &    nb )  [inline]
 

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

References center, stored_geometry_reg2d_base::coord_type, grid_types< RegGrid2D >::Edge, Segment::End, grid_types< RegGrid2D >::NeighbourCellIterator, and Segment::Start.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::outer_area_normal (  const FacetOnCellIterator &    f )  [inline]
 

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

References center, stored_geometry_reg2d_base::coord_type, grid_types< RegGrid2D >::Edge, Segment::End, grid_types< RegGrid2D >::FacetOnCellIterator, and Segment::Start.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::normal_dir (  const Edge &    e )  const [inline]
 

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

References stored_geometry_reg2d_base::coord, stored_geometry_reg2d_base::coord_type, and grid_types< RegGrid2D >::Edge.

template<class Coord2D>
coord_type stored_geometry_reg2d< Coord2D >::normed_outer_normal (  const Edge &    e,
const Cell &    c
)  const [inline]
 

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

References grid_types< RegGrid2D >::Cell, center, stored_geometry_reg2d_base::coord, stored_geometry_reg2d_base::coord_type, and grid_types< RegGrid2D >::Edge.


Friends And Related Function Documentation

template<class Coord2D>
istream& operator>> (  istream &    in,
self &    rs
)  [friend]
 

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


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:08:22 2002 for GrAL Cartesian2D by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000