Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

vhdSceneConverterABTTree Class Reference

#include <vhdSceneConverterABTTree.h>

Inheritance diagram for vhdSceneConverterABTTree:

Inheritance graph
[legend]
Collaboration diagram for vhdSceneConverterABTTree:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::list< NodeChildStruct > ListAABB
typedef std::map< unsigned
int, vhdSceneABTTreeNode > 
MapNodeChild

Public Member Functions

 vhdSceneConverterABTTree ()
 ~vhdSceneConverterABTTree ()
void getChildren (vhdSceneABTTreeNode *pParentNode, unsigned int nCurrentChildPosition, vhdAxisAlignedBox &boxLeft, vhdAxisAlignedBox &boxRight)

Static Public Member Functions

vhdAxisAlignedBox findGlobalAABB (const ListAABB &listAABB)

Public Attributes

MapNodeChild mapNodeChild
vhdSceneABTTreeNode * pDataRootNode

Detailed Description

This class is provide functionalities for keeping a more classical tree view (e.g using pointers), helping for the creation of the cache-oblivious one

Definition at line 41 of file vhdSceneConverterABTTree.h.


Constructor & Destructor Documentation

vhdSceneConverterABTTree::vhdSceneConverterABTTree (   ) 
 

constructorDefinition at line 39 of file vhdSceneConverterABTTree.cpp.

vhdSceneConverterABTTree::~vhdSceneConverterABTTree (   ) 
 

destructorDefinition at line 46 of file vhdSceneConverterABTTree.cpp.


Member Function Documentation

vhdAxisAlignedBox vhdSceneConverterABTTree::findGlobalAABB (  const ListAABB &  listAABB  )  [static]
 

find the global AABB from a ListAABB

Parameters:
listAABB the list where we want to retrieve the global AABB
Returns:
the global AABB
Definition at line 54 of file vhdSceneConverterABTTree.cpp.

References vhdVector3::x, vhdVector3::y, and vhdVector3::z.

Referenced by vhdABTTree::create(), and getChildren().

void vhdSceneConverterABTTree::getChildren (  vhdSceneABTTreeNode *  pParentNode,
unsigned int  nCurrentChildPosition,
vhdAxisAlignedBox &  boxLeft,
vhdAxisAlignedBox &  boxRight
) 
 

get the children for the CurrentChildPosition

Parameters:
pParentNode the parentNode
nCurrentChildPosition the current child position
boxLeft AABB for the left child (which will be retrieve from this routine)
boxRightt AABB for the right child (which will be retrieve from this routine)
Definition at line 142 of file vhdSceneConverterABTTree.cpp.

References findGlobalAABB(), and mapNodeChild.

Referenced by vhdABTTree::create().


Generated on Sun Oct 3 16:32:23 2004 for vhdABTTree by doxygen 1.3.8