Public Member Functions | |
void | initLeaf (uint32_t *primNums, int np, MemoryArena &arena) |
void | initInterior (uint32_t axis, uint32_t ac, float s) |
float | SplitPos () const |
uint32_t | nPrimitives () const |
uint32_t | SplitAxis () const |
bool | IsLeaf () const |
uint32_t | AboveChild () const |
Public Attributes | |
union { | |
float split | |
uint32_t onePrimitive | |
uint32_t * primitives | |
}; | |
uint32_t | flags |
uint32_t | nPrims |
uint32_t | aboveChild |
Private Attributes | |
union { | |
uint32_t flags | |
uint32_t nPrims | |
uint32_t aboveChild | |
}; |
Definition at line 31 of file kdtreeaccel.cpp.
uint32_t KdAccelNode::AboveChild | ( | ) | const [inline] |
Definition at line 40 of file kdtreeaccel.cpp.
References nPrims.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
void KdAccelNode::initInterior | ( | uint32_t | axis, | |
uint32_t | ac, | |||
float | s | |||
) | [inline] |
Definition at line 31 of file kdtreeaccel.cpp.
References arena, initLeaf(), and split.
Referenced by KdTreeAccel::buildTree().
void KdAccelNode::initLeaf | ( | uint32_t * | primNums, | |
int | np, | |||
MemoryArena & | arena | |||
) |
Definition at line 128 of file kdtreeaccel.cpp.
References MemoryArena::Alloc(), flags, nPrims, onePrimitive, and primitives.
Referenced by KdTreeAccel::buildTree(), and initInterior().
bool KdAccelNode::IsLeaf | ( | ) | const [inline] |
Definition at line 39 of file kdtreeaccel.cpp.
References split.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
uint32_t KdAccelNode::nPrimitives | ( | ) | const [inline] |
Definition at line 37 of file kdtreeaccel.cpp.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
uint32_t KdAccelNode::SplitAxis | ( | ) | const [inline] |
Definition at line 38 of file kdtreeaccel.cpp.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
float KdAccelNode::SplitPos | ( | ) | const [inline] |
Definition at line 36 of file kdtreeaccel.cpp.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
union { ... } |
union { ... } [private] |
uint32_t KdAccelNode::aboveChild |
Definition at line 51 of file kdtreeaccel.cpp.
uint32_t KdAccelNode::flags |
Definition at line 49 of file kdtreeaccel.cpp.
Referenced by initLeaf().
uint32_t KdAccelNode::nPrims |
Definition at line 50 of file kdtreeaccel.cpp.
Referenced by AboveChild(), and initLeaf().
uint32_t KdAccelNode::onePrimitive |
Definition at line 43 of file kdtreeaccel.cpp.
Referenced by initLeaf(), KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
uint32_t* KdAccelNode::primitives |
Definition at line 44 of file kdtreeaccel.cpp.
Referenced by initLeaf(), KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
float KdAccelNode::split |
Definition at line 42 of file kdtreeaccel.cpp.
Referenced by initInterior(), and IsLeaf().