torque Torque Game Engine Documentation
TGE Version 1.5.2

ExtrudedPolyList Class Reference

#include <extrudedPolyList.h>

Inheritance diagram for ExtrudedPolyList:

Inheritance graph
[legend]

Detailed Description

Extruded Polytope PolyList.

This class is used primarily for collision detection, by objects which need to check for obstructions along their path. You feed it a polytope to extrude along the direction of movement, and it gives you a list of collisions.

See also:
AbstractPolyList


Public Types

typedef Vector< ExtrudedFaceExtrudedList
typedef Vector< PlaneFPlaneList
typedef Vector< VertexVertexList
typedef Vector< U32IndexList

Public Member Functions

 ExtrudedPolyList ()
 ~ExtrudedPolyList ()
void extrude (const Polyhedron &, const VectorF &vec)
void setVelocity (const VectorF &velocity)
void setCollisionList (CollisionList *)
void adjustCollisionTime ()
void render ()
bool isEmpty () const
 Are we empty of data?
U32 addPoint (const Point3F &p)
 Adds a point to the poly list, and returns an ID number for that point.
U32 addPlane (const PlaneF &plane)
 Adds a plane to the poly list, and returns an ID number for that point.
void begin (U32 material, U32 surfaceKey)
 Start a surface.
void plane (U32 v1, U32 v2, U32 v3)
 Indicate the plane of the surface.
void plane (const PlaneF &p)
 Indicate the plane of the surface.
void plane (const U32 index)
 Indicate the plane of the surface.
void vertex (U32 vi)
 Reference a vertex which is in this surface.
void end ()
 Mark the end of a surface.

Data Fields

VertexList mVertexList
IndexList mIndexList
ExtrudedList mExtrudedList
PlaneList mPlaneList
VectorF mVelocity
VectorF mNormalVelocity
F32 mFaceShift
Poly mPoly
CollisionListmCollisionList
PlaneList mPolyPlaneList

Static Public Attributes

static F32 EqualEpsilon
static F32 FaceEpsilon

Protected Member Functions

const PlaneFgetIndexedPlane (const U32 index)
 A helper function to convert a plane index to a PlaneF structure.

Private Member Functions

bool testPoly (ExtrudedFace &)

Data Structures

struct  ExtrudedFace
struct  Poly
struct  Vertex


Member Typedef Documentation


Constructor & Destructor Documentation

ExtrudedPolyList::ExtrudedPolyList (  ) 

ExtrudedPolyList::~ExtrudedPolyList (  ) 


Member Function Documentation

bool ExtrudedPolyList::testPoly ( ExtrudedFace  )  [private]

void ExtrudedPolyList::extrude ( const Polyhedron ,
const VectorF vec 
)

void ExtrudedPolyList::setVelocity ( const VectorF velocity  ) 

void ExtrudedPolyList::setCollisionList ( CollisionList  ) 

void ExtrudedPolyList::adjustCollisionTime (  ) 

void ExtrudedPolyList::render (  ) 

bool ExtrudedPolyList::isEmpty (  )  const [virtual]

Are we empty of data?

Implements AbstractPolyList.

U32 ExtrudedPolyList::addPoint ( const Point3F p  )  [virtual]

Adds a point to the poly list, and returns an ID number for that point.

Implements AbstractPolyList.

U32 ExtrudedPolyList::addPlane ( const PlaneF plane  )  [virtual]

Adds a plane to the poly list, and returns an ID number for that point.

Implements AbstractPolyList.

void ExtrudedPolyList::begin ( U32  material,
U32  surfaceKey 
) [virtual]

Start a surface.

Parameters:
material A material ID for this surface.
surfaceKey A key value to associate with this surface.

Implements AbstractPolyList.

void ExtrudedPolyList::plane ( U32  v1,
U32  v2,
U32  v3 
) [virtual]

Indicate the plane of the surface.

Implements AbstractPolyList.

void ExtrudedPolyList::plane ( const PlaneF p  )  [virtual]

Indicate the plane of the surface.

Implements AbstractPolyList.

void ExtrudedPolyList::plane ( const U32  index  )  [virtual]

Indicate the plane of the surface.

Implements AbstractPolyList.

void ExtrudedPolyList::vertex ( U32  vi  )  [virtual]

Reference a vertex which is in this surface.

Implements AbstractPolyList.

void ExtrudedPolyList::end (  )  [virtual]

Mark the end of a surface.

Implements AbstractPolyList.

const PlaneF& ExtrudedPolyList::getIndexedPlane ( const U32  index  )  [protected, virtual]

A helper function to convert a plane index to a PlaneF structure.

Implements AbstractPolyList.


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen