torque Torque Game Engine Documentation
TGE Version 1.5.2

ConcretePolyList Class Reference

#include <concretePolyList.h>

Inheritance diagram for ConcretePolyList:

Inheritance graph
[legend]

Detailed Description

A concrete, renderable PolyList.

This class is used to store geometry from a PolyList query.

It allows you to render this data, as well.

See also:
AbstractPolyList


Public Types

typedef Vector< PlaneFPlaneList
typedef Vector< Point3FVertexList
typedef Vector< PolyPolyList
typedef Vector< U32IndexList

Public Member Functions

 ConcretePolyList ()
 ~ConcretePolyList ()
void clear ()
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.
void render ()
bool isEmpty () const
 Are we empty of data?

Data Fields

PolyList mPolyList
VertexList mVertexList
IndexList mIndexList
PlaneList mPolyPlaneList

Protected Member Functions

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

Data Structures

struct  Poly


Member Typedef Documentation


Constructor & Destructor Documentation

ConcretePolyList::ConcretePolyList (  ) 

ConcretePolyList::~ConcretePolyList (  ) 


Member Function Documentation

void ConcretePolyList::clear (  ) 

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

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

Implements AbstractPolyList.

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

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

Implements AbstractPolyList.

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

Indicate the plane of the surface.

Implements AbstractPolyList.

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

Indicate the plane of the surface.

Implements AbstractPolyList.

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

Indicate the plane of the surface.

Implements AbstractPolyList.

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

Reference a vertex which is in this surface.

Implements AbstractPolyList.

void ConcretePolyList::end (  )  [virtual]

Mark the end of a surface.

Implements AbstractPolyList.

void ConcretePolyList::render (  ) 

bool ConcretePolyList::isEmpty (  )  const [virtual]

Are we empty of data?

Implements AbstractPolyList.

const PlaneF& ConcretePolyList::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