gwnavruntime/queries/utils/spatializedpointcollectorcontext.h Source File
Go to the documentation of this file.
20 class CollectorTraversalNodeIdx
24 CollectorTraversalNodeIdx(
const NavFloorRawPtr& ,
KyUInt32 nodeIndex) : m_data(0x80000000 | nodeIndex) {}
25 CollectorTraversalNodeIdx(
const NavGraphEdgeRawPtr& ,
KyUInt32 nodeIndex) : m_data(0x7FFFFFFF & nodeIndex) {}
27 KY_INLINE
bool IsNavFloorNode()
const {
return (m_data & 0x80000000) != 0; }
28 KY_INLINE
bool IsNavGraphEdgeNode()
const {
return (m_data & 0x80000000) == 0; }
29 KY_INLINE
KyUInt32 GetNodeIndex()
const {
return (m_data & 0x7FFFFFFF); }
34 class SpatializedPointCollectorContext
38 SpatializedPointCollectorContext() {}
39 ~SpatializedPointCollectorContext() { ReleaseWorkingMemory(); }
41 KyResult Init(WorkingMemory* workingMemory, ActiveData* activeData,
const CellBox& cellBox);
43 void ReleaseWorkingMemory()
45 m_traversalNodeStatus.ReleaseWorkingMemoryBuffer();
46 m_openNodes.ReleaseWorkingMemoryBuffer();
47 m_edgeRawPtrNodes.ReleaseWorkingMemoryBuffer();
48 m_navFloorRawPtrNodes.ReleaseWorkingMemoryBuffer();
51 NavFloorAndNavGraphEdgeStatusInGrid m_traversalNodeStatus;
52 WorkingMemDeque<CollectorTraversalNodeIdx> m_openNodes;
53 WorkingMemArray<NavGraphEdgeRawPtr> m_edgeRawPtrNodes;
54 WorkingMemArray<NavFloorRawPtr> m_navFloorRawPtrNodes;
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:31
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68