voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
blub::octree::container< dataType > Class Template Reference

Classes

class  leaf
 
class  node
 

Public Types

typedef nodet_nodePtr
 
typedef leaft_leafPtr
 
typedef dataType t_data
 
typedef hashList< t_leafPtrt_leafList
 
typedef hashMap< t_data,
t_leafPtr
t_dataLeafMap
 
typedef hashMap< t_data,
vector3int32
t_dataCoordsMap
 
typedef hashMap< vector3int32,
t_leafPtr
t_coordLeafMap
 
typedef hashList< t_data > t_dataList
 
typedef hashList< t_nodePtrt_nodeList
 

Public Member Functions

 container (const vector3int32 &minNodeSize)
 
bool insert (const dataType &data, const vector3 &pos)
 
bool insert (const dataType &data, const vector3int32 &pos)
 
bool remove (const dataType data)
 
bool update (const dataType &data, const vector3int32 &updateCoord)
 
bool update (const dataType &data, const vector3 &updateCoord)
 
t_nodeList getNodes (const dataType &data)
 
void compact ()
 
t_nodePtr getRootNode () const
 
t_leafPtr isLeaf (t_nodePtr nd) const
 
const vector3int32getMinNodeSize () const
 

Protected Member Functions

void destroyNodeAndChildren (t_nodePtr toDestory)
 
vector3int32 convertCoordToLeafCoord (const vector3int32 &coord) const
 
vector3int32 convertAbsolutVector3PositionToVectorInt32 (const vector3 &pos) const
 

Static Protected Member Functions

static vector3int32 convertCoordToLeafCoord (const vector3int32 &coord, const vector3int32 &size)
 
static bool insertNodeInNode (t_nodePtr toInsert, t_nodePtr into)
 

The documentation for this class was generated from the following file: