#include <lloctree.h>
Inheritance diagram for LLOctreeRoot< T >:
Public Types | |
typedef LLOctreeState< T > | BaseType |
typedef LLOctreeNode< T > | oct_node |
Public Member Functions | |
LLOctreeRoot (oct_node *node=NULL) | |
oct_node * | getOctNode () |
virtual bool | isLeaf () |
virtual bool | balance () |
virtual bool | insert (T *data) |
Definition at line 609 of file lloctree.h.
typedef LLOctreeState<T> LLOctreeRoot< T >::BaseType |
typedef LLOctreeNode<T> LLOctreeRoot< T >::oct_node |
LLOctreeRoot< T >::LLOctreeRoot | ( | oct_node * | node = NULL |
) | [inline] |
Definition at line 615 of file lloctree.h.
virtual bool LLOctreeRoot< T >::balance | ( | ) | [inline, virtual] |
Reimplemented from LLOctreeState< T >.
Definition at line 620 of file lloctree.h.
References LLOctreeState< T >::addChild(), LLOctreeState< T >::clearChildren(), LLOctreeRoot< T >::getOctNode(), i, LLOctreeState< T >::mChild, LLOctreeNode< T >::setCenter(), LLOctreeNode< T >::setSize(), TRUE, and LLOctreeNode< T >::updateMinMax().
oct_node* LLOctreeRoot< T >::getOctNode | ( | ) | [inline] |
Reimplemented from LLOctreeState< T >.
Definition at line 617 of file lloctree.h.
References LLOctreeState< T >::getOctNode().
Referenced by LLOctreeRoot< T >::balance(), and LLOctreeRoot< T >::insert().
virtual bool LLOctreeRoot< T >::insert | ( | T * | data | ) | [inline, virtual] |
Reimplemented from LLOctreeState< T >.
Definition at line 655 of file lloctree.h.
References LLOctreeState< T >::addChild(), LLOctreeState< T >::clearChildren(), LLOctreeNode< T >::getCenter(), LLOctreeState< T >::getChildCount(), LLOctreeRoot< T >::getOctNode(), LLOctreeNode< T >::getSize(), i, LLTreeNode< T >::insert(), LLOctreeState< T >::insert(), LLOctreeNode< T >::isInside(), llendl, LLVector3d::mdV, NULL, OCT_ERRS, LLOctreeNode< T >::pushCenter(), LLOctreeNode< T >::setCenter(), LLOctreeNode< T >::setSize(), size, and LLOctreeNode< T >::updateMinMax().
virtual bool LLOctreeRoot< T >::isLeaf | ( | ) | [inline, virtual] |
Definition at line 618 of file lloctree.h.