HierarchyTreeBase::Node Class Reference

node of hierarchy tree More...

#include <hierarchy_tree.h>

Inherited by TerrainGeoMipMap::Node.

Inheritance diagram for HierarchyTreeBase::Node:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool isLeaf (void)
 determines if this node is a leaf or not
const int * getNodeBoxMin (void) const
const int * getNodeBoxMax (void) const

Private Member Functions

void setNodeBox (const int boxMin[D], const int boxMax[D])
 sets bounding box of this node
void setLeaf (bool value)
 sets the leaf property of this node

Private Attributes

bool mLeaf
 true for leaf node, false for subdivided node
int mMinPoint [D]
 minimal node point
int mMaxPoint [D]
 maximal node point

Friends

class HierarchyTreeBase

Detailed Description

node of hierarchy tree

Contains information used for tree (inner bounding box, leaf-flag) as well as user's defined information (user's defined 3D bounding box, frustum culling state).

Definition at line 29 of file hierarchy_tree.h.


Member Function Documentation

const int* HierarchyTreeBase::Node::getNodeBoxMax void   )  const [inline]
 

Definition at line 43 of file hierarchy_tree.h.

References mMaxPoint.

const int* HierarchyTreeBase::Node::getNodeBoxMin void   )  const [inline]
 

Definition at line 40 of file hierarchy_tree.h.

References mMinPoint.

bool HierarchyTreeBase::Node::isLeaf void   )  [inline]
 

determines if this node is a leaf or not

Returns:
true on leaf-node

Definition at line 38 of file hierarchy_tree.h.

References mLeaf.

void HierarchyTreeBase::Node::setLeaf bool  value  )  [inline, private]
 

sets the leaf property of this node

Parameters:
value true for leaf, false for inner node

Definition at line 67 of file hierarchy_tree.h.

References mLeaf.

Referenced by HierarchyTreeBase::setNodeLeaf().

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

sets bounding box of this node

Parameters:
boxMin minimal point of the box
boxMax maximal point of the box
Note:
used only in tree-building by HierarchyTree class

Definition at line 54 of file hierarchy_tree.h.

References assertL, mMaxPoint, and mMinPoint.

Referenced by HierarchyTreeBase::setNodeBox().


Friends And Related Function Documentation

friend class HierarchyTreeBase [friend]
 

Definition at line 31 of file hierarchy_tree.h.


Member Data Documentation

bool HierarchyTreeBase::Node::mLeaf [private]
 

true for leaf node, false for subdivided node

Definition at line 70 of file hierarchy_tree.h.

Referenced by isLeaf(), and setLeaf().

int HierarchyTreeBase::Node::mMaxPoint[D] [private]
 

maximal node point

Definition at line 72 of file hierarchy_tree.h.

Referenced by getNodeBoxMax(), and setNodeBox().

int HierarchyTreeBase::Node::mMinPoint[D] [private]
 

minimal node point

Definition at line 72 of file hierarchy_tree.h.

Referenced by getNodeBoxMin(), and setNodeBox().


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