torque Torque Game Engine Documentation
CVS Revision Label 1.3.x

PlaneExtractorPolyList Class Reference

#include <planeExtractor.h>

Inheritance diagram for PlaneExtractorPolyList:

AbstractPolyList

Detailed Description

Fill a Vector<PlaneF> with the planes from the geometry passed through this PolyList.

See also:
AbstractPolyList


Public Types

typedef Vector< Point3FVertexList

Public Member Functions

 PlaneExtractorPolyList ()
 ~PlaneExtractorPolyList ()
void clear ()
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
Vector< PlaneFmPolyPlaneList
Vector< PlaneF > * mPlaneList

Protected Member Functions

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

Private Member Functions

void memcpy (U32 *d, U32 *s, U32 size)


Member Typedef Documentation

typedef Vector<Point3F> PlaneExtractorPolyList::VertexList
 


Constructor & Destructor Documentation

PlaneExtractorPolyList::PlaneExtractorPolyList  ) 
 

PlaneExtractorPolyList::~PlaneExtractorPolyList  ) 
 


Member Function Documentation

void PlaneExtractorPolyList::memcpy U32 d,
U32 s,
U32  size
[private]
 

void PlaneExtractorPolyList::clear  ) 
 

void PlaneExtractorPolyList::render  ) 
 

bool PlaneExtractorPolyList::isEmpty  )  const [virtual]
 

Are we empty of data?

Implements AbstractPolyList.

U32 PlaneExtractorPolyList::addPoint const Point3F p  )  [virtual]
 

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

Implements AbstractPolyList.

U32 PlaneExtractorPolyList::addPlane const PlaneF plane  )  [virtual]
 

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

Implements AbstractPolyList.

void PlaneExtractorPolyList::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 PlaneExtractorPolyList::plane U32  v1,
U32  v2,
U32  v3
[virtual]
 

Indicate the plane of the surface.

Implements AbstractPolyList.

void PlaneExtractorPolyList::plane const PlaneF p  )  [virtual]
 

Indicate the plane of the surface.

Implements AbstractPolyList.

void PlaneExtractorPolyList::plane const U32  index  )  [virtual]
 

Indicate the plane of the surface.

Implements AbstractPolyList.

void PlaneExtractorPolyList::vertex U32  vi  )  [virtual]
 

Reference a vertex which is in this surface.

Implements AbstractPolyList.

void PlaneExtractorPolyList::end  )  [virtual]
 

Mark the end of a surface.

Implements AbstractPolyList.

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

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

Implements AbstractPolyList.


Field Documentation

VertexList PlaneExtractorPolyList::mVertexList
 

Vector<PlaneF> PlaneExtractorPolyList::mPolyPlaneList
 

Vector<PlaneF>* PlaneExtractorPolyList::mPlaneList
 




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