78 typedef std::list< DtOctreeNode<T> * >
NodeList;
DtOctree * myOctreeRoot
tree root
Definition: DtOctree.h:123
void findVisibleObjects(NodeVector &visibleNodes, DtOctree *pOctree, const DtCamera< T > *pCamera, bool foundVisible)
OctreeNode class.
Definition: DtOctreeNode.h:21
OctreeNode forward declarations.
DtOctree * myChildren[2][2][2]
3D array of children of this octree.
Definition: DtOctree.h:60
void updateOctreeNode(DtOctreeNode< T > *pOctreeNode)
Definition: DtOctree.inl:231
DtVector3< T > myHalfSize
Vector containing the dimensions of this octree / 2.
Definition: DtOctree.h:55
NodeList myNodes
Public list of SceneNodes attached to this particular octree.
Definition: DtOctree.h:82
size_t myMaxDepth
Definition: DtOctree.h:125
void unref()
Decrements the overall node count of this octree and all its parents.
Definition: DtOctree.h:106
Camera forward declarations.
int myNumNodes
number of SceneNodes in this octree and all its children.
Definition: DtOctree.h:117
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x *y t *t t x *y t *t *t x y *z t t *t t x *y *z t *t *t t x y z t t t t x *y z t *t t t x * y(z *w))
Template for 32/64 bit Axis Aligned bounding boxes.
Definition: DtAxisAlignedBoundingBox.h:25
int numNodes()
Returns the number of scene nodes attached to this octree.
Definition: DtOctree.h:45
Axis Aligned Bounding Box class.
Template for 32/64 bit Cameras.
Definition: DtCamera.h:40
void removeNode(DtOctreeNode< T > *)
Removes an Octree scene node to this octree level.
Definition: DtOctree.inl:211
void getChildIndexes(const DtAxisAlignedBoundingBox< T > &, int *x, int *y, int *z) const
Returns the appropriate indexes for the child of this octree into which the box will fit...
Definition: DtOctree.inl:122
Octree datastructure for managing scene nodes.
Definition: DtOctree.h:27
std::vector< DtOctreeNode< T > * > NodeVector
Definition: DtOctree.h:79
x y * z
Definition: exprtk.hpp:9133
bool isTwiceSize(const DtAxisAlignedBoundingBox< T > &box) const
Determines if this octree is twice as big as the given box.
Definition: DtOctree.inl:103
DtOctree(DtOctree *parent, DtOctree *treeRoot, size_t maxDepth)
CTOR.
Definition: DtOctree.inl:150
void ref()
Increments the overall node count of this octree and all its parents.
Definition: DtOctree.h:95
DtAxisAlignedBoundingBox< T > myBox
The bounding box of the octree This is used for octant index determination and rendering, but not culling.
Definition: DtOctree.h:48
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)
2 dimensional vector
Definition: DtVector3.h:26
std::list< DtOctreeNode< T > * > NodeList
Definition: DtOctree.h:78
DtOctree * myParent
parent octree
Definition: DtOctree.h:120
void addNode(DtOctreeNode< T > *)
Adds an Octree scene node to this octree level.
Definition: DtOctree.inl:199
void removeOctreeNode(DtOctreeNode< T > *pOctreeNode)
Definition: DtOctree.inl:345
Template for 32/64 bit bit frustums.
Definition: DtCamera.h:148
~DtOctree()
DTOR.
Definition: DtOctree.inl:182
void addOctreeNode(DtOctreeNode< T > *pOctreeNode, DtOctree< T > *pOctree, size_t depth=0)
Definition: DtOctree.inl:270
void getCullBounds(DtAxisAlignedBoundingBox< T > *) const
Creates the AxisAlignedBoundingBox<T> used for culling this octree.
Definition: DtOctree.inl:225