GoWebScan API
GoWebScanProfileBoardMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanProfileBoardMsg.h
3 * @brief Declares a GoWebScanProfileBoardMsg 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_PROFILE_BOARD_MSG_H
11 #define GO_SCANNER_PROFILE_BOARD_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanProfileBoardMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a profile 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 GoWebScanProfileBoardMsg
37 * @extends kObject
38 * @ingroup GoWebScanSdk-Messages
39 * @brief Represents a message containing resampled and merged geometric data of a detected board
40 * for a given section.
41 */
43 
44 /**
45 * Constructs a GoWebScanProfileBoardMsg object.
46 *
47 * @public @memberof GoWebScanProfileBoardMsg
48 * @param msg Receives the constructed GoWebScanProfileBoardMsg 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) GoWebScanProfileBoardMsg_Construct(GoWebScanProfileBoardMsg* msg, kSize height, kSize width, kAlloc allocator);
55 
56 /**
57 * Resize a GoWebScanProfileBoardMsg object.
58 *
59 * @public @memberof GoWebScanProfileBoardMsg
60 * @param msg GoWebScanProfileBoardMsg 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 GoWebScanProfileBoardMsg
71 * @param msg GoWebScanProfileBoardMsg object.
72 * @return Message height.
73 */
75 
76 /**
77 * Gets the width of a message.
78 *
79 * @public @memberof GoWebScanProfileBoardMsg
80 * @param msg GoWebScanProfileBoardMsg object.
81 * @return Message width.
82 */
84 
85 /**
86 * Gets the attributes of a message.
87 *
88 * @public @memberof GoWebScanProfileBoardMsg
89 * @param msg GoWebScanProfileBoardMsg object.
90 * @return Message attributes.
91 */
93 
94 /**
95 * Gets the board data array.
96 *
97 * @public @memberof GoWebScanProfileBoardMsg
98 * @param msg GoWebScanProfileBoardMsg object.
99 * @return Data array containing board. Type k16s.
100 */
102 
103 /**
104 * Gets the Z value (mils) at a specified row and column in the board array.
105 *
106 * @public @memberof GoWebScanProfileBoardMsg
107 * @param msg GoWebScanProfileBoardMsg object.
108 * @param rowIndex Row index (Y-axis).
109 * @param colIndex Column index (X-axis).
110 * @return Pointer to Z value.
111 */
112 GoWebScanFx(k16s*) GoWebScanProfileBoardMsg_DataAt(GoWebScanProfileBoardMsg msg, kSize rowIndex, kSize colIndex);
113 
114 #include <GoWebScanSdk/GoWebScanProfileBoardMsg.x.h>
115 
116 #endif
117 
k64s sequenceIndex
Board id; increases with each unique board.
Definition: GoWebScanProfileBoardMsg.h:26
k64s timestamp
Capture time.
Definition: GoWebScanProfileBoardMsg.h:27
Represents the attributes of a profile board message.
Definition: GoWebScanProfileBoardMsg.h:21
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanProfileBoardMsg.h:25
kStatus GoWebScanProfileBoardMsg_Realloc(GoWebScanProfileBoardMsg msg, kSize height, kSize width)
Resize a GoWebScanProfileBoardMsg object.
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanProfileBoardMsg.h:30
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanProfileBoardMsg.h:29
Represents a message containing resampled and merged geometric data of a detected board for a given s...
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanProfileBoardMsg.h:23
Essential GoWebScan declarations.
GoWebScanProfileBoardMsgAttr * GoWebScanProfileBoardMsg_Attributes(GoWebScanProfileBoardMsg msg)
Gets the attributes of a message.
kSize GoWebScanProfileBoardMsg_Height(GoWebScanProfileBoardMsg msg)
Gets the height of a message.
kArray2 GoWebScanProfileBoardMsg_Data(GoWebScanProfileBoardMsg msg)
Gets the board data array.
k64s xResolution
Pixel width (mils)
Definition: GoWebScanProfileBoardMsg.h:32
k16s * GoWebScanProfileBoardMsg_DataAt(GoWebScanProfileBoardMsg msg, kSize rowIndex, kSize colIndex)
Gets the Z value (mils) at a specified row and column in the board array.
k64s yResolution
Pixel height (mils)
Definition: GoWebScanProfileBoardMsg.h:31
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanProfileBoardMsg.h:24
kSize GoWebScanProfileBoardMsg_Width(GoWebScanProfileBoardMsg msg)
Gets the width of a message.
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanProfileBoardMsg.h:28
kStatus GoWebScanProfileBoardMsg_Construct(GoWebScanProfileBoardMsg *msg, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanProfileBoardMsg object.