10 #ifndef GO_PXL_SDK_GOGDPRENDERING_H
11 #define GO_PXL_SDK_GOGDPRENDERING_H
19 typedef struct GoPointSet
26 GoPointSet() =
default;
27 GoPointSet(k32f size, k32u color, k32s shape, std::vector<kPoint3d32f> points) :
28 size(size), color(color), shape(shape), points(points) {}
41 GoLineSet(k32f width, k32u color,
bool hasStartPointArrow,
bool hasEndPointArrow, std::vector<kPoint3d32f> points) :
42 width(width), color(color), hasStartPointArrow(hasStartPointArrow), hasEndPointArrow(hasEndPointArrow), points(points) {}
136 void Deserialize(kSerializer serializer);
145 const size_t PointSetCount()
const;
155 const GoPointSet& PointSetAt(k32u index)
const;
164 const size_t LineSetCount()
const;
174 const GoLineSet& LineSetAt(k32u index)
const;
183 const size_t RegionCount()
const;
193 const GoRegion& RegionAt(k32u index)
const;
202 const size_t PlaneCount()
const;
212 const GoPlane& PlaneAt(k32u index)
const;
221 const size_t RayCount()
const;
231 const GoRay& RayAt(k32u index)
const;
240 const size_t LabelCount()
const;
250 const GoLabel& LabelAt(k32u index)
const;
259 const size_t PositionCount()
const;
269 const GoPosition& PositionAt(k32u index)
const;
273 void DeserializePointSets(kSerializer serializer, k16s count);
274 void DeserializeLineSets(kSerializer serializer, k16s count);
275 void DeserializeRegions(kSerializer serializer, k16s count);
276 void DeserializePlanes(kSerializer serializer, k16s count);
277 void DeserializeRays(kSerializer serializer, k16s count);
278 void DeserializeLabels(kSerializer serializer, k16s count);
279 void DeserializePositions(kSerializer serializer, k16s count);
281 void ReadOnePointSet(kSerializer serializer,
PointSet& pointSetEntry, k16u& pointCount);
282 void ReadOneLineSet(kSerializer serializer,
GoLineSet& lineSetEntry, k16u& pointCount);
286 void ReadSurfaceRegion3d(kSerializer serializer,
GoRegion3d& region);
289 std::vector<GoPointSet> pointSet;
290 std::vector<GoLineSet> lineSet;
291 std::vector<std::shared_ptr<GoRegion>> regionSet;
292 std::vector<GoPlane> planeSet;
293 std::vector<GoRay> raySet;
294 std::vector<GoLabel> labelSet;
295 std::vector<GoPosition> positionSet;
297 friend class ::GoGdpMsgTests;
314 void Deserialize(kSerializer serializer)
override;
325 kStatus DeserializeGraphic(kSerializer serializer);
326 kStatus DeserializePointSets(kSerializer serializer, k16s count);
327 kStatus DeserializeLineSets(kSerializer serializer, k16s count);
328 kStatus DeserializeRegions(kSerializer serializer, k16s count);
329 kStatus DeserializePlanes(kSerializer serializer, k16s count);
330 kStatus DeserializeRays(kSerializer serializer, k16s count);
331 kStatus DeserializeLabels(kSerializer serializer, k16s count);
332 kStatus DeserializePositions(kSerializer serializer, k16s count);
334 friend class ::GoGdpMsgTests;
RegionType type
Definition: GoGdpRendering.h:56
k64f x
Definition: GoGdpRendering.h:63
bool hasEndPointArrow
Definition: GoGdpRendering.h:37
Definition: GoGdpRendering.h:104
k64f angleZ
Definition: GoGdpRendering.h:87
#define GoPxLSdkClass
Definition: Def.h:35
std::vector< kPoint3d32f > points
Definition: GoGdpRendering.h:24
k64f z
Definition: GoGdpRendering.h:64
k32s shape
Definition: GoGdpRendering.h:23
Definition: GoGdpRendering.h:300
GoLineSet(k32f width, k32u color, bool hasStartPointArrow, bool hasEndPointArrow, std::vector< kPoint3d32f > points)
Definition: GoGdpRendering.h:41
Definition: GoGdpRendering.h:96
std::vector< kPoint3d32f > points
Definition: GoGdpRendering.h:38
Definition: GoGdpRendering.h:79
k64f width
Definition: GoGdpRendering.h:74
k32f distance
Definition: GoGdpRendering.h:92
Definition: GoGdpRendering.h:90
Definition: GoGdpRendering.h:70
virtual ~GoRegion()
Definition: GoGdpRendering.h:55
k32f width
Definition: GoGdpRendering.h:34
k64f x
Definition: GoGdpRendering.h:72
k64f width
Definition: GoGdpRendering.h:84
Definition: GoGdpRendering.h:50
RegionType
Definition: GoGdpRendering.h:46
k64f width
Definition: GoGdpRendering.h:65
kPoint3d64f position
Definition: GoGdpRendering.h:107
k64f height
Definition: GoGdpRendering.h:86
Definition: GoGdpRendering.h:116
Definition: GoGdpRendering.h:48
Definition: GoGdpRendering.h:32
k32u color
Definition: GoGdpRendering.h:35
Declares the GoPxLSdk.GoGdpMsg class.
kPoint3d64f position
Definition: GoGdpRendering.h:112
kPoint3d32f direction
Definition: GoGdpRendering.h:99
k8u type
Definition: GoGdpRendering.h:113
k64f length
Definition: GoGdpRendering.h:85
k64f x
Definition: GoGdpRendering.h:81
k64f angleY
Definition: GoGdpRendering.h:67
kPoint3d32f normal
Definition: GoGdpRendering.h:93
k32u color
Definition: GoGdpRendering.h:101
Definition: GoGdpRendering.h:49
k64f z
Definition: GoGdpRendering.h:83
k64f angleZ
Definition: GoGdpRendering.h:76
k32f size
Definition: GoGdpRendering.h:21
std::string text
Definition: GoGdpRendering.h:106
GoPointSet(k32f size, k32u color, k32s shape, std::vector< kPoint3d32f > points)
Definition: GoGdpRendering.h:27
k64f height
Definition: GoGdpRendering.h:66
k64f length
Definition: GoGdpRendering.h:75
bool hasStartPointArrow
Definition: GoGdpRendering.h:36
Definition: GoGdpRendering.h:53
k64f y
Definition: GoGdpRendering.h:82
Definition: GoGdpRendering.h:110
k64f y
Definition: GoGdpRendering.h:73
k32f width
Definition: GoGdpRendering.h:100
k32u color
Definition: GoGdpRendering.h:22
kPoint3d32f position
Definition: GoGdpRendering.h:98
Definition: GoGdpMsg.h:38
Definition: GoGdpRendering.h:61
Definition: GoGdpRendering.h:19