GClasses
|
A class used for making ray-tracing faster.
#include <GRayTrace.h>
Public Member Functions | |
GRayTraceBoundingBoxBase () | |
virtual | ~GRayTraceBoundingBoxBase () |
virtual GRayTraceObject * | closestIntersection (G3DVector *pRayOrigin, G3DVector *pDirectionVector, G3DReal *pOutDistance)=0 |
virtual bool | isLeaf ()=0 |
Static Public Member Functions | |
static GRayTraceBoundingBoxBase * | makeBoundingBoxTree (GRayTraceScene *pScene) |
Public Attributes | |
G3DVector | m_max |
G3DVector | m_min |
Protected Member Functions | |
bool | DoesRayHitBox (G3DVector *pRayOrigin, G3DVector *pDirectionVector) |
Static Protected Member Functions | |
static GRayTraceBoundingBoxBase * | BuildTree (std::vector< GRayTraceObject * > &objects) |
|
inline |
|
inlinevirtual |
|
staticprotected |
|
pure virtual |
Implemented in GClasses::GRayTraceBoundingBoxLeaf, and GClasses::GRayTraceBoundingBoxInterior.
|
protected |
|
pure virtual |
Implemented in GClasses::GRayTraceBoundingBoxLeaf, and GClasses::GRayTraceBoundingBoxInterior.
|
static |
G3DVector GClasses::GRayTraceBoundingBoxBase::m_max |
G3DVector GClasses::GRayTraceBoundingBoxBase::m_min |