HierarchyTreeBase Class Reference

Base class for HierarchyTree (KD tree, K = HierarchyTree::D = 2). More...

#include <hierarchy_tree.h>

Inherited by HierarchyTree< NodeClass >.

Inheritance diagram for HierarchyTreeBase:

Inheritance graph
[legend]
List of all members.

Public Types

enum  { D = 2 }
 dimension of node's bounding box More...

Public Member Functions

 HierarchyTreeBase ()
 ~HierarchyTreeBase ()
void setExtent (const int minPoint[D], const int maxPoint[D])
 sets the root's min-/max-point

Protected Member Functions

void setNodeBox (Node &node, const int boxMin[D], const int boxMax[D])
 sets the node-bounding-box of given node
void setNodeLeaf (Node &node, bool value)
 sets the leaf property of given node

Protected Attributes

int mRootMin [D]
 bounding box's min point of root-node
int mRootMax [D]
 bounding box's max point of root-node

Classes

class  Node
 node of hierarchy tree More...

Detailed Description

Base class for HierarchyTree (KD tree, K = HierarchyTree::D = 2).

Defines dimension od node-box, Node base-class, extent of node-box of root node.

Definition at line 14 of file hierarchy_tree.h.


Member Enumeration Documentation

anonymous enum
 

dimension of node's bounding box

Note:
don't be confused with user-defined floating point bounding box
Enumerator:
D 

Definition at line 21 of file hierarchy_tree.h.


Constructor & Destructor Documentation

HierarchyTreeBase::HierarchyTreeBase  )  [inline]
 

Definition at line 76 of file hierarchy_tree.h.

References D, and setExtent().

Here is the call graph for this function:

HierarchyTreeBase::~HierarchyTreeBase  )  [inline]
 

Definition at line 81 of file hierarchy_tree.h.


Member Function Documentation

void HierarchyTreeBase::setExtent const int  minPoint[D],
const int  maxPoint[D]
[inline]
 

sets the root's min-/max-point

Parameters:
minPoint minimal point of root's node-bounding-box
maxPoint maximal point of root's node-bounding-box

Definition at line 88 of file hierarchy_tree.h.

References assertL, mRootMax, and mRootMin.

Referenced by TerrainGeoMipMap::createHierarchyTree(), and HierarchyTreeBase().

void HierarchyTreeBase::setNodeBox Node node,
const int  boxMin[D],
const int  boxMax[D]
[inline, protected]
 

sets the node-bounding-box of given node

Parameters:
node which node
boxMin minimal point of the box
boxMax maximal point of the box

Definition at line 103 of file hierarchy_tree.h.

References HierarchyTreeBase::Node::setNodeBox().

Here is the call graph for this function:

void HierarchyTreeBase::setNodeLeaf Node node,
bool  value
[inline, protected]
 

sets the leaf property of given node

Parameters:
node the node which leaf-flag we want to set
value true for leaf, false for inner node

Definition at line 111 of file hierarchy_tree.h.

References HierarchyTreeBase::Node::setLeaf().

Here is the call graph for this function:


Member Data Documentation

int HierarchyTreeBase::mRootMax[D] [protected]
 

bounding box's max point of root-node

Definition at line 115 of file hierarchy_tree.h.

Referenced by HierarchyTree< NodeClass >::build(), and setExtent().

int HierarchyTreeBase::mRootMin[D] [protected]
 

bounding box's min point of root-node

Definition at line 115 of file hierarchy_tree.h.

Referenced by HierarchyTree< NodeClass >::build(), and setExtent().


The documentation for this class was generated from the following file:
Generated on Wed Apr 12 14:17:22 2006 for bjs by  doxygen 1.4.5