20 class BestGraphVertexPathFinderQueryDisplayListBuilder :
public IDisplayListBuilder
23 const BestGraphVertexPathFinderQueryBlob* m_query;
24 BestGraphVertexPathFinderQueryOutputBlob* m_output;
25 DisplayList* m_displayList;
28 BestGraphVertexPathFinderQueryDisplayListBuilder() { Clear(); }
35 m_displayList =
nullptr;
39 void StartText(Color color,
const char* text)
41 m_displayList->PushText(m_query->m_startPos3f.OffsetZ(1.0f), color, text);
44 virtual void DoBuild(DisplayList* displayList,
char* blob)
46 m_query = (BestGraphVertexPathFinderQueryBlob*)blob;
47 m_output = m_query->m_queryOutput.Ptr();
48 m_displayList = displayList;
49 if (m_output ==
nullptr)
71 PropagationBoundDisplay::Cylinder(displayList, m_query->m_startPos3f, m_query->m_propagationRadius);
72 StartText(Color::Red,
"Path not found !");
80 PathDisplay::Display(m_displayList, &m_output->m_pathBlob);
Indicates that the input channelComputerConfig is invalid.
Definition: basebestgraphvertexpathfinderquery.h:39
Indicates the query has not yet been initialized.
Definition: basebestgraphvertexpathfinderquery.h:20
Indicates the query has not yet been launched.
Definition: basebestgraphvertexpathfinderquery.h:21
Indicates that the astar traversal algorithm has been launched, but has not yet completed.
Definition: basebestgraphvertexpathfinderquery.h:23
Indicates that insufficient working memory caused the query to stop.
Definition: basebestgraphvertexpathfinderquery.h:37
Indicates that the computation has been canceled.
Definition: basebestgraphvertexpathfinderquery.h:41
Indicates that the refiner is done, the channel is going to be initialized.
Definition: basebestgraphvertexpathfinderquery.h:30
Indicates that the refining process is being initialized.
Definition: basebestgraphvertexpathfinderquery.h:25
Indicates that the refined path is being clamped to navMesh according to the altitude tolerance...
Definition: basebestgraphvertexpathfinderquery.h:28
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Indicates that the clamping algorithm has completed, but the path has not yet been built...
Definition: basebestgraphvertexpathfinderquery.h:29
Indicates that the NavTag at the starting point is forbidden.
Definition: basebestgraphvertexpathfinderquery.h:34
Indicates that a path has been found between the start and destination.
Definition: basebestgraphvertexpathfinderquery.h:43
Indicates that a path could not be found between the start and destination points.
Definition: basebestgraphvertexpathfinderquery.h:35
Indicates that the channel is initialized, the channel is being computed.
Definition: basebestgraphvertexpathfinderquery.h:31
Indicates that a computation error caused the query to stop.
Definition: basebestgraphvertexpathfinderquery.h:40
Indicates that the astar traversal algorithm is finished, and that the path found is ready to be refi...
Definition: basebestgraphvertexpathfinderquery.h:24
BestGraphVertexPathFinderQueryResult
Enumerates the possible results of an BestGraphVertexPathFinderQuery.
Definition: basebestgraphvertexpathfinderquery.h:18
Indicates that the path found is being refined.
Definition: basebestgraphvertexpathfinderquery.h:26
Indicates that the query has stopped and must be relaunched because of a change in the NavData...
Definition: basebestgraphvertexpathfinderquery.h:36
Indicates that a NavMesh triangle could not be found for the starting point.
Definition: basebestgraphvertexpathfinderquery.h:33
Indicates that the refiner is done, but the path has not yet been clamped to the navMesh.
Definition: basebestgraphvertexpathfinderquery.h:27
Indicates that a computation error caused the query to stop.
Definition: basebestgraphvertexpathfinderquery.h:38