SpatialAccel Class Reference
Generic interface for intersection acceleration data structures used for ray visibility testing and sampling during rendering. More...
#include <SpatialAccel.h>

Public Member Functions | |
Constructors | |
| SpatialAccel () | |
| virtual | ~SpatialAccel () |
Initialization Routines | |
| virtual void | setGeometry (IntersectableList *primitives) |
| virtual void | init () |
| Initializes the AABB surrounding all of the geometry. | |
Main usage interface | |
| virtual real_t | getIntersection (const Ray &ray, SurfacePoint &pt)=0 |
| virtual bool | intersects (const Ray &ray, real_t tMax=INFINITY)=0 |
| virtual void | preview () |
Accessors | |
| const IntersectableList * | getIntersectables () const |
| const AABB & | getAABB () const |
Protected Attributes | |
| AABB | m_aabb |
| IntersectableList * | m_primitives |
Detailed Description
Generic interface for intersection acceleration data structures used for ray visibility testing and sampling during rendering.
- Date:
- Fall 2008
Definition at line 18 of file SpatialAccel.h.
Constructor & Destructor Documentation
| SpatialAccel::SpatialAccel | ( | ) | [inline] |
Definition at line 24 of file SpatialAccel.h.
| virtual SpatialAccel::~SpatialAccel | ( | ) | [inline, virtual] |
Definition at line 28 of file SpatialAccel.h.
Member Function Documentation
| virtual void SpatialAccel::setGeometry | ( | IntersectableList * | primitives | ) | [inline, virtual] |
Definition at line 36 of file SpatialAccel.h.
| virtual void SpatialAccel::init | ( | ) | [inline, virtual] |
Initializes the AABB surrounding all of the geometry.
Reimplemented in kdTreeAccel.
Definition at line 41 of file SpatialAccel.h.
| virtual real_t SpatialAccel::getIntersection | ( | const Ray & | ray, | |
| SurfacePoint & | pt | |||
| ) | [pure virtual] |
Implemented in kdTreeAccel, and NaiveSpatialAccel.
Implemented in kdTreeAccel, and NaiveSpatialAccel.
| void SpatialAccel::preview | ( | ) | [virtual] |
| const IntersectableList* SpatialAccel::getIntersectables | ( | ) | const [inline] |
Definition at line 72 of file SpatialAccel.h.
| const AABB& SpatialAccel::getAABB | ( | ) | const [inline] |
Definition at line 76 of file SpatialAccel.h.
Member Data Documentation
AABB SpatialAccel::m_aabb [protected] |
Definition at line 84 of file SpatialAccel.h.
IntersectableList* SpatialAccel::m_primitives [protected] |
Definition at line 85 of file SpatialAccel.h.
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6