Octree< NodeData > Class Template Reference

#include <octree.h>

List of all members.

Public Member Functions

 Octree (const BBox &b, int md=16)
void Add (const NodeData &dataItem, const BBox &dataBound)
template<typename LookupProc >
void Lookup (const Point &p, LookupProc &process)

Private Member Functions

void addPrivate (OctNode< NodeData > *node, const BBox &nodeBound, const NodeData &dataItem, const BBox &dataBound, float diag2, int depth=0)
template<typename LookupProc >
bool lookupPrivate (OctNode< NodeData > *node, const BBox &nodeBound, const Point &P, LookupProc &process)

Private Attributes

int maxDepth
BBox bound
OctNode< NodeData > root

Detailed Description

template<typename NodeData>
class Octree< NodeData >

Definition at line 50 of file octree.h.


Constructor & Destructor Documentation

template<typename NodeData>
Octree< NodeData >::Octree ( const BBox b,
int  md = 16 
) [inline]

Definition at line 53 of file octree.h.


Member Function Documentation

template<typename NodeData>
void Octree< NodeData >::Add ( const NodeData &  dataItem,
const BBox dataBound 
) [inline]

Definition at line 55 of file octree.h.

Referenced by IrradianceCacheIntegrator::indirectLo(), and SurfacePointTask::Run().

template<typename NodeData>
void Octree< NodeData >::addPrivate ( OctNode< NodeData > *  node,
const BBox nodeBound,
const NodeData &  dataItem,
const BBox dataBound,
float  diag2,
int  depth = 0 
) [inline, private]
template<typename NodeData>
template<typename LookupProc >
void Octree< NodeData >::Lookup ( const Point p,
LookupProc &  process 
) [inline]

Definition at line 59 of file octree.h.

Referenced by IrradianceCacheIntegrator::interpolateE(), and SurfacePointTask::Run().

template<typename NodeData>
template<typename LookupProc >
bool Octree< NodeData >::lookupPrivate ( OctNode< NodeData > *  node,
const BBox nodeBound,
const Point P,
LookupProc &  process 
) [inline, private]

Member Data Documentation

template<typename NodeData>
BBox Octree< NodeData >::bound [private]

Definition at line 74 of file octree.h.

Referenced by Octree< SurfacePoint >::Add(), and Octree< SurfacePoint >::Lookup().

template<typename NodeData>
int Octree< NodeData >::maxDepth [private]

Definition at line 73 of file octree.h.

Referenced by Octree< NodeData >::addPrivate().

template<typename NodeData>
OctNode<NodeData> Octree< NodeData >::root [private]

Definition at line 75 of file octree.h.

Referenced by Octree< SurfacePoint >::Add(), and Octree< SurfacePoint >::Lookup().


The documentation for this class was generated from the following file:
Generated on Sat Aug 28 20:00:14 2010 for pbrt by  doxygen 1.6.3