Portal System Face. More...
#include <dePortalSystemFace.h>
Public Types | |
| enum | eFaceTypes { eftWall, eftSemiWall, eftPortal } |
Face types. More... | |
Public Member Functions | |
Constructors and Destructors | |
| dePortalSystemFace () | |
| Creates a new portal system face. | |
| ~dePortalSystemFace () | |
| Cleans up the portal system face. | |
Management | |
| int | GetType () const |
| Retrieves the type. | |
| void | SetType (int type) |
| Sets the type. | |
| int | GetVertexCount () const |
| Retrieves the number of vertices. | |
| void | SetVertexCount (int count) |
| Sets the number of vertices. | |
| int | GetVertexAt (int index) const |
| Retrieves the vertex at the given position. | |
| void | SetVertexAt (int index, int corner) |
| Sets the corner at the given position. | |
| int * | GetVertices () const |
| Retrieves the pointer to the vertices. | |
| int | GetRoomFront () const |
| Retrieves the room on the front side or -1 if not existing. | |
| void | SetRoomFront (int room) |
| Sets the room on the front side of -1 if not existing. | |
| int | GetRoomBack () const |
| Retrieves the room on the back side or -1 if not existing. | |
| void | SetRoomBack (int room) |
| Sets the room on the back side of -1 if not existing. | |
Portal System Face.
Face in a portal system. A valid face composes of 3 or more vertices. All vertices have to be co-planar and the face has to be convex. Furthermore up to two rooms are stored the face belongs to. The first room is the one on the front side of the face and the second room the one on the back side. If not belonging to any room -1 is stored.
| dePortalSystemFace::dePortalSystemFace | ( | ) |
Creates a new portal system face.
| dePortalSystemFace::~dePortalSystemFace | ( | ) |
Cleans up the portal system face.
| int dePortalSystemFace::GetRoomBack | ( | ) | const [inline] |
Retrieves the room on the back side or -1 if not existing.
| int dePortalSystemFace::GetRoomFront | ( | ) | const [inline] |
Retrieves the room on the front side or -1 if not existing.
| int dePortalSystemFace::GetType | ( | ) | const [inline] |
Retrieves the type.
| int dePortalSystemFace::GetVertexAt | ( | int | index ) | const |
Retrieves the vertex at the given position.
| int dePortalSystemFace::GetVertexCount | ( | ) | const [inline] |
Retrieves the number of vertices.
| int* dePortalSystemFace::GetVertices | ( | ) | const [inline] |
Retrieves the pointer to the vertices.
| void dePortalSystemFace::SetRoomBack | ( | int | room ) |
Sets the room on the back side of -1 if not existing.
| void dePortalSystemFace::SetRoomFront | ( | int | room ) |
Sets the room on the front side of -1 if not existing.
| void dePortalSystemFace::SetType | ( | int | type ) |
Sets the type.
| void dePortalSystemFace::SetVertexAt | ( | int | index, |
| int | corner | ||
| ) |
Sets the corner at the given position.
| void dePortalSystemFace::SetVertexCount | ( | int | count ) |
Sets the number of vertices.
1.7.2