9 #ifndef Navigation_RayCastOnSegmentQuery_H
10 #define Navigation_RayCastOnSegmentQuery_H
30 template<
class TraverseLogic>
31 class RayCastOnSegmentQuery :
public BaseRayCastOnSegmentQuery
74 virtual void Advance(WorkingMemory* workingMemory);
84 const Vec3f& GetStartPos()
const;
85 const Vec3f& GetSegmentStartPos()
const;
86 const Vec3f& GetSegmentEndPos()
const;
87 const Vec3f& GetArrivalPos()
const;
94 const PositionSpatializationRange& GetPositionSpatializationRange()
const;
97 void PerformQueryWithInputCoordPos(WorkingMemory* workingMemory);
99 void SetSegmentStartIntegerPos(
const WorldIntegerPos& segmentStartIntegerPos);
100 void SetSegmentEndIntegerPos(
const WorldIntegerPos& segmentEndIntegerPos);
108 CompositeSubSegment& subSegment, ScopedDynamicOutput& scopedDynamicOutput);
117 #endif //Navigation_RayCastOnSegmentQuery_H
This class gather the data encountered along some query process.
Definition: querydynamicoutput.h:61
void SetDynamicOutputMode(DynamicOutputMode savingMode)
Write accessor for m_dynamicOutputMode.
Definition: raycastonsegmentquery.inl:41
RayCastOnSegmentQueryResult
Enumerates the possible results of a RayCastOnSegmentQuery.
Definition: baseraycastonsegmentquery.h:29
#define KY_NULL
Null value.
Definition: types.h:247
void PerformQuery(WorkingMemory *workingMemory=0)
Performs the query.
Definition: raycastonsegmentquery.inl:100
This class defines a two-dimensional vector whose coordinates are stored using 64-bit integers...
Definition: vec2ll.h:27
void SetPositionSpatializationRange(const PositionSpatializationRange &positionSpatializationRange)
Write accessor for m_positionSpatializationRange.
Definition: raycastonsegmentquery.inl:36
void SetQueryDynamicOutput(QueryDynamicOutput *queryDynamicOutput)
Write accessor for m_queryDynamicOutput.
Definition: raycastonsegmentquery.inl:46
DynamicOutputMode
Enumerates possible ways of storing crossed data from a query in a QueryDynamicOutput object...
Definition: querydynamicoutput.h:26
virtual void Advance(WorkingMemory *workingMemory)
This function is called by the QueryQueue to process one step on the query.
Definition: raycastonsegmentquery.inl:29
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
Definition: gamekitcrowddispersion.h:20
void BindToDatabase(Database *database)
Binds the query with the specified Database, clears all the inputs and outputs and sets all other par...
Definition: raycastonsegmentquery.inl:17
Utilities for dealing with NavData coordinates, which are expressed in a world space based on integer...
Definition: worldintegerpos.h:21
This class is an helper used internally by the Queries to factorize Code that is used in many Queries...
Definition: queryutils.h:30
Each instance of this class uniquely identifies a single NavTriangle in a NavFloor.
Definition: navtriangleptr.h:22
The RayCastOnSegmentQuery class tests whether a ray (with a width of 0) can be cast from a starting p...
Definition: raycastonsegmentquery.h:33
void Initialize()
Should be called by the derived class before trying to perform the query or to push it in a QueryQueu...
Definition: iquery.h:372
Each instance of this class uniquely identifies a singleNavHalfEdge in a NavFloor.
Definition: navhalfedgerawptr.h:34
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23