#include <grid.h>
Public Member Functions | |
uint32_t | size () const |
Voxel () | |
Voxel (Reference< Primitive > op) | |
void | AddPrimitive (Reference< Primitive > prim) |
bool | Intersect (const Ray &ray, Intersection *isect, RWMutexLock &lock) |
bool | IntersectP (const Ray &ray, RWMutexLock &lock) |
Private Attributes | |
vector< Reference< Primitive > > | primitives |
bool | allCanIntersect |
Definition at line 39 of file grid.h.
Definition at line 43 of file grid.h.
References allCanIntersect, and primitives.
bool Voxel::Intersect | ( | const Ray & | ray, | |
Intersection * | isect, | |||
RWMutexLock & | lock | |||
) |
Definition at line 181 of file grid.cpp.
References allCanIntersect, Assert, RWMutexLock::DowngradeToRead(), Reference< T >::GetPtr(), primitives, and RWMutexLock::UpgradeToWrite().
Referenced by GridAccel::Intersect().
bool Voxel::IntersectP | ( | const Ray & | ray, | |
RWMutexLock & | lock | |||
) |
Definition at line 282 of file grid.cpp.
References allCanIntersect, Assert, RWMutexLock::DowngradeToRead(), Reference< T >::GetPtr(), primitives, and RWMutexLock::UpgradeToWrite().
Referenced by GridAccel::IntersectP().
uint32_t Voxel::size | ( | ) | const [inline] |
Definition at line 41 of file grid.h.
References primitives.
Referenced by GridAccel::Intersect(), and GridAccel::IntersectP().
bool Voxel::allCanIntersect [private] |
Definition at line 54 of file grid.h.
Referenced by Intersect(), IntersectP(), and Voxel().
vector<Reference<Primitive> > Voxel::primitives [private] |
Definition at line 53 of file grid.h.
Referenced by AddPrimitive(), Intersect(), IntersectP(), size(), and Voxel().