LLOctreeRoot< T > Class Template Reference

#include <lloctree.h>

Inheritance diagram for LLOctreeRoot< T >:

Inheritance graph
[legend]
Collaboration diagram for LLOctreeRoot< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LLOctreeState< T > BaseType
typedef LLOctreeNode< T > oct_node

Public Member Functions

 LLOctreeRoot (oct_node *node=NULL)
oct_nodegetOctNode ()
virtual bool isLeaf ()
virtual bool balance ()
virtual bool insert (T *data)

Detailed Description

template<class T>
class LLOctreeRoot< T >

Definition at line 609 of file lloctree.h.


Member Typedef Documentation

template<class T>
typedef LLOctreeState<T> LLOctreeRoot< T >::BaseType

Reimplemented from LLOctreeState< T >.

Definition at line 612 of file lloctree.h.

template<class T>
typedef LLOctreeNode<T> LLOctreeRoot< T >::oct_node

Reimplemented from LLOctreeState< T >.

Definition at line 613 of file lloctree.h.


Constructor & Destructor Documentation

template<class T>
LLOctreeRoot< T >::LLOctreeRoot ( oct_node node = NULL  )  [inline]

Definition at line 615 of file lloctree.h.


Member Function Documentation

template<class T>
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().

template<class T>
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().

template<class T>
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().

template<class T>
virtual bool LLOctreeRoot< T >::isLeaf (  )  [inline, virtual]

Definition at line 618 of file lloctree.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:33 2010 for Second Life Viewer by  doxygen 1.4.7