iso::geom::Geometry Class Reference

#include <iso_geom_geometry.h>

Inherited by iso::geom::Cuboid, iso::geom::GeometryGroup, iso::geom::Line, iso::geom::Mesh, iso::geom::Plane, iso::geom::PolyLine, iso::geom::Ray, iso::geom::Spline, iso::geom::SplineGroup, and iso::geom::Triangle.

Inheritance diagram for iso::geom::Geometry:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Geometry (unsigned int pDim)
 create geometry
virtual ~Geometry ()
 destructor
virtual void calcMinMaxPos ()=0
 calculate minimum and maximum positions
unsigned int dim () const
 return dimension
const math::Vector< real > & minPos () const
 return minimum position
const math::Vector< real > & maxPos () const
 return maximum position
virtual void closestPoint (const math::Vector< real > &pRefPoint, math::Vector< real > &pResPoint)=0
 return closest point

Protected Member Functions

 Geometry ()
 default constructor

Protected Attributes

unsigned int mDim
math::Vector< realmMinPos
 dimension
math::Vector< realmMaxPos
 minimum position

Constructor & Destructor Documentation

Geometry::Geometry ( unsigned int  pDim  ) 

create geometry

Parameters:
pDim dimension

Geometry::~Geometry (  )  [virtual]

destructor

Geometry::Geometry (  )  [protected]

default constructor


Member Function Documentation

virtual void iso::geom::Geometry::calcMinMaxPos (  )  [pure virtual]

calculate minimum and maximum positions

Implemented in iso::geom::Cuboid, iso::geom::GeometryGroup, iso::geom::Line, iso::geom::Plane, iso::geom::PolyLine, iso::geom::Ray, iso::geom::Triangle, iso::geom::Mesh, iso::geom::Spline, and iso::geom::SplineGroup.

unsigned int Geometry::dim (  )  const

return dimension

Returns:
dimension

const math::Vector< real > & Geometry::minPos (  )  const

return minimum position

Returns:
minimum position

Reimplemented in iso::geom::Cuboid.

const math::Vector< real > & Geometry::maxPos (  )  const

return maximum position

Returns:
maximum position

Reimplemented in iso::geom::Cuboid.

virtual void iso::geom::Geometry::closestPoint ( const math::Vector< real > &  pRefPoint,
math::Vector< real > &  pResPoint 
) [pure virtual]

return closest point

Parameters:
pRefPoint reference points
pResPoint result point
Remarks:
fails if dimension of reference and result points don't match dimension of geometry

Implemented in iso::geom::Cuboid, iso::geom::GeometryGroup, iso::geom::Line, iso::geom::Plane, iso::geom::PolyLine, iso::geom::Ray, iso::geom::Triangle, iso::geom::Mesh, iso::geom::Spline, and iso::geom::SplineGroup.


Member Data Documentation

unsigned int iso::geom::Geometry::mDim [protected]

math::Vector<real> iso::geom::Geometry::mMinPos [protected]

dimension

math::Vector<real> iso::geom::Geometry::mMaxPos [protected]

minimum position


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 20:43:23 2010 for iso_geom by  doxygen 1.5.1