GoPxL SDK

- Home
- Files
- Namespace

GoGdpSurfaceBase.h
Go to the documentation of this file.
1
9 #ifndef GO_PXL_SDK_GOGDPSURFACEBASE_H
10 #define GO_PXL_SDK_GOGDPSURFACEBASE_H
11
12 #include <GoPxLSdk/GoGdpMsg/GoGdpMsg.h>
13
14 class GoGdpMsgTests;
15
16 namespace GoPxLSdk
17 {
18 class GoPxLSdkClass GoGdpSurfaceBase : public GoGdpMsg
19 {
20 public:
28 const k32u Length() const;
29
37 const k32u Width() const;
38
46 const k32u IntensityLength() const;
47
55 const k32u IntensityWidth() const;
56
64 const kPoint3d64f Resolution() const;
65
73 const kPoint3d64f Offset() const;
74
82 const k32u SurfaceId() const;
83
91 const k32f Exposure() const;
92
93 protected:
102 GoGdpSurfaceBase(MessageType type);
103 ~GoGdpSurfaceBase() = default;
104
113 void Deserialize(kSerializer serializer) override;
114
115 private:
116 const k64f OffsetScaled = 1000.0;
117 const k64f ResolutionScaled = 1000000.0;
118
119 k32u length = 0;
120 k32u width = 0;
121
122 k32u intensityLength = 0;
123 k32u intensityWidth = 0;
124
125 kPoint3d64f resolution = { 0.0 };
126 kPoint3d64f offset = { 0.0 };
127
128 k32u surfaceId = 0;
129 k32f exposure = 0.0;
130
131 friend class ::GoGdpMsgTests;
132 };
133 }
134
135 #endif
GoPxLSdkClass
#define GoPxLSdkClass
Definition: Def.h:35
GoPxLSdk::MessageType
MessageType
List of enums representing types available to be serialized out through GDP This list is essentially ...
Definition: GoGdpMsgDef.h:27
GoGdpMsg.h
GoPxLSdk::GoGdpSurfaceBase
Definition: GoGdpSurfaceBase.h:18
GoPxLSdk
Definition: Def.h:46
GoPxLSdk::GoGdpMsg
Definition: GoGdpMsg.h:37