VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DtPolygon2D Class Reference

List of all members.

Public Types

typedef std::vector< DtPointDtVertexContainer
typedef std::vector< DtPoint >
::iterator 
DtVertexIter
typedef std::vector< DtPoint >
::const_iterator 
DtVertexConstIter
typedef DtChord DtEdge

Public Member Functions

 DtPolygon2D (const DtVertexContainer &polygonVertices)
 DtPolygon2D (const DtExtent &extent)
virtual ~DtPolygon2D ()
unsigned int numberOfVertices () const
bool getVertex (DtPoint &vertex, unsigned int vertexIndex) const
DtPoint vertex (unsigned int vertexIndex) const
bool setVertex (unsigned int vertexIndex, const DtPoint &newVertex)
DtVertexConstIter verticesBegin () const
DtVertexConstIter verticesEnd () const
DtPoint verticesFront () const
DtPoint verticesBack () const
unsigned int numberOfEdges () const
DtEdge edge (unsigned int edgeIndex) const
bool getEdge (unsigned int edgeIndex, DtEdge &edgeToGet) const
DtExtent extent () const
const DtVertexContainervertices () const

Protected Member Functions

bool testInvariant () const
bool isValidVertexIndex (unsigned int vertexIndex) const
bool isValidEdgeIndex (unsigned int edgeIndex) const

Private Member Functions

 DtPolygon2D (const DtPolygon2D &original)
const DtPolygon2Doperator= (const DtPolygon2D &original)

Private Attributes

DtVertexContainer myVertices

Member Typedef Documentation

typedef std::vector<DtPoint>::iterator DtPolygon2D::DtVertexIter
typedef std::vector<DtPoint>::const_iterator DtPolygon2D::DtVertexConstIter

Constructor & Destructor Documentation

DtPolygon2D::DtPolygon2D ( const DtVertexContainer polygonVertices)
DtPolygon2D::DtPolygon2D ( const DtExtent extent)
virtual DtPolygon2D::~DtPolygon2D ( ) [virtual]
DtPolygon2D::DtPolygon2D ( const DtPolygon2D original) [private]

Member Function Documentation

const DtPolygon2D& DtPolygon2D::operator= ( const DtPolygon2D original) [private]
unsigned int DtPolygon2D::numberOfVertices ( ) const
bool DtPolygon2D::getVertex ( DtPoint vertex,
unsigned int  vertexIndex 
) const
DtPoint DtPolygon2D::vertex ( unsigned int  vertexIndex) const
bool DtPolygon2D::setVertex ( unsigned int  vertexIndex,
const DtPoint newVertex 
)
unsigned int DtPolygon2D::numberOfEdges ( ) const
DtEdge DtPolygon2D::edge ( unsigned int  edgeIndex) const
bool DtPolygon2D::getEdge ( unsigned int  edgeIndex,
DtEdge edgeToGet 
) const
bool DtPolygon2D::testInvariant ( ) const [protected]
bool DtPolygon2D::isValidVertexIndex ( unsigned int  vertexIndex) const [protected]
bool DtPolygon2D::isValidEdgeIndex ( unsigned int  edgeIndex) const [protected]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)