![]() |
VR-Forces 4.7 Class Documentation
|
DtOctreeMember class. More...

Public Member Functions | |
| DtOctreeMember (T *object, const DtExtent &extent) | |
| void | bind (DtOctreeNode< T > *node) |
| Add this member to the specified node. | |
| void | unbind (DtOctreeNode< T > *node) |
| Remove this member from the specified node. | |
| void | unbind () |
| Remove this member from all nodes. | |
| bool | testKey (const unsigned int key) |
Protected Types | |
| typedef std::pair < DtOctreeNode< T > *, typename std::list < DtOctreeMember * >::iterator > | NodeBinding |
Protected Attributes | |
| T * | myObject |
| The object corresponding to this member. | |
| DtExtent | myExtent |
| The extent of the member at the time it was added or last updated. | |
| std::list< NodeBinding > | myBindings |
| A list of the nodes this member is bound to, if any, and iterators to this member's position in the bound node's myMembers list. | |
| unsigned int | mySearchKey |
Friends | |
| class | DtOctreeNode |
| class | DtOctree |
DtOctreeMember class.
Octree member class. We store both objects and the extents for those objects, since DtVrfObject::roughExtent() can change while an object is in the octree, and we want it to stay in the same place in the octree until explicitly updated.
|
protected |
|
inline |
| void DtOctreeMember< T >::bind | ( | DtOctreeNode< T > * | node | ) |
Add this member to the specified node.
Member functions for DtOctreeData.
References DtOctreeNode< T >::myMembers.
Referenced by DtOctreeNode< DtVrfObject >::addMember().
| void DtOctreeMember< T >::unbind | ( | DtOctreeNode< T > * | node | ) |
Remove this member from the specified node.
References DtOctreeNode< T >::myMembers.
Referenced by DtOctree< DtVrfObject >::removeObject(), DtOctreeNode< DtVrfObject >::split(), and DtOctree< DtVrfObject >::updatePositions().
| void DtOctreeMember< T >::unbind | ( | ) |
Remove this member from all nodes.
|
inline |
|
friend |
|
friend |
|
protected |
The object corresponding to this member.
Referenced by DtOctreeNode< DtVrfObject >::addMember(), and DtOctreeNode< DtVrfObject >::addMemberToChild().
|
protected |
The extent of the member at the time it was added or last updated.
Referenced by DtOctreeNode< DtVrfObject >::addMember(), DtOctreeNode< DtVrfObject >::split(), and DtOctree< DtVrfObject >::updatePositions().
|
protected |
A list of the nodes this member is bound to, if any, and iterators to this member's position in the bound node's myMembers list.
|
protected |
Referenced by DtOctreeMember< DtVrfObject >::testKey().