17 class GraphVertexData;
62 CompactNavGraphVertexIdx m_vertexIdx;
68 m_navGraphRawPtr(navGraphRawPtr), m_vertexIdx((CompactNavGraphVertexIdx)vertexIdx) {}
77 KY_INLINE
bool NavGraphVertexRawPtr::operator < (
const NavGraphVertexRawPtr& rhs)
const {
return m_navGraphRawPtr < rhs.m_navGraphRawPtr || (m_navGraphRawPtr == rhs.m_navGraphRawPtr && m_vertexIdx < rhs.m_vertexIdx); }
78 KY_INLINE
bool NavGraphVertexRawPtr::operator <=(
const NavGraphVertexRawPtr& rhs)
const {
return !(rhs < *
this); }
91 const NavTagIdx navTagIdx = navGraphBlob->GetNavGraphVertexNavTagIdx(m_vertexIdx);
92 return navGraphBlob->GetNavTag(navTagIdx);
bool IsValid() const
Returns true if this object refers to a valid NavGraphVertex: i.e. a NavGraphVertex in a validNavGrap...
Definition: navgraphvertexrawptr.h:70
The NavGraphBlob contains the static data of a NavGraph.
Definition: navgraphblob.h:19
KyUInt32 NavGraphVertexIdx
An index that uniquely identifies a single vertex within the set of vertices owned by a NavGraph...
Definition: navgraphtypes.h:45
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
bool operator!=(const NavGraphVertexRawPtr &rhs) const
Returns true if this object identifies an vertex different from the one identified by rhs...
Definition: navgraphvertexrawptr.h:76
bool operator==(const NavGraphVertexRawPtr &rhs) const
Returns true if this object identifies the same vertex as rhs, or if both are invalid.
Definition: navgraphvertexrawptr.h:75
void Invalidate()
Invalidates this object.
Definition: navgraphvertexrawptr.h:71
const NavGraphBlob * GetNavGraphBlob() const
Returns a reference to the NavGraphBlob that contains this NavGraphVertex.
Definition: navgraphvertexrawptr.h:80
NavGraph * GetNavGraph() const
Returns a reference to the NavGraph that contains this NavGraphVertex.
Definition: navgraphvertexrawptr.h:81
void Invalidate()
Invalidates this object.
Definition: navgraphrawptr.h:64
GraphVertexData & GetGraphVertexData() const
Returns theGraphVertexData associated to this NavGraphVertex. For Internal use.
Definition: navgraphvertexrawptr.h:85
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
This class uniquely identifies a NavGraph that has been loaded.
Definition: navgraphrawptr.h:29
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
const NavTag & GetNavTag() const
Returns the NavTag associated to this NavGraphVertex.
Definition: navgraphvertexrawptr.h:88
KyUInt32 GetNeighborVertexCount() const
Returns the number of outgoing edges (equal to the number of neighbors) of this vertex.
Definition: navgraphvertexrawptr.h:86
bool IsValid() const
Returns true if this object refers to a valid NavGraph.
Definition: navgraphrawptr.h:63
NavGraphVertexIdx GetNavGraphVertexIdx() const
All these function should be called only if IsValid() returns true.
Definition: navgraphvertexrawptr.h:73
const Vec3f & GetGraphVertexPosition() const
Retrieves the position of the NavGraph vertex .
Definition: navgraphvertexrawptr.h:84
NavGraphVertexRawPtr()
Constructs a new instance of this class. Creates an invalid NavGraphVertexRawPtr. ...
Definition: navgraphvertexrawptr.h:65
NavGraph * GetNavGraph() const
Returns a reference to the NavGraph that handles the NavGraph.
Definition: navgraphrawptr.h:71
Each instance of this class uniquely identifies a single NavGraphVertex in a NavGraph.
Definition: navgraphvertexrawptr.h:27
3d vector using 32bits floating points.
Definition: vec3f.h:16
This class is a runtime wrapper of a NavGraphBlob, it gathers all the runtime information associated ...
Definition: navgraph.h:22
const NavGraphVertex & GetNavGraphVertex() const
Retrieves the NavGraph vertex at the start of the specified NavGraph edge.
Definition: navgraphvertexrawptr.h:83