VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DtPolygon2D Class Reference

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 
)
DtVertexConstIter DtPolygon2D::verticesBegin ( ) const
DtVertexConstIter DtPolygon2D::verticesEnd ( ) const
DtPoint DtPolygon2D::verticesFront ( ) const
DtPoint DtPolygon2D::verticesBack ( ) const
unsigned int DtPolygon2D::numberOfEdges ( ) const
DtEdge DtPolygon2D::edge ( unsigned int  edgeIndex) const
bool DtPolygon2D::getEdge ( unsigned int  edgeIndex,
DtEdge edgeToGet 
) const
DtExtent DtPolygon2D::extent ( ) const
const DtVertexContainer& DtPolygon2D::vertices ( ) 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

DtVertexContainer DtPolygon2D::myVertices
private

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)