Voxel Struct Reference

List of all members.

Public Member Functions

 Voxel (MailboxPrim *op)
void AddPrimitive (MailboxPrim *prim)
 ~Voxel ()
bool Intersect (const Ray &ray, Intersection *isect, int rayId)
bool IntersectP (const Ray &ray, int rayId)

Public Attributes

union {
   MailboxPrim *   onePrimitive
   MailboxPrim **   primitives
}; 
u_int allCanIntersect:1
u_int nPrimitives:31


Detailed Description

Definition at line 42 of file grid.cpp.


Constructor & Destructor Documentation

Voxel::Voxel ( MailboxPrim op  )  [inline]

Definition at line 44 of file grid.cpp.

References allCanIntersect, nPrimitives, and onePrimitive.

Voxel::~Voxel (  )  [inline]

Definition at line 68 of file grid.cpp.

References nPrimitives, and primitives.

Referenced by GridAccel::~GridAccel().


Member Function Documentation

void Voxel::AddPrimitive ( MailboxPrim prim  )  [inline]

Definition at line 49 of file grid.cpp.

References IsPowerOf2(), nPrimitives, onePrimitive, and primitives.

Referenced by GridAccel::GridAccel().

bool Voxel::Intersect ( const Ray ray,
Intersection isect,
int  rayId 
)

bool Voxel::IntersectP ( const Ray ray,
int  rayId 
)


Member Data Documentation

Definition at line 76 of file grid.cpp.

Referenced by AddPrimitive(), Intersect(), IntersectP(), and Voxel().

Definition at line 77 of file grid.cpp.

Referenced by AddPrimitive(), Intersect(), IntersectP(), and ~Voxel().

union { ... }

Definition at line 79 of file grid.cpp.

Referenced by Intersect(), IntersectP(), and Voxel().

Definition at line 80 of file grid.cpp.

Referenced by AddPrimitive(), GridAccel::GridAccel(), Intersect(), IntersectP(), Voxel(), and ~Voxel().


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

Generated on Mon Jul 20 17:31:56 2009 for pbrt by  doxygen 1.5.6