34 static const float s_fLooseOctreeFactor;
56 void CreateTree(
const plVec3& vCenter,
const plVec3& vHalfExtents,
float fMinNodeSize);
59 bool IsEmpty()
const {
return m_NodeMap.IsEmpty(); }
62 plUInt32
GetCount()
const {
return m_NodeMap.GetCount(); }
71 plResult InsertObject(
const plVec3& vCenter,
const plVec3& vHalfExtents, plInt32 iObjectType, plInt32 iObjectInstance,
75 void FindVisibleObjects(
const plFrustum& viewfrustum, PL_VISIBLE_OBJ_CALLBACK callback,
void* pPassThrough =
nullptr)
const;
81 void FindObjectsInRange(
const plVec3& vPoint, PL_VISIBLE_OBJ_CALLBACK callback,
void* pPassThrough =
nullptr)
const;
88 void FindObjectsInRange(
const plVec3& vPoint,
float fRadius, PL_VISIBLE_OBJ_CALLBACK callback,
89 void* pPassThrough =
nullptr)
const;
92 void RemoveObject(plInt32 iObjectType, plInt32 iObjectInstance);
98 void RemoveObjectsOfType(plInt32 iObjectType);
104 m_uiMultiMapCounter = 1;
113 float maxz, plUInt32 uiNodeID, plUInt32 uiAddID, plUInt32 uiSubAddID,
plDynamicTreeObject* out_Object);
116 void FindVisibleObjects(
const plFrustum& Viewfrustum, PL_VISIBLE_OBJ_CALLBACK Callback,
void* pPassThrough,
float minx,
float maxx,
float minz,
117 float maxz, plUInt32 uiNodeID, plUInt32 uiAddID, plUInt32 uiSubAddID, plUInt32 uiNextNodeID)
const;
120 bool FindObjectsInRange(
const plVec3& vPoint, PL_VISIBLE_OBJ_CALLBACK Callback,
void* pPassThrough,
float minx,
float maxx,
float minz,
float maxz,
121 plUInt32 uiNodeID, plUInt32 uiAddID, plUInt32 uiSubAddID, plUInt32 uiNextNodeID)
const;
124 bool FindObjectsInRange(
const plVec3& vPoint,
float fRadius, PL_VISIBLE_OBJ_CALLBACK Callback,
void* pPassThrough,
float minx,
float maxx,
125 float minz,
float maxz, plUInt32 uiNodeID, plUInt32 uiAddID, plUInt32 uiSubAddID, plUInt32 uiNextNodeID)
const;
128 plUInt32 m_uiMaxTreeDepth = 0;
131 plUInt32 m_uiAddIDTopLevel = 0;
137 float m_fRealMinX = 0, m_fRealMaxX = 0, m_fRealMinZ = 0, m_fRealMaxZ = 0;
140 plUInt32 m_uiMultiMapCounter = 0;
plUInt32 GetCount() const
Returns the number of objects that have been inserted into the tree.
Definition DynamicQuadtree.h:62