#include <OgreOctree.h>
Public Methods | |
Octree (Octree *p) | |
~Octree () | |
void | _addNode (OctreeNode *) |
Adds an Octree scene node to this octree level. | |
void | _removeNode (OctreeNode *) |
Removes an Octree scene node to this octree level. | |
int | numNodes () |
Returns the number of scene nodes attached to this octree. | |
WireBoundingBox * | getWireBoundingBox () |
Creats the wire frame bounding box for this octant. | |
bool | _isTwiceSize (AxisAlignedBox &box) |
Returns true is the box will fit in a child. | |
void | _getChildIndexes (AxisAlignedBox &, int *x, int *y, int *z) |
It's assumed the the given box has already been proven to fit into a child. | |
void | _getCullBounds (AxisAlignedBox *) |
Creates the AxisAlignedBox used for culling this octree. | |
Public Attributes | |
AxisAlignedBox | mBox |
The bounding box of the octree. | |
WireBoundingBox * | mWireBoundingBox |
Vector3 | mHalfSize |
Vector containing the dimensions of this octree / 2. | |
Octree * | mChildren [2][2][2] |
3D array of children of this octree. | |
NodeList | mNodes |
Public list of SceneNodes attached to this particular octree. | |
Protected Methods | |
void | _ref () |
Increments the overall node count of this octree and all it's parents. | |
void | _unref () |
Decrements the overall node count of this octree and all it's parents. | |
Protected Attributes | |
int | mNumNodes |
number of SceneNodes in this octree and all it's children. | |
Octree * | mParent |
parent octree |
Definition at line 59 of file OgreOctree.h.
|
Definition at line 85 of file OgreOctree.cpp. |
|
Definition at line 105 of file OgreOctree.cpp. References mChildren, mParent, and mWireBoundingBox. |
|
Adds an Octree scene node to this octree level.
Definition at line 126 of file OgreOctree.cpp. References _ref(), and mNodes. Referenced by Ogre::OctreeSceneManager::_updateOctreeNode(). |
|
It's assumed the the given box has already been proven to fit into a child.
Definition at line 59 of file OgreOctree.cpp. References Ogre::AxisAlignedBox::getMaximum(), Ogre::AxisAlignedBox::getMinimum(), mBox, Ogre::Vector3::midPoint(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Creates the AxisAlignedBox used for culling this octree.
Definition at line 145 of file OgreOctree.cpp. References Ogre::AxisAlignedBox::getAllCorners(), mBox, and mHalfSize. |
|
Returns true is the box will fit in a child.
Definition at line 44 of file OgreOctree.cpp. References Ogre::AxisAlignedBox::getAllCorners(), mBox, Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Increments the overall node count of this octree and all it's parents.
Definition at line 135 of file OgreOctree.h. References mNumNodes, and mParent. Referenced by _addNode(). |
|
Removes an Octree scene node to this octree level.
Definition at line 136 of file OgreOctree.cpp. |
|
Decrements the overall node count of this octree and all it's parents.
Definition at line 144 of file OgreOctree.h. References mNumNodes, and mParent. Referenced by _removeNode(). |
|
Creats the wire frame bounding box for this octant.
Definition at line 151 of file OgreOctree.cpp. References mBox, mWireBoundingBox, and Ogre::WireBoundingBox::setupBoundingBox(). Referenced by Ogre::OctreeSceneManager::walkOctree(). |
|
Returns the number of scene nodes attached to this octree.
Definition at line 78 of file OgreOctree.h. References mNumNodes. |
|
The bounding box of the octree.
Definition at line 87 of file OgreOctree.h. Referenced by _getChildIndexes(), _getCullBounds(), _isTwiceSize(), Ogre::OctreeSceneManager::getOption(), getWireBoundingBox(), Ogre::OctreeSceneManager::resize(), and Ogre::OctreeSceneManager::setOption(). |
|
3D array of children of this octree.
Definition at line 103 of file OgreOctree.h. |
|
Vector containing the dimensions of this octree / 2.
Definition at line 96 of file OgreOctree.h. Referenced by _getCullBounds(). |
|
Public list of SceneNodes attached to this particular octree.
Definition at line 129 of file OgreOctree.h. Referenced by _addNode(), and _removeNode(). |
|
number of SceneNodes in this octree and all it's children.
Definition at line 152 of file OgreOctree.h. |
|
parent octree
Definition at line 155 of file OgreOctree.h. |
|
Definition at line 88 of file OgreOctree.h. Referenced by getWireBoundingBox(), and ~Octree(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:49:54 2004