GoWebScan API
GoWebScanTracheidBoardMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanTracheidBoardMsg.h
3 * @brief Declares a GoWebScanTracheidBoardMsg 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_BOARD_MSG_H
11 #define GO_SCANNER_TRACHEID_BOARD_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanTracheidBoardMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a tracheid board 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; ///< Board id; increases with each unique board.
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 GoWebScanTracheidBoardMsg
37 * @extends kObject
38 * @ingroup GoWebScanSdk-Messages
39 * @brief Represents a message containing spot angle, scatter ratio, and area measurements from a detected board
40 * for a given section.
41 */
43 
44 /**
45 * Constructs a GoWebScanTracheidBoardMsg object.
46 *
47 * @public @memberof GoWebScanTracheidBoardMsg
48 * @param msg Receives the constructed GoWebScanTracheidBoardMsg object.
49 * @param height Height of the board data array contained in the message.
50 * @param width Width of the board data array contained in the message.
51 * @param allocator Memory allocator (or kNULL for default).
52 * @return Operation status.
53 */
54 GoWebScanFx(kStatus) GoWebScanTracheidBoardMsg_Construct(GoWebScanTracheidBoardMsg* msg, kSize height, kSize width, kAlloc allocator);
55 
56 /**
57 * Resize a GoWebScanTracheidBoardMsg object.
58 *
59 * @public @memberof GoWebScanTracheidBoardMsg
60 * @param msg GoWebScanTracheidBoardMsg object.
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 GoWebScanTracheidBoardMsg
71 * @param msg GoWebScanTracheidBoardMsg object.
72 * @return Message height.
73 */
75 
76 /**
77 * Gets the width of a message.
78 *
79 * @public @memberof GoWebScanTracheidBoardMsg
80 * @param msg GoWebScanTracheidBoardMsg object.
81 * @return Message width.
82 */
84 
85 /**
86 * Gets the attributes of a message.
87 *
88 * @public @memberof GoWebScanTracheidBoardMsg
89 * @param msg GoWebScanTracheidBoardMsg object.
90 * @return Message attributes.
91 */
93 
94 /**
95 * Gets the board angle data array.
96 *
97 * @public @memberof GoWebScanTracheidBoardMsg
98 * @param msg GoWebScanTracheidBoardMsg object.
99 * @return Data array containing board angle. Type k8u.
100 */
102 
103 /**
104 * Gets the spot angle at a specified row and column in the board array.
105 *
106 * @public @memberof GoWebScanTracheidBoardMsg
107 * @param msg GoWebScanTracheidBoardMsg object.
108 * @param rowIndex Row index (Y-axis).
109 * @param colIndex Column index (X-axis).
110 * @return Pointer to angle value.
111 */
112 GoWebScanFx(k8u*) GoWebScanTracheidBoardMsg_AngleAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex);
113 
114 /**
115 * Gets the board scatter data array.
116 *
117 * @public @memberof GoWebScanTracheidBoardMsg
118 * @param msg GoWebScanTracheidBoardMsg object.
119 * @return Data array containing board scatter. Type k8u.
120 */
122 
123 /**
124 * Gets the spot scatter ratio at a specified row and column in the board array.
125 *
126 * @public @memberof GoWebScanTracheidBoardMsg
127 * @param msg GoWebScanTracheidBoardMsg object.
128 * @param rowIndex Row index (Y-axis).
129 * @param colIndex Column index (X-axis).
130 * @return Pointer to scatter value.
131 */
132 GoWebScanFx(k8u*) GoWebScanTracheidBoardMsg_ScatterAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex);
133 
134 /**
135 * Gets the board area data array.
136 *
137 * @public @memberof GoWebScanTracheidBoardMsg
138 * @param msg GoWebScanTracheidBoardMsg object.
139 * @return Data array containing board area. Type k8u.
140 */
142 
143 /**
144 * Gets the spot area at a specified row and column in the board array.
145 *
146 * @public @memberof GoWebScanTracheidBoardMsg
147 * @param msg GoWebScanTracheidBoardMsg object.
148 * @param rowIndex Row index (Y-axis).
149 * @param colIndex Column index (X-axis).
150 * @return Pointer to area value.
151 */
152 GoWebScanFx(k8u*) GoWebScanTracheidBoardMsg_AreaAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex);
153 
154 #include <GoWebScanSdk/GoWebScanTracheidBoardMsg.x.h>
155 
156 #endif
157 
k8u * GoWebScanTracheidBoardMsg_AngleAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex)
Gets the spot angle at a specified row and column in the board array.
Represents the attributes of a tracheid board message.
Definition: GoWebScanTracheidBoardMsg.h:21
kArray2 GoWebScanTracheidBoardMsg_Scatter(GoWebScanTracheidBoardMsg msg)
Gets the board scatter data array.
k8u * GoWebScanTracheidBoardMsg_ScatterAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex)
Gets the spot scatter ratio at a specified row and column in the board array.
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanTracheidBoardMsg.h:23
Essential GoWebScan declarations.
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanTracheidBoardMsg.h:24
k64s timestamp
Capture time.
Definition: GoWebScanTracheidBoardMsg.h:27
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanTracheidBoardMsg.h:30
GoWebScanTracheidBoardMsgAttr * GoWebScanTracheidBoardMsg_Attributes(GoWebScanTracheidBoardMsg msg)
Gets the attributes of a message.
k64s xResolution
Pixel width (mils)
Definition: GoWebScanTracheidBoardMsg.h:32
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanTracheidBoardMsg.h:28
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanTracheidBoardMsg.h:29
kArray2 GoWebScanTracheidBoardMsg_Area(GoWebScanTracheidBoardMsg msg)
Gets the board area data array.
kArray2 GoWebScanTracheidBoardMsg_Angle(GoWebScanTracheidBoardMsg msg)
Gets the board angle data array.
kSize GoWebScanTracheidBoardMsg_Width(GoWebScanTracheidBoardMsg msg)
Gets the width of a message.
k64s yResolution
Pixel height (mils)
Definition: GoWebScanTracheidBoardMsg.h:31
kSize GoWebScanTracheidBoardMsg_Height(GoWebScanTracheidBoardMsg msg)
Gets the height of a message.
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanTracheidBoardMsg.h:25
k8u * GoWebScanTracheidBoardMsg_AreaAt(GoWebScanTracheidBoardMsg msg, kSize rowIndex, kSize colIndex)
Gets the spot area at a specified row and column in the board array.
Represents a message containing spot angle, scatter ratio, and area measurements from a detected boar...
kStatus GoWebScanTracheidBoardMsg_Realloc(GoWebScanTracheidBoardMsg msg, kSize height, kSize width)
Resize a GoWebScanTracheidBoardMsg object.
k64s sequenceIndex
Board id; increases with each unique board.
Definition: GoWebScanTracheidBoardMsg.h:26
kStatus GoWebScanTracheidBoardMsg_Construct(GoWebScanTracheidBoardMsg *msg, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanTracheidBoardMsg object.