![]() |
VR-Forces 4.0.4 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. It is incorrect to call this if the member is already bound to a node. | |
| void | unbind () |
| Remove this member from the node it's bound to, if any. | |
Public 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. | |
| DtOctreeNode< T > * | boundNode |
| The node this member is bound to, if any. | |
| std::list< DtOctreeMember * > ::iterator | boundIterator |
| An iterator pointing to this member's position in the bound node's myMembers list. | |
DtOctreeMember class.
Octree member class. We store both objects and the extents for those objects, since DtVrfObject::extent() 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.
| DtOctreeMember< T >::DtOctreeMember | ( | T * | object, |
| const DtExtent & | extent | ||
| ) | [inline] |
| void DtOctreeMember< T >::bind | ( | DtOctreeNode< T > * | node | ) |
Add this member to the specified node. It is incorrect to call this if the member is already bound to a node.
Member functions for DtOctreeData.
References DtOctreeNode< T >::myMembers, and OBJ_ARGS.
Referenced by DtOctreeNode< DtVrfObject >::addMember().
| void DtOctreeMember< T >::unbind | ( | ) |
Remove this member from the node it's bound to, if any.
Referenced by DtOctree< DtVrfObject >::removeObject(), DtOctreeNode< DtVrfObject >::split(), and DtOctree< DtVrfObject >::updatePositions().
| T* DtOctreeMember< T >::myObject |
The object corresponding to this member.
Referenced by DtOctreeNode< DtVrfObject >::addMember(), and DtOctreeNode< DtVrfObject >::addMemberToChild().
| DtExtent DtOctreeMember< T >::myExtent |
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().
| DtOctreeNode<T>* DtOctreeMember< T >::boundNode |
The node this member is bound to, if any.
Referenced by DtOctree< DtVrfObject >::updatePositions().
| std::list<DtOctreeMember*>::iterator DtOctreeMember< T >::boundIterator |
An iterator pointing to this member's position in the bound node's myMembers list.
This is only valid if boundNode is non-NULL.