8 #ifndef Navigation_SegmentCanGoQueryBlob_H
9 #define Navigation_SegmentCanGoQueryBlob_H
18 class SegmentCanGoQueryOutputBlob
22 SegmentCanGoQueryOutputBlob() : m_result(0) {}
27 NavTriangleBlob m_startTriangle;
28 NavTriangleBlob m_destTriangle;
29 BlobRef<QueryDynamicOutputBlob> m_queryDynamicOutputBlobRef;
33 SwapEndianness(e,
self.m_result);
34 SwapEndianness(e,
self.m_startTriangle);
35 SwapEndianness(e,
self.m_destTriangle);
36 SwapEndianness(e,
self.m_queryDynamicOutputBlobRef);
40 class SegmentCanGoQueryOutputBlobBuilder :
public BaseBlobBuilder<SegmentCanGoQueryOutputBlob>
43 SegmentCanGoQueryOutputBlobBuilder(BaseSegmentCanGoQuery* query) { m_query = query; }
44 virtual void DoBuild()
47 BLOB_BUILD(
m_blob->m_startTriangle, NavTriangleBlobBuilder(m_query->GetStartTrianglePtr()));
48 BLOB_BUILD(
m_blob->m_destTriangle, NavTriangleBlobBuilder(m_query->GetDestTrianglePtr()));
49 QueryDynamicOutput* queryDynamicOutput = m_query->GetQueryDynamicOutput();
50 if (queryDynamicOutput !=
KY_NULL && queryDynamicOutput->IsEmpty() ==
false)
57 BaseSegmentCanGoQuery* m_query;
62 class SegmentCanGoQueryBlob
65 KY_ROOT_BLOB_CLASS(Query, SegmentCanGoQueryBlob, 0)
67 SegmentCanGoQueryBlob() : m_queryInfoId(
KyUInt32MAXVAL), m_databaseIdx(KyUInt32MAXVAL) {}
78 PositionSpatializationRange m_positionSpatializationRange;
81 BlobRef<SegmentCanGoQueryOutputBlob> m_queryOutput;
85 SwapEndianness(e,
self.m_queryInfoId);
86 SwapEndianness(e,
self.m_databaseIdx);
87 SwapEndianness(e,
self.m_startPos3f);
88 SwapEndianness(e,
self.m_destPos3f);
89 SwapEndianness(e,
self.m_radius);
90 SwapEndianness(e,
self.m_positionSpatializationRange);
91 SwapEndianness(e,
self.m_dynamicOutputMode);
93 SwapEndianness(e,
self.m_queryOutput);
97 class SegmentCanGoQueryBlobBuilder :
public BaseBlobBuilder<SegmentCanGoQueryBlob>
100 SegmentCanGoQueryBlobBuilder(BaseSegmentCanGoQuery* query) { m_query = query; }
101 virtual void DoBuild()
105 if (m_query->m_database !=
KY_NULL)
107 BLOB_SET(
m_blob->m_databaseIdx , m_query->m_database->GetDatabaseIndex());
111 BLOB_SET(
m_blob->m_positionSpatializationRange, m_query->GetPositionSpatializationRange());
114 switch (m_query->GetResult())
127 BaseSegmentCanGoQuery* m_query;
131 #endif // Kaim_SegmentCanGoQueryInputBlob_H
Indicates that the query has not yet been initialized.
Definition: basesegmentcangoquery.h:24
#define BLOB_SET(blob, value)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:136
Indicates that the query has not yet been launched.
Definition: basesegmentcangoquery.h:25
#define BLOB_BUILD(blob, builder)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:189
#define KY_NULL
Null value.
Definition: types.h:247
SegmentCanGoQueryResult
Enumerates the possible results of a SegmentCanGoQuery.
Definition: basesegmentcangoquery.h:22
DynamicOutputMode
Enumerates possible ways of storing crossed data from a query in a QueryDynamicOutput object...
Definition: querydynamicoutput.h:26
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
SegmentCanGoQueryOutputBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:117
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
#define BUILD_REFERENCED_BLOB(blobRef, builder)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:197