lux::Voxel Struct Reference

#include <grid.h>

Collaboration diagram for lux::Voxel:
[legend]

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 48 of file grid.h.


Constructor & Destructor Documentation

lux::Voxel::Voxel ( GMailboxPrim op  )  [inline]

Definition at line 50 of file grid.h.

References allCanIntersect, nPrimitives, and onePrimitive.

lux::Voxel::~Voxel (  )  [inline]

Definition at line 74 of file grid.h.

References nPrimitives, and primitives.

Referenced by lux::GridAccel::~GridAccel().


Member Function Documentation

void lux::Voxel::AddPrimitive ( GMailboxPrim prim  )  [inline]

Definition at line 55 of file grid.h.

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

Referenced by lux::GridAccel::GridAccel().

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

Definition at line 309 of file grid.cpp.

References allCanIntersect, onePrimitive, p, lux::GMailboxPrim::primitive, and primitives.

Referenced by lux::GridAccel::IntersectP().


Member Data Documentation

union { ... }

Definition at line 85 of file grid.h.

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

Definition at line 86 of file grid.h.

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

Definition at line 82 of file grid.h.

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

Definition at line 83 of file grid.h.

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


The documentation for this struct was generated from the following files:
Generated by  doxygen 1.6.2-20100208