#include <hierarchy_tree.h>
Inherits HierarchyTreeBase.
Inheritance diagram for HierarchyTree< NodeClass >:


Public Types | |
| enum | { ChildrenCount = 2 } |
Public Member Functions | |
| HierarchyTree () | |
| ~HierarchyTree () | |
| NodeNavigator | getRoot (void) |
| access to root | |
| NodeClass & | getNode (const int level, const int index) |
| common node access | |
| bool | isNodeValid (const int level, const int index) |
| checks node validity (wheter it is out-of-tree-bounds or not) | |
| void | build (void) |
| constructs full tree based on previous definition of extent of root node | |
| void | setNodeDelegate (NodeDelegate *del) |
| sets the node delegate | |
| void | render (void) |
| void | render (const NodeNavigator &navigator) |
Private Types | |
| typedef std::vector< NodeClass > | TOneLevel |
| container for nodes - one tree level | |
| typedef std::vector< TOneLevel * > | TLevels |
| container for tree levels | |
Private Member Functions | |
| void | addLevel (void) |
| allocates next level | |
| void | build (const int minPoint[D], const int maxPoint[D], typename TLevels::size_type level, typename TOneLevel::size_type index) |
| constructs full tree based on extent definition | |
Private Attributes | |
| NodeDelegate * | mNodeDelegate |
| delegate pointer | |
| TLevels | mLevels |
| nodes | |
Classes | |
| class | NodeDelegate |
| interface for NodeClass definition at building phase More... | |
| class | NodeNavigator |
| provides easy access to the tree hierarchy More... | |
Definition at line 129 of file hierarchy_tree.h.
|
|||||
|
container for tree levels
Definition at line 284 of file hierarchy_tree.h. |
|
|||||
|
container for nodes - one tree level
Definition at line 283 of file hierarchy_tree.h. |
|
|||||
|
Definition at line 131 of file hierarchy_tree.h. |
|
|||||||||
|
Definition at line 238 of file hierarchy_tree.h. |
|
|||||||||
|
Definition at line 313 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::mLevels. |
|
||||||||||
|
allocates next level The size is ChildrenCount-times greater than the size of previous level. Definition at line 324 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::ChildrenCount, and HierarchyTree< NodeClass >::mLevels. |
|
||||||||||||||||||||||||
|
constructs full tree based on extent definition Recursively constructs the tree.
|
|
||||||||||
|
constructs full tree based on previous definition of extent of root node
Definition at line 266 of file hierarchy_tree.h. References HierarchyTreeBase::mRootMax, and HierarchyTreeBase::mRootMin. Referenced by TerrainGeoMipMap::createHierarchyTree(). |
|
||||||||||||||||
|
common node access
Definition at line 253 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::mLevels. Referenced by HierarchyTree< NodeClass >::NodeNavigator::operator *(). |
|
||||||||||
|
access to root
Definition at line 245 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::NodeNavigator::NodeNavigator(). Referenced by TerrainGeoMipMap::render(), HierarchyTree< NodeClass >::render(), and TerrainGeoMipMap::update(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
checks node validity (wheter it is out-of-tree-bounds or not)
Definition at line 259 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::mLevels. Referenced by HierarchyTree< NodeClass >::NodeNavigator::isValid(). |
|
||||||||||
|
Definition at line 414 of file hierarchy_tree.h. References Frustum::OUTSIDE. |
|
||||||||||
|
Definition at line 395 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::getRoot(). Referenced by TerrainGeoMipMap::render(). Here is the call graph for this function: ![]() |
|
||||||||||
|
sets the node delegate
Definition at line 276 of file hierarchy_tree.h. References HierarchyTree< NodeClass >::mNodeDelegate. Referenced by TerrainGeoMipMap::TerrainGeoMipMap(). |
|
|||||
|
nodes
Definition at line 309 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::addLevel(), HierarchyTree< NodeClass >::getNode(), HierarchyTree< NodeClass >::isNodeValid(), and HierarchyTree< NodeClass >::~HierarchyTree(). |
|
|||||
|
delegate pointer
Definition at line 308 of file hierarchy_tree.h. Referenced by HierarchyTree< NodeClass >::setNodeDelegate(). |
1.4.5