#include <unsafekdtreeaccel.h>
Public Member Functions | |
void | initLeaf (int *primNums, int np, MailboxPrim *mailboxPrims, MemoryArena &arena) |
void | initInterior (int axis, float s) |
float | SplitPos () const |
int | nPrimitives () const |
int | SplitAxis () const |
bool | IsLeaf () const |
Public Attributes | |
u_int | flags |
union { | |
float split | |
u_int nPrims | |
}; | |
union { | |
u_int aboveChild | |
MailboxPrim * onePrimitive | |
MailboxPrim ** primitives | |
}; |
Definition at line 44 of file unsafekdtreeaccel.h.
void lux::UnsafeKdAccelNode::initInterior | ( | int | axis, | |
float | s | |||
) | [inline] |
Definition at line 71 of file unsafekdtreeaccel.h.
Referenced by lux::UnsafeKdTreeAccel::buildTree().
void lux::UnsafeKdAccelNode::initLeaf | ( | int * | primNums, | |
int | np, | |||
MailboxPrim * | mailboxPrims, | |||
MemoryArena & | arena | |||
) | [inline] |
Definition at line 46 of file unsafekdtreeaccel.h.
References MemoryArena::Alloc(), flags, nPrims, onePrimitive, and primitives.
Referenced by lux::UnsafeKdTreeAccel::buildTree().
bool lux::UnsafeKdAccelNode::IsLeaf | ( | ) | const [inline] |
Definition at line 81 of file unsafekdtreeaccel.h.
References flags.
Referenced by lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
int lux::UnsafeKdAccelNode::nPrimitives | ( | ) | const [inline] |
Definition at line 79 of file unsafekdtreeaccel.h.
References nPrims.
Referenced by lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
int lux::UnsafeKdAccelNode::SplitAxis | ( | ) | const [inline] |
Definition at line 80 of file unsafekdtreeaccel.h.
References flags.
Referenced by lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
float lux::UnsafeKdAccelNode::SplitPos | ( | ) | const [inline] |
Definition at line 78 of file unsafekdtreeaccel.h.
References split.
Referenced by lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
union { ... } |
union { ... } |
Definition at line 92 of file unsafekdtreeaccel.h.
Referenced by lux::UnsafeKdTreeAccel::buildTree(), lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
Definition at line 85 of file unsafekdtreeaccel.h.
Referenced by initInterior(), initLeaf(), IsLeaf(), and SplitAxis().
Definition at line 93 of file unsafekdtreeaccel.h.
Referenced by initLeaf(), lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().
Definition at line 94 of file unsafekdtreeaccel.h.
Referenced by initLeaf(), lux::UnsafeKdTreeAccel::Intersect(), and lux::UnsafeKdTreeAccel::IntersectP().