GoWebScan API
GoWebScanTracheidWebMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanTracheidWebMsg.h
3 * @brief Declares a GoWebScanTracheidWebMsg object.
4 *
5 * @internal
6 * Copyright (C) 2017-2026 by LMI Technologies Inc.
7 * Licensed under the MIT License.
8 * Redistributed files must retain the above copyright notice.
9 */
10 #ifndef GO_SCANNER_TRACHEID_WEB_MSG_H
11 #define GO_SCANNER_TRACHEID_WEB_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanTracheidWebMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a tracheid web message
20 */
22 {
23  k64s deviceId; ///< Id of station device sending this message
24  k64s groupId; ///< Group identifier: Top (0), or Bottom (1)
25  k64s sectionId; ///< Section identifier (from GoWebScanSettings Section/Id)
26  k64s sequenceIndex; ///< Tile id; increases with each unique tile
27  k64s timestamp; ///< Capture time
28  k64s encoder; ///< Capture position (encoder ticks)
29  k64s yOrigin; ///< Section y-location (mils)
30  k64s xOrigin; ///< Section x-location (from GoWebScanSettings Section/X0)
31  k64s yResolution; ///< Pixel height (mils)
32  k64s xResolution; ///< Pixel width (mils)
34 
35 /**
36 * @class GoWebScanTracheidWebMsg
37 * @extends kObject
38 * @ingroup GoWebScanSdk-Messages
39 * @brief Represents a message containing a tile of resampled and merged spot angle,
40 * scatter, and area data for a given section.
41 */
43 
44 /**
45 * Constructs a GoWebScanTracheidWebMsg msg.
46 *
47 * @public @memberof GoWebScanTracheidWebMsg
48 * @param msg Receives the constructed GoWebScanTracheidWebMsg msg.
49 * @param height Height of the tile data array contained in the message.
50 * @param width Width of the tile data array contained in the message.
51 * @param allocator Memory allocator (or kNULL for default).
52 * @return Operation status.
53 */
54 GoWebScanFx(kStatus) GoWebScanTracheidWebMsg_Construct(GoWebScanTracheidWebMsg* msg, kSize height, kSize width, kAlloc allocator);
55 
56 /**
57 * Resize a GoWebScanTracheidWebMsg msg.
58 *
59 * @public @memberof GoWebScanTracheidWebMsg
60 * @param msg GoWebScanTracheidWebMsg msg.
61 * @param height New height.
62 * @param width New width.
63 * @return Operation status.
64 */
66 
67 /**
68 * Gets the height of a message.
69 *
70 * @public @memberof GoWebScanTracheidWebMsg
71 * @param msg GoWebScanTracheidWebMsg msg.
72 * @return Message height.
73 */
75 
76 /**
77 * Gets the width of a message.
78 *
79 * @public @memberof GoWebScanTracheidWebMsg
80 * @param msg GoWebScanTracheidWebMsg msg.
81 * @return Message width.
82 */
84 
85 /**
86 * Gets the attributes of a message.
87 *
88 * @public @memberof GoWebScanTracheidWebMsg
89 * @param msg GoWebScanTracheidWebMsg msg.
90 * @return Message attributes.
91 */
93 
94 /**
95 * Gets the inputs corresponding to each row of the tile.
96 *
97 * @public @memberof GoWebScanTracheidWebMsg
98 * @param msg GoWebScanTracheidWebMsg msg.
99 * @return Array of inputs. Type k64s.
100 */
102 
103 /**
104 * Gets the input at a specified row.
105 *
106 * @public @memberof GoWebScanTracheidWebMsg
107 * @param msg GoWebScanTracheidWebMsg msg.
108 * @param index Row index.
109 * @return Input at specified row.
110 */
112 
113 /**
114 * Gets the tile angle data array.
115 *
116 * @public @memberof GoWebScanTracheidWebMsg
117 * @param msg GoWebScanTracheidWebMsg msg.
118 * @return Message angle data array. Type k8u.
119 */
121 
122 /**
123 * Gets a pointer to the angle value at a specified row and column index.
124 *
125 * @public @memberof GoWebScanTracheidWebMsg
126 * @param msg GoWebScanTracheidWebMsg msg.
127 * @param rowIndex Row index (Y-axis).
128 * @param colIndex Column index (X-axis).
129 * @return Pointer to angle value.
130 */
131 GoWebScanFx(k8u*) GoWebScanTracheidWebMsg_AngleAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex);
132 
133 /**
134 * Gets the tile scatter data array.
135 *
136 * @public @memberof GoWebScanTracheidWebMsg
137 * @param msg GoWebScanTracheidWebMsg msg.
138 * @return Message scatter data array. Type k8u.
139 */
141 
142 /**
143 * Gets a pointer to the scatter value at a specified row and column index.
144 *
145 * @public @memberof GoWebScanTracheidWebMsg
146 * @param msg GoWebScanTracheidWebMsg msg.
147 * @param rowIndex Row index (Y-axis).
148 * @param colIndex Column index (X-axis).
149 * @return Pointer to scatter value.
150 */
151 GoWebScanFx(k8u*) GoWebScanTracheidWebMsg_ScatterAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex);
152 
153 /**
154 * Gets the tile area data array.
155 *
156 * @public @memberof GoWebScanTracheidWebMsg
157 * @param msg GoWebScanTracheidWebMsg msg.
158 * @return Message area data array. Type k8u.
159 */
161 
162 /**
163 * Gets a pointer to the area value at a specified row and column index.
164 *
165 * @public @memberof GoWebScanTracheidWebMsg
166 * @param msg GoWebScanTracheidWebMsg msg.
167 * @param rowIndex Row index (Y-axis).
168 * @param colIndex Column index (X-axis).
169 * @return Pointer to area value.
170 */
171 GoWebScanFx(k8u*) GoWebScanTracheidWebMsg_AreaAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex);
172 
173 #include <GoWebScanSdk/GoWebScanTracheidWebMsg.x.h>
174 
175 #endif
176 
kStatus GoWebScanTracheidWebMsg_Construct(GoWebScanTracheidWebMsg *msg, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanTracheidWebMsg msg.
Represents the attributes of a tracheid web message.
Definition: GoWebScanTracheidWebMsg.h:21
kStatus GoWebScanTracheidWebMsg_Realloc(GoWebScanTracheidWebMsg msg, kSize height, kSize width)
Resize a GoWebScanTracheidWebMsg msg.
kArray2 GoWebScanTracheidWebMsg_Scatter(GoWebScanTracheidWebMsg msg)
Gets the tile scatter data array.
kArray2 GoWebScanTracheidWebMsg_Angle(GoWebScanTracheidWebMsg msg)
Gets the tile angle data array.
k8u * GoWebScanTracheidWebMsg_AreaAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex)
Gets a pointer to the area value at a specified row and column index.
kSize GoWebScanTracheidWebMsg_Width(GoWebScanTracheidWebMsg msg)
Gets the width of a message.
Essential GoWebScan declarations.
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanTracheidWebMsg.h:23
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanTracheidWebMsg.h:28
k8u * GoWebScanTracheidWebMsg_AngleAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex)
Gets a pointer to the angle value at a specified row and column index.
k8u * GoWebScanTracheidWebMsg_ScatterAt(GoWebScanTracheidWebMsg msg, kSize rowIndex, kSize colIndex)
Gets a pointer to the scatter value at a specified row and column index.
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanTracheidWebMsg.h:25
k64s timestamp
Capture time.
Definition: GoWebScanTracheidWebMsg.h:27
Represents a message containing a tile of resampled and merged spot angle, scatter, and area data for a given section.
GoWebScanTracheidWebMsgAttr * GoWebScanTracheidWebMsg_Attributes(GoWebScanTracheidWebMsg msg)
Gets the attributes of a message.
kArray2 GoWebScanTracheidWebMsg_Area(GoWebScanTracheidWebMsg msg)
Gets the tile area data array.
k64s xResolution
Pixel width (mils)
Definition: GoWebScanTracheidWebMsg.h:32
k64s * GoWebScanTracheidWebMsg_InputsAt(GoWebScanTracheidWebMsg msg, kSize index)
Gets the input at a specified row.
k64s sequenceIndex
Tile id; increases with each unique tile.
Definition: GoWebScanTracheidWebMsg.h:26
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanTracheidWebMsg.h:29
kArray1 GoWebScanTracheidWebMsg_Inputs(GoWebScanTracheidWebMsg msg)
Gets the inputs corresponding to each row of the tile.
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanTracheidWebMsg.h:24
kSize GoWebScanTracheidWebMsg_Height(GoWebScanTracheidWebMsg msg)
Gets the height of a message.
k64s yResolution
Pixel height (mils)
Definition: GoWebScanTracheidWebMsg.h:31
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanTracheidWebMsg.h:30