lux::UnsafeKdAccelNode Struct Reference

#include <unsafekdtreeaccel.h>

List of all members.

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
}; 


Detailed Description

Definition at line 44 of file unsafekdtreeaccel.h.


Member Function Documentation

void lux::UnsafeKdAccelNode::initInterior ( int  axis,
float  s 
) [inline]

Definition at line 71 of file unsafekdtreeaccel.h.

References flags, and split.

Referenced by lux::UnsafeKdTreeAccel::buildTree().

void lux::UnsafeKdAccelNode::initLeaf ( int *  primNums,
int  np,
MailboxPrim mailboxPrims,
MemoryArena arena 
) [inline]

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().


Member Data Documentation

union { ... }

union { ... }

Definition at line 85 of file unsafekdtreeaccel.h.

Referenced by initInterior(), initLeaf(), IsLeaf(), and SplitAxis().

Definition at line 89 of file unsafekdtreeaccel.h.

Referenced by initLeaf(), and nPrimitives().

Definition at line 88 of file unsafekdtreeaccel.h.

Referenced by initInterior(), and SplitPos().


The documentation for this struct was generated from the following file:

Generated on Mon May 18 07:16:39 2009 for lux by  doxygen 1.5.8