#include <octree.h>
Inheritance diagram for StaticOctree< OBJ, PREC >:


Public Member Functions | |
| int | countChildren () const |
| int | countObjects () const |
| void | processCloseObjects (OctreeProcessor< OBJ, PREC > &processor, const Point3< PREC > &obsPosition, PREC boundingRadius, PREC scale) const |
| void | processVisibleObjects (OctreeProcessor< OBJ, PREC > &processor, const Point3< PREC > &obsPosition, const Plane< float > *frustumPlanes, float limitingFactor, PREC scale) const |
| StaticOctree (const Point3< PREC > &cellCenterPos, const float exclusionFactor, OBJ *_firstObject, unsigned int nObjects) | |
| ~StaticOctree () | |
Private Attributes | |
| StaticOctree ** | _children |
| OBJ * | _firstObject |
| Point3< PREC > | cellCenterPos |
| float | exclusionFactor |
| unsigned int | nObjects |
Static Private Attributes | |
| static const PREC | SQRT3 = (PREC) 1.732050807568877 |
Friends | |
| class | DynamicOctree<OBJ, PREC> |
|
||||||||||||||||||||||||
|
Definition at line 292 of file octree.h. 00295 : 00296 _children (NULL), 00297 cellCenterPos (cellCenterPos), 00298 exclusionFactor(exclusionFactor), 00299 _firstObject (_firstObject), 00300 nObjects (nObjects) 00301 { 00302 }
|
|
|||||||||
|
Definition at line 306 of file octree.h. References StaticOctree< OBJ, PREC >::_children. 00307 {
00308 if (_children != NULL)
00309 {
00310 for (int i=0; i<8; ++i)
00311 delete _children[i];
00312
00313 delete[] _children;
00314 }
00315 }
|
|
|||||||||
|
Definition at line 319 of file octree.h. References StaticOctree< OBJ, PREC >::_children. Referenced by StarDatabase::buildOctree(), and DSODatabase::buildOctree(). 00320 {
00321 int count = 0;
00322
00323 for (int i=0; i<8; ++i)
00324 count += _children != NULL ? 1 + _children[i]->countChildren() : 0;
00325
00326 return count;
00327 }
|
|
|||||||||
|
Definition at line 331 of file octree.h. References StaticOctree< OBJ, PREC >::_children, and StaticOctree< OBJ, PREC >::nObjects. Referenced by StarDatabase::buildOctree(), and DSODatabase::buildOctree(). 00332 {
00333 int count = nObjects;
00334
00335 if (_children != NULL)
00336 for (int i=0; i<8; ++i)
00337 count += _children[i]->countObjects();
00338
00339 return count;
00340 }
|
|
||||||||||||||||||||||||
|
Referenced by DSODatabase::findCloseDSOs(), and StarDatabase::findCloseStars(). |
|
||||||||||||||||||||||||||||
|
Referenced by DSODatabase::findVisibleDSOs(), and StarDatabase::findVisibleStars(). |
|
|||||
|
|
|
|||||
|
Definition at line 122 of file octree.h. Referenced by StaticOctree< OBJ, PREC >::countChildren(), StaticOctree< OBJ, PREC >::countObjects(), and StaticOctree< OBJ, PREC >::~StaticOctree(). |
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
Definition at line 126 of file octree.h. Referenced by StaticOctree< OBJ, PREC >::countObjects(). |
|
|||||
|
|
1.4.1