torque Torque Game Engine Documentation
TGE Version 1.5.2

DepthSortList Class Reference

#include <depthSortList.h>

Inheritance diagram for DepthSortList:

Inheritance graph
[legend]

Public Types

typedef Vector< PolyExtentsPolyExtentsList
typedef Vector< U32PolyIndexList

Public Member Functions

void setBase (S32)
bool splitPoly (const Poly &sourcePoly, Point3F &normal, F32 k, Poly &front, Poly &back)
bool overlap (Poly *, Poly *)
void handleOverlap (Poly *testPoly, Point3F &testNormal, F32 testDot, S32 &testOffset, bool &switched)
void sortByYExtents ()
void setExtents (Poly &, PolyExtents &)
bool sortNext ()
void cookieCutter (Poly &cutter, Poly &cuttee, Vector< Poly > &scraps, Vector< Poly > &cookies, Vector< Point3F > &cookieVerts)
void wireCube (const Point3F &size, const Point3F &pos)
 DepthSortList ()
 ~DepthSortList ()
void set (const MatrixF &mat, Point3F &extents)
void clear ()
void clearSort ()
void sort ()
void depthPartition (const Point3F *sourceVerts, U32 numVerts, Vector< Poly > &partition, Vector< Point3F > &partitionVerts)
void end ()
 Mark the end of a surface.
bool getMapping (MatrixF *, Box3F *)
 Return list transform and bounds in list space.
void getOrderedPoly (U32 ith, Poly **poly, PolyExtents **polyExtent)
PolyExtentsgetExtents (U32 idx)
Poly & getPoly (U32 idx)
void render ()

Data Fields

PolyExtentsList mPolyExtentsList
PolyIndexList mPolyIndexList
Point3F mExtent
S32 mBase
Poly * mBasePoly
Point3FmBaseNormal
F32 mBaseDot
F32 mBaseYMax
S32 mMaxTouched
PolyExtentsmBaseExtents

Static Public Attributes

static bool renderWithDepth

Private Types

typedef ClippedPolyList Parent

Data Structures

struct  PolyExtents

Member Typedef Documentation


Constructor & Destructor Documentation

DepthSortList::DepthSortList (  ) 

DepthSortList::~DepthSortList (  ) 


Member Function Documentation

void DepthSortList::setBase ( S32   ) 

bool DepthSortList::splitPoly ( const Poly &  sourcePoly,
Point3F normal,
F32  k,
Poly &  front,
Poly &  back 
)

bool DepthSortList::overlap ( Poly *  ,
Poly *   
)

void DepthSortList::handleOverlap ( Poly *  testPoly,
Point3F testNormal,
F32  testDot,
S32 testOffset,
bool &  switched 
)

void DepthSortList::sortByYExtents (  ) 

void DepthSortList::setExtents ( Poly &  ,
PolyExtents  
)

bool DepthSortList::sortNext (  ) 

void DepthSortList::cookieCutter ( Poly &  cutter,
Poly &  cuttee,
Vector< Poly > &  scraps,
Vector< Poly > &  cookies,
Vector< Point3F > &  cookieVerts 
)

void DepthSortList::wireCube ( const Point3F size,
const Point3F pos 
)

void DepthSortList::set ( const MatrixF mat,
Point3F extents 
)

void DepthSortList::clear (  ) 

Reimplemented from ClippedPolyList.

void DepthSortList::clearSort (  ) 

void DepthSortList::sort (  ) 

void DepthSortList::depthPartition ( const Point3F sourceVerts,
U32  numVerts,
Vector< Poly > &  partition,
Vector< Point3F > &  partitionVerts 
)

void DepthSortList::end (  )  [virtual]

Mark the end of a surface.

Reimplemented from ClippedPolyList.

bool DepthSortList::getMapping ( MatrixF ,
Box3F  
) [virtual]

Return list transform and bounds in list space.

Returns:
False if no data is available.

Reimplemented from AbstractPolyList.

void DepthSortList::getOrderedPoly ( U32  ith,
Poly **  poly,
PolyExtents **  polyExtent 
) [inline]

PolyExtents& DepthSortList::getExtents ( U32  idx  )  [inline]

Poly& DepthSortList::getPoly ( U32  idx  )  [inline]

void DepthSortList::render (  ) 

Reimplemented from ClippedPolyList.


Field Documentation




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