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