106 NavGraphEdgeSmartIdx m_edgeSmartIdx;
111 m_navGraphPtr(navGraphPtr), m_edgeSmartIdx(edgeSmartIdx) {}
113 m_navGraphPtr(navGraphVertexPtr.m_navGraphPtr), m_edgeSmartIdx(navGraphVertexPtr.GetNavGraphVertexIdx(), neighborIndex) {}
133 KY_INLINE
bool NavGraphEdgePtr::operator < (
const NavGraphEdgePtr& rhs)
const {
return m_navGraphPtr < rhs.m_navGraphPtr || (m_navGraphPtr == rhs.m_navGraphPtr && m_edgeSmartIdx < rhs.m_edgeSmartIdx); }
135 KY_INLINE
bool NavGraphEdgePtr::operator <=(
const NavGraphEdgePtr& rhs)
const {
return !(rhs < *
this); }
bool IsValid() const
Returns true if this object refers to a valid runtime NavGraph, which means a NavFloor that exists...
Definition: navgraphptr.h:61
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
NavGraphEdgePtr GetOppositeNavGraphEdgePtr() const
Return the opposite NavGraphEdgePtr, if any exists.
Definition: navgraphedgeptr.cpp:13
const Vec3f & GetStartNavGraphVertexPosition() const
Returns the position of the starting NavGraphVertex of current instance.
Definition: navgraphedgeptr.h:128
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
const NavGraphVertex & GetStartNavGraphVertex() const
Returns the starting NavGraphVertex of current instance.
Definition: navgraphedgeptr.h:126
const NavGraphBlob * GetNavGraphBlob_UnSafe() const
Returns a pointer to the NavGraphBlob identified by this object.
Definition: navgraphedgeptr.h:122
const Vec3f & GetEndNavGraphVertexPosition() const
Returns the position of the ending NavGraphVertex of current instance.
Definition: navgraphedgerawptr.inl:29
const NavGraphVertex & GetEndNavGraphVertex() const
Returns the ending NavGraphVertex of current instance.
Definition: navgraphedgerawptr.inl:50
NavGraphVertexIdx GetEndNavGraphVertexIdx() const
Returns the index of the ending NavGraphVertex of current instance within its NavGraph.
Definition: navgraphedgeptr.h:125
const NavGraphVertex & GetStartNavGraphVertex() const
Returns the starting NavGraphVertex of current instance.
Definition: navgraphedgerawptr.inl:32
void Invalidate()
Invalidates this object.
Definition: navgraphedgeptr.h:116
bool operator!=(const NavGraphEdgePtr &rhs) const
Returns true if this object identifies an edge different from the one identified by rhs...
Definition: navgraphedgeptr.h:134
Each instance of this class uniquely identifies a single NavGraphEdge in a NavGraph.
Definition: navgraphedgerawptr.h:26
NavGraphVertexPtr GetEndNavGraphVertexPtr() const
Returns a NavGraphVertexPtr that identifies the ending NavGraphVertex of current instance.
Definition: navgraphedgeptr.h:138
const NavGraphVertex & GetEndNavGraphVertex() const
Returns the ending NavGraphVertex of current instance.
Definition: navgraphedgeptr.h:127
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
const NavGraphBlob * GetNavGraphBlob() const
Returns a pointer to the NavGraphBlob identified by this object.
Definition: navgraphptr.h:77
const NavGraphBlob * GetNavGraphBlob_UnSafe() const
Returns a pointer to the NavGraphBlob identified by this object.
Definition: navgraphptr.h:78
NavGraph * GetNavGraph_UnSafe() const
All these function should be called only if IsValid() returns true.
Definition: navgraphedgeptr.h:121
KyUInt32 GetEdgeNumberAroundStartVertex() const
Returns the index of the edge around its starting vertex. It is the index of the ending vertex within...
Definition: navgraphedgeptr.h:124
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
This class uniquely identifies a single NavGraph.
Definition: navgraphptr.h:21
NavGraphEdgeRawPtr GetRawPtr() const
Constructs and returns a NavGraphEdgeRawPtr that refers to the same NavGraphVertex.
Definition: navgraphedgeptr.h:118
Each instance of this class uniquely identifies a single NavGraphVertex in a NavGraph.
Definition: navgraphvertexptr.h:17
bool operator==(const NavGraphEdgePtr &rhs) const
Returns true if this object identifies the same edge as rhs, or if both are invalid.
Definition: navgraphedgeptr.h:132
const Vec3f & GetStartNavGraphVertexPosition() const
Returns the position of the starting NavGraphVertex of current instance.
Definition: navgraphedgerawptr.inl:28
NavGraphEdgePtr()
Constructs a new instance of this class. Creates an invalid NavGraphEdgePtr.
Definition: navgraphedgeptr.h:109
NavGraph * GetNavGraph_UnSafe() const
Returns a pointer to the NavGraph that handles the graph identified by this object.
Definition: navgraphptr.h:75
void Invalidate()
Invalidates this object.
Definition: navgraphptr.h:60
NavGraphVertexIdx GetEndNavGraphVertexIdx() const
Returns the index of the ending NavGraphVertex of current instance within its NavGraph.
Definition: navgraphedgerawptr.inl:44
bool IsValid() const
Returns true if this object refers to a valid NavGraphEdge: i.e. a NavGraphEdge in a valid NavGraph...
Definition: navgraphedgeptr.h:115
const Vec3f & GetEndNavGraphVertexPosition() const
Returns the position of the ending NavGraphVertex of current instance.
Definition: navgraphedgeptr.h:129
NavGraph * GetNavGraph() const
Returns a pointer to the NavGraph that handles the graph identified by this object.
Definition: navgraphptr.h:74
const NavTag & GetNavTag() const
Returns the NavTag associated to this NavGraphEdge.
Definition: navgraphedgerawptr.inl:55
Each instance of this class uniquely identifies a single and mono-directionnal NavGraphEdge in a NavG...
Definition: navgraphedgeptr.h:20
const NavTag & GetNavTag() const
Returns the NavTag associated to this NavGraphEdge.
Definition: navgraphedgeptr.h:130
NavGraphVertexIdx GetStartVertexIdx() const
Returns the index of the starting NavGraphVertex of current instance within its NavGraph.
Definition: navgraphedgeptr.h:123
NavGraphVertexPtr GetStartNavGraphVertexPtr() const
Returns a NavGraphVertexPtr that identifies the starting NavGraphVertex of current instance...
Definition: navgraphedgeptr.h:137
3d vector using 32bits floating points.
Definition: vec3f.h:16
const NavGraphBlob * GetNavGraphBlob() const
Returns a pointer to the NavGraphBlob identified by this object.
Definition: navgraphedgeptr.h:120
This class is a runtime wrapper of a NavGraphBlob, it gathers all the runtime information associated ...
Definition: navgraph.h:22
NavGraph * GetNavGraph() const
Returns a pointer to the NavGraph that handles the graph identified by this object.
Definition: navgraphedgeptr.h:119