decBSPTreeFace Class Reference

Generic BSP Tree Face. More...

#include <decBSPTreeFace.h>

List of all members.

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 decVectorGetVertexAt (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.

Detailed Description

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.

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

Constructor & Destructor Documentation

decBSPTreeFace::decBSPTreeFace (  )

Creates a new bsp tree face.

virtual decBSPTreeFace::~decBSPTreeFace (  ) [virtual]

Cleans up new bsp tree face.


Member Function Documentation

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.


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