torque Torque Game Engine Documentation
TGE Version 1.5.2

ConvexBrush Class Reference

#include <convexBrush.h>


Public Types

enum  {
  Front = 0,
  Back = 1,
  On = 2,
  Split = 3,
  Unknown = 4
}
enum  {
  Unprocessed = 0,
  Good,
  BadWinding,
  ShortPlanes,
  BadFaces,
  Malformed,
  Concave,
  Deleted
}

Public Member Functions

 ConvexBrush ()
 ~ConvexBrush ()
bool addPlane (PlaneF pln)
bool addFace (PlaneF pln, PlaneF texGen[2], F32 scale[2], char *texture)
bool addFace (PlaneF pln, PlaneF texGen[2], F32 scale[2], char *texture, U32 matIdx)
bool addFace (PlaneF pln, PlaneF texGen[2], F32 scale[2], U32 matIdx)
bool processBrush ()
bool setScale (F32 scale)
bool selfClip ()
bool intersectPlanes (const PlaneF &plane1, const PlaneF &plane2, const PlaneF &plane3, Point3D *pOutput)
bool createWinding (const Vector< U32 > &rPoints, const Point3F &normal, Vector< U32 > &pWinding)
void addEdge (U16 zero, U16 one, U32 face)
bool generateEdgelist ()
void validateWindings ()
bool validateEdges ()
void addIndex (Vector< U32 > &indices, U32 index)
void calcCentroid ()
void setupTransform ()
void resetBrush ()
U32 getPolySide (S32 side)
U32 whichSide (PlaneF pln)
U32 whichSide (PlaneF pln, U32 faceIndex)
bool isInsideBox (PlaneF left, PlaneF right, PlaneF top, PlaneF bottom)
bool splitBrush (PlaneF pln, ConvexBrush *fbrush, ConvexBrush *bbrush)
bool calcBounds ()
bool castRay (const Point3F &s, const Point3F &e, RayInfo *info)
OptimizedPolyList getIntersectingPolys (OptimizedPolyList *list)
OptimizedPolyList getNonIntersectingPolys (OptimizedPolyList *list)
bool isPolyInside (OptimizedPolyList *list, U32 pdx)
bool getPolyList (AbstractPolyList *list)
bool render (bool genColors)
bool renderFace (U32 face, bool renderLighting)
bool renderEdges (ColorF color)

Data Fields

InteriorMapResource::EntitymOwner
Box3F mBounds
Point3F mCentroid
MatrixF mTransform
Point3F mScale
QuatF mRotation
MatrixF mLightingTransform
F32 mBrushScale
S32 mID
U32 mType
U32 mStatus
U32 mPrevStatus
bool mSelected
StringTableEntry mDebugInfo
MatrixF mTransformScratch
QuatF mRotationScratch
OptimizedPolyList mFaces
Vector< TexInfomTexInfos

Data Structures

struct  TexInfo


Member Enumeration Documentation

anonymous enum

Enumerator:
Front 
Back 
On 
Split 
Unknown 

anonymous enum

Enumerator:
Unprocessed 
Good 
BadWinding 
ShortPlanes 
BadFaces 
Malformed 
Concave 
Deleted 


Constructor & Destructor Documentation

ConvexBrush::ConvexBrush (  ) 

ConvexBrush::~ConvexBrush (  ) 


Member Function Documentation

bool ConvexBrush::addPlane ( PlaneF  pln  ) 

bool ConvexBrush::addFace ( PlaneF  pln,
PlaneF  texGen[2],
F32  scale[2],
char *  texture 
)

bool ConvexBrush::addFace ( PlaneF  pln,
PlaneF  texGen[2],
F32  scale[2],
char *  texture,
U32  matIdx 
)

bool ConvexBrush::addFace ( PlaneF  pln,
PlaneF  texGen[2],
F32  scale[2],
U32  matIdx 
)

bool ConvexBrush::processBrush (  ) 

bool ConvexBrush::setScale ( F32  scale  ) 

bool ConvexBrush::selfClip (  ) 

bool ConvexBrush::intersectPlanes ( const PlaneF plane1,
const PlaneF plane2,
const PlaneF plane3,
Point3D pOutput 
)

bool ConvexBrush::createWinding ( const Vector< U32 > &  rPoints,
const Point3F normal,
Vector< U32 > &  pWinding 
)

void ConvexBrush::addEdge ( U16  zero,
U16  one,
U32  face 
)

bool ConvexBrush::generateEdgelist (  ) 

void ConvexBrush::validateWindings (  ) 

bool ConvexBrush::validateEdges (  ) 

void ConvexBrush::addIndex ( Vector< U32 > &  indices,
U32  index 
)

void ConvexBrush::calcCentroid (  ) 

void ConvexBrush::setupTransform (  ) 

void ConvexBrush::resetBrush (  ) 

U32 ConvexBrush::getPolySide ( S32  side  ) 

U32 ConvexBrush::whichSide ( PlaneF  pln  ) 

U32 ConvexBrush::whichSide ( PlaneF  pln,
U32  faceIndex 
)

bool ConvexBrush::isInsideBox ( PlaneF  left,
PlaneF  right,
PlaneF  top,
PlaneF  bottom 
)

bool ConvexBrush::splitBrush ( PlaneF  pln,
ConvexBrush fbrush,
ConvexBrush bbrush 
)

bool ConvexBrush::calcBounds (  ) 

bool ConvexBrush::castRay ( const Point3F s,
const Point3F e,
RayInfo info 
)

OptimizedPolyList ConvexBrush::getIntersectingPolys ( OptimizedPolyList list  ) 

OptimizedPolyList ConvexBrush::getNonIntersectingPolys ( OptimizedPolyList list  ) 

bool ConvexBrush::isPolyInside ( OptimizedPolyList list,
U32  pdx 
)

bool ConvexBrush::getPolyList ( AbstractPolyList list  ) 

bool ConvexBrush::render ( bool  genColors  ) 

bool ConvexBrush::renderFace ( U32  face,
bool  renderLighting 
)

bool ConvexBrush::renderEdges ( ColorF  color  ) 


Field Documentation




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