Polytope Class Reference

#include <Polytope.h>

List of all members.

Public Member Functions

 Polytope (vector< Point > points, int _id)
double getMaxCoordinateOnDimension (const int dimension) const
double getMinCoordinateOnDimension (const int dimension) const
Point getCoordinate (const int i) const
int getNumberOfAngles () const
int getDimension () const
int getIdentification () const

Private Attributes

vector< Point_points
int identification


Detailed Description

Defines a polytope. Currently only stores the points (vertices) of a polytope; not how those points are interconnected to obtain the actual polytope. Note that that is also not required to obtain bounding boxes.

Definition at line 21 of file Polytope.h.


Constructor & Destructor Documentation

Polytope::Polytope ( vector< Point points,
int  _id 
) [inline]

Base constructor.

Parameters:
points The cornerpoints of the polytope to be created
_id The identification number of this polytope

Definition at line 37 of file Polytope.h.

References _points, and identification.


Member Function Documentation

double Polytope::getMaxCoordinateOnDimension ( const int  dimension  )  const

Gets the maximum coordinate of all points at a given dimension.

Parameters:
dimension The given dimension
Returns:
The maximum number requested

Definition at line 13 of file Polytope.cpp.

References _points, and getCoordinate().

Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().

double Polytope::getMinCoordinateOnDimension ( const int  dimension  )  const

Gets the minimum coordinate of all points at a given dimension.

Parameters:
dimension The given dimension.
Returns:
The minimum number requested.

Definition at line 24 of file Polytope.cpp.

References _points, and getCoordinate().

Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().

Point Polytope::getCoordinate ( const int  i  )  const

Returns the i-th angle coordinates from this polytope.

Parameters:
i The angle index
Returns:
The angle coordinates represented by a point

Definition at line 39 of file Polytope.cpp.

References _points.

Referenced by getDimension(), getMaxCoordinateOnDimension(), and getMinCoordinateOnDimension().

int Polytope::getNumberOfAngles (  )  const

Get the number of angles this Polytope possesses. Note that this is simply equal to the number of points used to describe this polytope.

Returns:
The number of angles.

Definition at line 35 of file Polytope.cpp.

References _points.

int Polytope::getDimension (  )  const

Returns the dimension of this polytope.

Returns:
The current dimension.

Definition at line 43 of file Polytope.cpp.

References getCoordinate(), and Point::getDimension().

Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().

int Polytope::getIdentification (  )  const

Returns the identification number of this polytope.

Returns:
The identification number.

Definition at line 47 of file Polytope.cpp.

References identification.

Referenced by Cubic_Bounding_Box_Container::Cubic_Bounding_Box_Container().


Member Data Documentation

vector<Point> Polytope::_points [private]

The points this polytope consists of.

Definition at line 24 of file Polytope.h.

Referenced by getCoordinate(), getMaxCoordinateOnDimension(), getMinCoordinateOnDimension(), getNumberOfAngles(), and Polytope().

int Polytope::identification [private]

Identification number.

Definition at line 27 of file Polytope.h.

Referenced by getIdentification(), and Polytope().


The documentation for this class was generated from the following files:
Generated on Sat Oct 13 17:34:43 2007 for R-Tree by  doxygen 1.5.2