decConvexVolume Class Reference

Convex Volume. More...

#include <decConvexVolume.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decConvexVolume ()
 Creates an empty convex volume.
virtual ~decConvexVolume ()
 Cleans up the convex volume.
Vertex Management
int GetVertexCount () const
 Retrieves the number of vertices.
const decVectorGetVertexAt (int position) const
 Retrieves the vertex at the given position.
bool HasVertex (const decVector &vertex) const
 Determines if the given vertex exists.
int IndexOfVertex (const decVector &vertex) const
 Retrieves the index of the given vertex or -1 if not found.
void AddVertex (const decVector &vertex)
 Adds a vertex.
void RemoveVertex (int index)
 Removes the given vertex.
void RemoveAllVertices ()
 Removes all vertices.
Face Management
int GetFaceCount () const
 Retrieves the number of faces.
decConvexVolumeFaceGetFaceAt (int index) const
 Retrieves the face at the given index.
bool HasFace (decConvexVolumeFace *face) const
 Determines if the given face exists.
int IndexOfFace (decConvexVolumeFace *face) const
 Retrieves the index of the given face or -1 if not found.
void AddFace (decConvexVolumeFace *face)
 Adds a convex face.
void RemoveFace (decConvexVolumeFace *face)
 Removes the given face.
void RemoveAllFaces ()
 Removes all faces.
Operations
void SetEmpty ()
 Clears the volume of all vertices and faces.
void SetToCube (const decVector &halfSize)
 Sets the volume to a cube with the given dimensions.
void Move (const decVector &direction)
 Moves the volume by the given amount.

Detailed Description

Convex Volume.

Defines a convex volume. Such volumes are composed of convex faces of arbitrary vertex count. Convex volumes can be split up using planes.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decConvexVolume::decConvexVolume (  )

Creates an empty convex volume.

virtual decConvexVolume::~decConvexVolume (  ) [virtual]

Cleans up the convex volume.


Member Function Documentation

void decConvexVolume::AddFace ( decConvexVolumeFace face )

Adds a convex face.

void decConvexVolume::AddVertex ( const decVector vertex )

Adds a vertex.

decConvexVolumeFace* decConvexVolume::GetFaceAt ( int  index ) const

Retrieves the face at the given index.

int decConvexVolume::GetFaceCount (  ) const [inline]

Retrieves the number of faces.

const decVector& decConvexVolume::GetVertexAt ( int  position ) const

Retrieves the vertex at the given position.

int decConvexVolume::GetVertexCount (  ) const [inline]

Retrieves the number of vertices.

bool decConvexVolume::HasFace ( decConvexVolumeFace face ) const

Determines if the given face exists.

bool decConvexVolume::HasVertex ( const decVector vertex ) const

Determines if the given vertex exists.

int decConvexVolume::IndexOfFace ( decConvexVolumeFace face ) const

Retrieves the index of the given face or -1 if not found.

int decConvexVolume::IndexOfVertex ( const decVector vertex ) const

Retrieves the index of the given vertex or -1 if not found.

void decConvexVolume::Move ( const decVector direction )

Moves the volume by the given amount.

void decConvexVolume::RemoveAllFaces (  )

Removes all faces.

void decConvexVolume::RemoveAllVertices (  )

Removes all vertices.

void decConvexVolume::RemoveFace ( decConvexVolumeFace face )

Removes the given face.

void decConvexVolume::RemoveVertex ( int  index )

Removes the given vertex.

void decConvexVolume::SetEmpty (  )

Clears the volume of all vertices and faces.

void decConvexVolume::SetToCube ( const decVector halfSize )

Sets the volume to a cube with the given dimensions.


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