9 #ifndef Navigation_TrianglesFromPosQuery_H
10 #define Navigation_TrianglesFromPosQuery_H
44 class MultipleFloorTrianglesFromPosQuery :
public IAtomicQuery
49 static QueryType GetStaticType() {
return TypeMultipleFloorTrianglesFromPos; }
50 virtual QueryType GetType()
const {
return TypeMultipleFloorTrianglesFromPos; }
82 virtual void Advance(WorkingMemory* workingMemory);
92 const Vec3f& GetInputPos()
const;
99 void PerformQueryWithInputCoordPos(WorkingMemory* workingMemory);
129 #endif //Navigation_TrianglesFromPosQuery_H
void SetQueryType(MultipleFloorTrianglesFromPosQueryType queryType)
Write accessor for m_queryType.
Definition: multiplefloortrianglesfromposquery.inl:53
This class gather the data encountered along some query process.
Definition: querydynamicoutput.h:61
virtual void Advance(WorkingMemory *workingMemory)
This function is called by the QueryQueue to process one step on the query.
Definition: multiplefloortrianglesfromposquery.inl:46
Ptr< QueryDynamicOutput > m_queryDynamicOutput
A ref-counted Ptr to a QueryDynamicOutput instance, used to store the data encountered during the que...
Definition: multiplefloortrianglesfromposquery.h:156
The MultipleFloorTrianglesFromPosQuery class takes a position in 3D space (m_inputPos3f), and finds the triangles in the NavMesh that lie at the same (X,Y) coordinates.
Definition: multiplefloortrianglesfromposquery.h:45
Indicates the query was completed successfully, as at least one triangle was found.
Definition: multiplefloortrianglesfromposquery.h:28
MultipleFloorTrianglesFromPosQueryResult m_result
Updated during processing to indicate the result of the query.
Definition: multiplefloortrianglesfromposquery.h:149
#define KY_NULL
Null value.
Definition: types.h:247
MultipleFloorTrianglesFromPosQueryType m_queryType
An element from the MultipleFloorTrianglesFromPosQueryType enumeration that indicates whether to look...
Definition: multiplefloortrianglesfromposquery.h:147
void BindToDatabase(Database *database)
Binds the query with the specified Database, clears all the inputs and outputs and sets all other par...
Definition: multiplefloortrianglesfromposquery.inl:18
Instructs the query to retrieve the first triangle that lies above the point provided, and the first triangle that lies below the point provided.
Definition: multiplefloortrianglesfromposquery.h:37
void SetQueryDynamicOutput(QueryDynamicOutput *queryDynamicOutput)
Write accessor for m_queryDynamicOutput.
Definition: multiplefloortrianglesfromposquery.inl:55
QueryType
Enumerates all the type of query.
Definition: iquery.h:29
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
Vec3f m_inputPos3f
The position on the (X,Y) plane for which the triangles will be retrieved.
Definition: multiplefloortrianglesfromposquery.h:141
MultipleFloorTrianglesFromPosQueryResult
Enumerates the possible results of a MultipleFloorTrianglesFromPosQuery.
Definition: multiplefloortrianglesfromposquery.h:20
Definition: gamekitcrowddispersion.h:20
void PerformQuery(WorkingMemory *workingMemory=0)
Performs the query.
MultipleFloorTrianglesFromPosQueryType
Enumerates the possible ways that a MultipleFloorTrianglesFromPosQuery chooses which triangles to ret...
Definition: multiplefloortrianglesfromposquery.h:32
Indicates the query has not yet been launched.
Definition: multiplefloortrianglesfromposquery.h:23
Instructs the query to retrieve all triangles that lie above the point provided.
Definition: multiplefloortrianglesfromposquery.h:36
Indicates that the query has not yet been initialized.
Definition: iquery.h:346
Instructs the query to retrieve all triangles at the same (X,Y) coordinates as the point provided...
Definition: multiplefloortrianglesfromposquery.h:34
Utilities for dealing with NavData coordinates, which are expressed in a world space based on integer...
Definition: worldintegerpos.h:21
Indicates the query was completed successfully, but not all the triangles found have been stored beca...
Definition: multiplefloortrianglesfromposquery.h:26
Indicates that the query has not yet been launched.
Definition: iquery.h:347
Indicates the query has not yet been initialized.
Definition: multiplefloortrianglesfromposquery.h:22
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
Instructs the query to retrieve all triangles that lie below the point provided.
Definition: multiplefloortrianglesfromposquery.h:35
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23
Indicates that the point provided is outside the navigable boundaries of the NavMesh.
Definition: multiplefloortrianglesfromposquery.h:25