Kaim::NavGraphEdgeRawPtr Class Reference
#include <navgraphedgerawptr.h>
Each instance of this class uniquely identifies a single NavGraphEdge in a NavGraph.
This pointer is guaranteed to be valid only in the frame in which it was retrieved. Never store a NavGraphEdgeRawPtr for use in subsequent frames, because it has no protection against data streaming. Use NavGraphEdgePtr instead. Actually, this class is used internally for some performance and working memory usage friendliness reason (no ref-counting increment/decrement, no need to call constructor/destructor), but unless you really know what you do prefer NavGraphEdgePtr which is safer. Within a NavGraph, a NavGraphEdge is identified by a NavGraphVertexIdx (corresponding to its starting vertex) and the index of a Neighbor vertex of this starting vertex among all its neighbor vertices (this neighbor vertex corresponds to its starting vertex).
Kaim::NavGraphEdgeRawPtr::NavGraphEdgeRawPtr |
( |
| ) |
|
|
inline |
KyUInt32 Kaim::NavGraphEdgeRawPtr::GetEdgeNumberAroundStartVertex |
( |
| ) |
const |
|
inline |
All these function should be called only if IsValid() returns true.
- Precondition
- This object must be valid. Its validity is not checked. Returns the index of the edge around its starting vertex. It is the index of the ending vertex within the neighbor vertices of the starting vertex.
-
This object must be valid. Its validity is not checked.
const NavGraphVertex & Kaim::NavGraphEdgeRawPtr::GetEndNavGraphVertex |
( |
| ) |
const |
|
inline |
Returns the ending NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
Returns the index of the ending NavGraphVertex of current instance within its NavGraph.
- Precondition
- This object must be valid. Its validity is not checked.
const Vec3f & Kaim::NavGraphEdgeRawPtr::GetEndNavGraphVertexPosition |
( |
| ) |
const |
|
inline |
Returns the position of the ending NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
Returns a NavGraphVertexRawPtr that identifies the ending NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
NavGraph * Kaim::NavGraphEdgeRawPtr::GetNavGraph |
( |
| ) |
const |
|
inline |
Returns a reference to the NavGraph that contains this NavGraphEdge.
- Precondition
- This object must be valid. Its validity is not checked.
const NavGraphBlob * Kaim::NavGraphEdgeRawPtr::GetNavGraphBlob |
( |
| ) |
const |
|
inline |
Returns a reference to the NavGraphBlob that contains this NavGraphEdge.
- Precondition
- This object must be valid. Its validity is not checked.
const NavTag & Kaim::NavGraphEdgeRawPtr::GetNavTag |
( |
| ) |
const |
|
inline |
Returns the NavTag associated to this NavGraphEdge.
- Precondition
- This object must be valid. Its validity is not checked.
const NavGraphVertex & Kaim::NavGraphEdgeRawPtr::GetStartNavGraphVertex |
( |
| ) |
const |
|
inline |
Returns the starting NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
const Vec3f & Kaim::NavGraphEdgeRawPtr::GetStartNavGraphVertexPosition |
( |
| ) |
const |
|
inline |
Returns the position of the starting NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
Returns a NavGraphVertexRawPtr that identifies the starting NavGraphVertex of current instance.
- Precondition
- This object must be valid. Its validity is not checked.
Returns the index of the starting NavGraphVertex of current instance within its NavGraph.
- Precondition
- This object must be valid. Its validity is not checked.
void Kaim::NavGraphEdgeRawPtr::Invalidate |
( |
| ) |
|
|
inline |
bool Kaim::NavGraphEdgeRawPtr::IsValid |
( |
| ) |
const |
|
inline |
Returns true if this object refers to a valid NavGraphEdge: i.e. a NavGraphEdge in a valid NavGraph. see NavGraph::IsValid().
Returns true if this object identifies an edge different from the one identified by rhs, or if only one of them is invalid.
Returns true if this object identifies the same edge as rhs, or if both are invalid.
The documentation for this class was generated from the following files: