#include <octree.h>
Public Member Functions | |
| Octree (const BBox &b, int md=16) | |
| void | Add (const NodeData &dataItem, const BBox &dataBound) |
| void | Lookup (const Point &p, const LookupProc &process) |
Private Member Functions | |
| void | addPrivate (OctNode< NodeData > *node, const BBox &nodeBound, const NodeData &dataItem, const BBox &dataBound, float diag2, int depth=0) |
| void | lookupPrivate (OctNode< NodeData > *node, const BBox &nodeBound, const Point &P, const LookupProc &process) |
Private Attributes | |
| int | maxDepth |
| BBox | bound |
| OctNode< NodeData > | root |
Definition at line 42 of file octree.h.
| void Octree< NodeData, LookupProc >::addPrivate | ( | OctNode< NodeData > * | node, | |
| const BBox & | nodeBound, | |||
| const NodeData & | dataItem, | |||
| const BBox & | dataBound, | |||
| float | diag2, | |||
| int | depth = 0 | |||
| ) | [inline, private] |
Definition at line 71 of file octree.h.
References OctNode< NodeData >::children, OctNode< NodeData >::data, DistanceSquared(), Octree< NodeData, LookupProc >::maxDepth, BBox::pMax, BBox::pMin, Point::x, Point::y, and Point::z.
Referenced by Octree< IrradianceSample, IrradProcess >::Add().
| void Octree< NodeData, LookupProc >::lookupPrivate | ( | OctNode< NodeData > * | node, | |
| const BBox & | nodeBound, | |||
| const Point & | P, | |||
| const LookupProc & | process | |||
| ) | [inline, private] |
Definition at line 125 of file octree.h.
References OctNode< NodeData >::children, OctNode< NodeData >::data, BBox::pMax, BBox::pMin, Point::x, Point::y, and Point::z.
Referenced by Octree< IrradianceSample, IrradProcess >::Lookup().
Definition at line 65 of file octree.h.
Referenced by Octree< NodeData, LookupProc >::addPrivate(), and Octree< IrradianceSample, IrradProcess >::Octree().
Definition at line 66 of file octree.h.
Referenced by Octree< IrradianceSample, IrradProcess >::Add(), and Octree< IrradianceSample, IrradProcess >::Lookup().
OctNode<NodeData> Octree< NodeData, LookupProc >::root [private] |
Definition at line 67 of file octree.h.
Referenced by Octree< IrradianceSample, IrradProcess >::Add(), and Octree< IrradianceSample, IrradProcess >::Lookup().
1.5.6