#include <tabreckdtreeaccel.h>
Public Member Functions | |
void | initLeaf (int *primNums, int np, Primitive **prims, MemoryArena &arena) |
void | initInterior (int axis, float s) |
float | SplitPos () const |
int | nPrimitives () const |
int | SplitAxis () const |
bool | IsLeaf () const |
Public Attributes | |
union { | |
u_int flags | |
float split | |
u_int nPrims | |
}; | |
union { | |
u_int aboveChild | |
Primitive * onePrimitive | |
Primitive ** primitives | |
}; |
Definition at line 34 of file tabreckdtreeaccel.h.
void lux::TaBRecKdAccelNode::initInterior | ( | int | axis, | |
float | s | |||
) | [inline] |
Definition at line 61 of file tabreckdtreeaccel.h.
Referenced by lux::TaBRecKdTreeAccel::buildTree().
void lux::TaBRecKdAccelNode::initLeaf | ( | int * | primNums, | |
int | np, | |||
Primitive ** | prims, | |||
MemoryArena & | arena | |||
) | [inline] |
Definition at line 36 of file tabreckdtreeaccel.h.
References MemoryArena::Alloc(), flags, nPrims, onePrimitive, and primitives.
Referenced by lux::TaBRecKdTreeAccel::buildTree().
bool lux::TaBRecKdAccelNode::IsLeaf | ( | ) | const [inline] |
Definition at line 71 of file tabreckdtreeaccel.h.
References flags.
Referenced by lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
int lux::TaBRecKdAccelNode::nPrimitives | ( | ) | const [inline] |
Definition at line 69 of file tabreckdtreeaccel.h.
References nPrims.
Referenced by lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
int lux::TaBRecKdAccelNode::SplitAxis | ( | ) | const [inline] |
Definition at line 70 of file tabreckdtreeaccel.h.
References flags.
Referenced by lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
float lux::TaBRecKdAccelNode::SplitPos | ( | ) | const [inline] |
Definition at line 68 of file tabreckdtreeaccel.h.
References split.
Referenced by lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
union { ... } |
union { ... } |
Definition at line 88 of file tabreckdtreeaccel.h.
Referenced by lux::TaBRecKdTreeAccel::buildTree(), lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
Definition at line 83 of file tabreckdtreeaccel.h.
Referenced by initInterior(), initLeaf(), IsLeaf(), and SplitAxis().
Definition at line 89 of file tabreckdtreeaccel.h.
Referenced by initLeaf(), lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().
Definition at line 90 of file tabreckdtreeaccel.h.
Referenced by initLeaf(), lux::TaBRecKdTreeAccel::Intersect(), and lux::TaBRecKdTreeAccel::IntersectP().