Generic BSP Tree Face. More...
#include <decBSPTreeFace.h>
Public Member Functions | |
Constructors and Destructors | |
| decBSPTreeFace () | |
| Creates a new bsp tree face. | |
| virtual | ~decBSPTreeFace () |
| Cleans up new bsp tree face. | |
Management | |
| int | GetVertexCount () const |
| Retrieves the number of vertices. | |
| const decVector & | GetVertexAt (int index) const |
| Retrieves the vertex at the given position. | |
| void | AddVertex (const decVector &vertex) |
| Adds a vertex. | |
| void | RemoveAllVertices () |
| Removes all vertices. | |
| void * | GetUserData () const |
| Retrieves the user data. | |
| void | SetUserData (void *userData) |
| Sets the user data. | |
Generic BSP Tree Face.
Stores a bsp tree face. The face has to be convex and can contain more than 3 vertices. An optional user data parameter allows to link external informations to a face.
| decBSPTreeFace::decBSPTreeFace | ( | ) |
Creates a new bsp tree face.
| virtual decBSPTreeFace::~decBSPTreeFace | ( | ) | [virtual] |
Cleans up new bsp tree face.
| void decBSPTreeFace::AddVertex | ( | const decVector & | vertex ) |
Adds a vertex.
| void* decBSPTreeFace::GetUserData | ( | ) | const [inline] |
Retrieves the user data.
| const decVector& decBSPTreeFace::GetVertexAt | ( | int | index ) | const |
Retrieves the vertex at the given position.
| int decBSPTreeFace::GetVertexCount | ( | ) | const [inline] |
Retrieves the number of vertices.
| void decBSPTreeFace::RemoveAllVertices | ( | ) |
Removes all vertices.
| void decBSPTreeFace::SetUserData | ( | void * | userData ) |
Sets the user data.
1.7.2