8 #ifndef Navigation_SpatializedPointsInAabbFromPosQuery_DisplayListBuilder_H
9 #define Navigation_SpatializedPointsInAabbFromPosQuery_DisplayListBuilder_H
18 class SpatializedPointCollectorInAABBQueryDisplayListBuilder :
public IDisplayListBuilder
21 virtual void DoBuild(ScopedDisplayList* displayList,
char* blob,
KyUInt32 = 0)
23 const SpatializedPointCollectorInAABBQueryBlob* queryBlob = (SpatializedPointCollectorInAABBQueryBlob*) blob;
25 SpatializedPointCollectorInAABBQueryOutputBlob* queryOutputBlob = queryBlob->m_queryOutput.
Ptr();
26 if (queryOutputBlob != NULL)
29 Box3f aabb(queryBlob->m_startPos3f, queryBlob->m_startPos3f);
30 aabb.m_min -= queryBlob->m_extentBox.m_min;
31 aabb.m_max += queryBlob->m_extentBox.m_max;
33 VisualShapeColor shapeColor;
40 displayList->PushBox(aabb, shapeColor);
46 displayList->PushBox(aabb, shapeColor);
52 displayList->PushBox(aabb, shapeColor);
55 displayList->PushTriangle(queryOutputBlob->m_startTriangle.m_triangle, shapeColor);
56 displayList->PushText(queryBlob->m_startPos3f + offsetVector, shapeColor.m_lineColor,
"Lack of working memory!");
62 displayList->PushBox(aabb, shapeColor);
65 displayList->PushTriangle(queryOutputBlob->m_startTriangle.m_triangle, shapeColor);
68 SpatializedPointBlob* points = queryOutputBlob->m_queryDynamicOutputBlob.m_spatializedPoints.GetValues();
69 for (
KyUInt32 i = 0; i < queryOutputBlob->m_queryDynamicOutputBlob.m_spatializedPoints.GetCount(); ++i)
71 displayList->PushPoint(points[i].m_position, shapeColor);
72 displayList->PushText(points[i].m_position + offsetVector, shapeColor.m_triangleColor, SpatializedPoint::GetObjectTypeDescrition((
SpatializedPointObjectType)points[i].m_type));
Indicates that insufficient working memory caused the query to stop.
Definition: basespatializedpointcollectorinaabbquery.h:32
Definition: SF_RefCount.h:377
static const VisualColor Lime
Represents the color with RGBA values ( 0, 255, 0, 255).
Definition: visualcolor.h:172
static const VisualColor Orange
Represents the color with RGBA values (255, 165, 0, 255).
Definition: visualcolor.h:195
SpatializedPointCollectorInAABBQueryResult
Enumerates the possible results of a SpatializedPointCollectorInAABBQuery.
Definition: basespatializedpointcollectorinaabbquery.h:26
Indicates that a NavMesh triangle could not be found for the starting point.
Definition: basespatializedpointcollectorinaabbquery.h:31
static const VisualColor Red
Represents the color with RGBA values (255, 0, 0, 255).
Definition: visualcolor.h:209
static const VisualColor LightGreen
Represents the color with RGBA values (144, 238, 144, 255).
Definition: visualcolor.h:164
static Vec3f UnitZ()
Returns the normalized orientation of the Z axis.
Definition: vec3f.h:218
SpatializedPointObjectType
Enumerates the possible object types the SpatializedPoint refers to.
Definition: spatializedpoint.h:35
Definition: gamekitcrowddispersion.h:20
Indicates that the query was completed successfully.
Definition: basespatializedpointcollectorinaabbquery.h:34
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
Indicates that the query has not yet been launched.
Definition: basespatializedpointcollectorinaabbquery.h:29
Indicates that the query has not yet been initialized.
Definition: basespatializedpointcollectorinaabbquery.h:28