GoWebScan API
GoWebScanVisionBoardMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanVisionBoardMsg.h
3 * @brief Declares a GoWebScanVisionBoardMsg 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_VISION_BOARD_MSG_H
11 #define GO_SCANNER_VISION_BOARD_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanVisionBoardMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a vision 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 GoWebScanVisionBoardMsg
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 GoWebScanVisionBoardMsg board.
46 *
47 * @public @memberof GoWebScanVisionBoardMsg
48 * @param msg Receives the constructed GoWebScanVisionBoardMsg object.
49 * @param pixelType Pixel type of the board data array contained in the message.
50 * @param height Height of the board data array contained in the message.
51 * @param width Width of the board data array contained in the message.
52 * @param allocator Memory allocator (or kNULL for default).
53 * @return Operation status.
54 */
55 GoWebScanFx(kStatus) GoWebScanVisionBoardMsg_Construct(GoWebScanVisionBoardMsg* msg, kType pixelType, kSize height, kSize width, kAlloc allocator);
56 
57 /**
58 * Resize a GoWebScanVisionBoardMsg object.
59 *
60 * @public @memberof GoWebScanVisionBoardMsg
61 * @param msg GoWebScanVisionBoardMsg object.
62 * @param height New height.
63 * @param width New width.
64 * @return Operation status.
65 */
67 
68 /**
69 * Gets the height of a message.
70 *
71 * @public @memberof GoWebScanVisionBoardMsg
72 * @param msg GoWebScanVisionBoardMsg object.
73 * @return Message height.
74 */
76 
77 /**
78 * Gets the width of a message.
79 *
80 * @public @memberof GoWebScanVisionBoardMsg
81 * @param msg GoWebScanVisionBoardMsg object.
82 * @return Message width.
83 */
85 
86 /**
87 * Gets the pixel type of a message.
88 *
89 * @public @memberof GoWebScanVisionBoardMsg
90 * @param msg GoWebScanVisionBoardMsg object.
91 * @return Message pixel type.
92 */
94 
95 /**
96 * Gets the attributes of a message.
97 *
98 * @public @memberof GoWebScanVisionBoardMsg
99 * @param msg GoWebScanVisionBoardMsg object.
100 * @return Message attributes.
101 */
103 
104 /**
105 * Gets the board data array.
106 *
107 * @public @memberof GoWebScanVisionBoardMsg
108 * @param msg GoWebScanVisionBoardMsg object.
109 * @return Data array containing board. Type pixelType used to construct board.
110 */
112 
113 /**
114 * Gets the pixel value at a specified row and column in the board array.
115 *
116 * @public @memberof GoWebScanVisionBoardMsg
117 * @param msg GoWebScanVisionBoardMsg object.
118 * @param rowIndex Row index (Y-axis).
119 * @param colIndex Column index (X-axis).
120 * @return Pointer to pixel value (of same type as pixelType parameter in object construction).
121 */
122 GoWebScanFx(kPointer) GoWebScanVisionBoardMsg_DataAt(GoWebScanVisionBoardMsg msg, kSize rowIndex, kSize colIndex);
123 
124 #include <GoWebScanSdk/GoWebScanVisionBoardMsg.x.h>
125 
126 #endif
127 
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanVisionBoardMsg.h:30
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanVisionBoardMsg.h:24
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: GoWebScanVisionBoardMsg.h:23
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanVisionBoardMsg.h:25
kStatus GoWebScanVisionBoardMsg_Construct(GoWebScanVisionBoardMsg *msg, kType pixelType, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanVisionBoardMsg board.
Essential GoWebScan declarations.
k64s timestamp
Capture time.
Definition: GoWebScanVisionBoardMsg.h:27
k64s yResolution
Pixel height (mils)
Definition: GoWebScanVisionBoardMsg.h:31
kSize GoWebScanVisionBoardMsg_Width(GoWebScanVisionBoardMsg msg)
Gets the width of a message.
kType GoWebScanVisionBoardMsg_PixelType(GoWebScanVisionBoardMsg msg)
Gets the pixel type of a message.
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanVisionBoardMsg.h:28
kSize GoWebScanVisionBoardMsg_Height(GoWebScanVisionBoardMsg msg)
Gets the height of a message.
k64s sequenceIndex
Board id; increases with each unique board.
Definition: GoWebScanVisionBoardMsg.h:26
k64s xResolution
Pixel width (mils)
Definition: GoWebScanVisionBoardMsg.h:32
kStatus GoWebScanVisionBoardMsg_Realloc(GoWebScanVisionBoardMsg msg, kSize height, kSize width)
Resize a GoWebScanVisionBoardMsg object.
kPointer GoWebScanVisionBoardMsg_DataAt(GoWebScanVisionBoardMsg msg, kSize rowIndex, kSize colIndex)
Gets the pixel value at a specified row and column in the board array.
kArray2 GoWebScanVisionBoardMsg_Data(GoWebScanVisionBoardMsg msg)
Gets the board data array.
Represents the attributes of a vision board message.
Definition: GoWebScanVisionBoardMsg.h:21
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanVisionBoardMsg.h:29
GoWebScanVisionBoardMsgAttr * GoWebScanVisionBoardMsg_Attributes(GoWebScanVisionBoardMsg msg)
Gets the attributes of a message.