#include <BIH.hpp>
Public Member Functions | |
B () | |
B (std::vector< T * > *trList) | |
void | setTraceables (std::vector< T * > *trList) |
virtual | ~BIH () |
virtual Intersection | intersect (Ray &r) const |
virtual const AABB & | getBoundingBox () const |
virtual const Point3D & | getCentroid () const |
std::vector< T * > * | getTraceables () const |
AABB | clipBox (AABB &cbox) const |
Static Public Member Functions | |
static AABB | calcBoundingBox (std::vector< T * > *trList) |
Private Attributes | |
AABB | boundingBox |
BIHNode< T > * | rootNode |
Definition at line 24 of file BIH.hpp.
rcrt::BIH< T >::B | ( | std::vector< T * > * | trList | ) | [inline] |
void rcrt::BIH< T >::setTraceables | ( | std::vector< T * > * | trList | ) | [inline] |
virtual Intersection rcrt::BIH< T >::intersect | ( | Ray & | r | ) | const [inline, virtual] |
r | A ray. |
Implements rcrt::Traceable.
Implements rcrt::Traceable.
Definition at line 92 of file BIH.hpp.
Referenced by rcrt::BIH< rcrt::Traceable >::clipBox().
Implements rcrt::Traceable.
std::vector<T*>* rcrt::BIH< T >::getTraceables | ( | ) | const [inline] |
static AABB rcrt::BIH< T >::calcBoundingBox | ( | std::vector< T * > * | trList | ) | [inline, static] |
trList | A vector of objects. |
Definition at line 120 of file BIH.hpp.
Referenced by rcrt::BIH< rcrt::Traceable >::setTraceables().
AABB rcrt::BIH< T >::boundingBox [private] |
Definition at line 27 of file BIH.hpp.
Referenced by rcrt::BIH< rcrt::Traceable >::getBoundingBox(), rcrt::BIH< rcrt::Traceable >::getCentroid(), and rcrt::BIH< rcrt::Traceable >::setTraceables().
Definition at line 28 of file BIH.hpp.
Referenced by rcrt::BIH< rcrt::Traceable >::getTraceables(), rcrt::BIH< rcrt::Traceable >::intersect(), rcrt::BIH< rcrt::Traceable >::setTraceables(), and rcrt::BIH< rcrt::Traceable >::~BIH().