GoWebScan API
GoWebScanVisionWebMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanVisionWebMsg.h
3 * @brief Declares a GoWebScanVisionWebMsg 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_WEB_MSG_H
11 #define GO_SCANNER_VISION_WEB_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanVisionWebMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a vision 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 GoWebScanVisionWebMsg
37 * @extends kObject
38 * @ingroup GoWebScanSdk-Messages
39 * @brief Represents a message containing a tile of resampled and merged demosaiced vision
40 * data for a given section.
41 */
43 
44 /**
45 * Constructs a GoWebScanVisionWebMsg msg.
46 *
47 * @public @memberof GoWebScanVisionWebMsg
48 * @param msg Receives the constructed GoWebScanVisionWebMsg msg.
49 * @param pixelType Pixel type of the tile data array contained in the message.
50 * @param height Height of the tile data array contained in the message.
51 * @param width Width of the tile data array contained in the message.
52 * @param allocator Memory allocator (or kNULL for default).
53 * @return Operation status.
54 */
55 GoWebScanFx(kStatus) GoWebScanVisionWebMsg_Construct(GoWebScanVisionWebMsg* msg, kType pixelType, kSize height, kSize width, kAlloc allocator);
56 
57 /**
58 * Resize a GoWebScanVisionWebMsg msg.
59 *
60 * @public @memberof GoWebScanVisionWebMsg
61 * @param msg GoWebScanVisionWebMsg msg.
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 GoWebScanVisionWebMsg
72 * @param msg GoWebScanVisionWebMsg msg.
73 * @return Message height.
74 */
76 
77 /**
78 * Gets the width of a message.
79 *
80 * @public @memberof GoWebScanVisionWebMsg
81 * @param msg GoWebScanVisionWebMsg msg.
82 * @return Message width.
83 */
85 
86 /**
87 * Gets the pixel type of a message.
88 *
89 * @public @memberof GoWebScanVisionWebMsg
90 * @param msg GoWebScanVisionWebMsg msg.
91 * @return Message pixel type.
92 */
94 
95 /**
96 * Gets the attributes of a message.
97 *
98 * @public @memberof GoWebScanVisionWebMsg
99 * @param msg GoWebScanVisionWebMsg msg.
100 * @return Message attributes.
101 */
103 
104 /**
105 * Gets the inputs corresponding to each row of the tile.
106 *
107 * @public @memberof GoWebScanVisionWebMsg
108 * @param msg GoWebScanVisionWebMsg msg.
109 * @return Array of inputs. Type k64s.
110 */
112 
113 /**
114 * Gets the input at a specified row.
115 *
116 * @public @memberof GoWebScanVisionWebMsg
117 * @param msg GoWebScanVisionWebMsg msg.
118 * @param index Row index.
119 * @return Input at specified row.
120 */
122 
123 /**
124 * Gets the tile data array.
125 *
126 * @public @memberof GoWebScanVisionWebMsg
127 * @param msg GoWebScanVisionWebMsg msg.
128 * @return Message data array. Type pixelType used to construct message.
129 */
131 
132 /**
133 * Gets a pointer to the data value at a specified row and column index.
134 *
135 * @public @memberof GoWebScanVisionWebMsg
136 * @param msg GoWebScanVisionWebMsg msg.
137 * @param rowIndex Row index (Y-axis).
138 * @param colIndex Column index (X-axis).
139 * @return Pointer to value. Can be cast into pixelType used to construct message.
140 */
141 GoWebScanFx(kPointer) GoWebScanVisionWebMsg_DataAt(GoWebScanVisionWebMsg msg, kSize rowIndex, kSize colIndex);
142 
143 #include <GoWebScanSdk/GoWebScanVisionWebMsg.x.h>
144 
145 #endif
146 
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanVisionWebMsg.h:28
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanVisionWebMsg.h:30
kType GoWebScanVisionWebMsg_PixelType(GoWebScanVisionWebMsg msg)
Gets the pixel type of a message.
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanVisionWebMsg.h:29
kSize GoWebScanVisionWebMsg_Height(GoWebScanVisionWebMsg msg)
Gets the height of a message.
kStatus GoWebScanVisionWebMsg_Realloc(GoWebScanVisionWebMsg msg, kSize height, kSize width)
Resize a GoWebScanVisionWebMsg msg.
Essential GoWebScan declarations.
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanVisionWebMsg.h:25
k64s yResolution
Pixel height (mils)
Definition: GoWebScanVisionWebMsg.h:31
GoWebScanVisionWebMsgAttr * GoWebScanVisionWebMsg_Attributes(GoWebScanVisionWebMsg msg)
Gets the attributes of a message.
kPointer GoWebScanVisionWebMsg_DataAt(GoWebScanVisionWebMsg msg, kSize rowIndex, kSize colIndex)
Gets a pointer to the data value at a specified row and column index.
k64s xResolution
Pixel width (mils)
Definition: GoWebScanVisionWebMsg.h:32
k64s sequenceIndex
Tile id; increases with each unique tile.
Definition: GoWebScanVisionWebMsg.h:26
kStatus GoWebScanVisionWebMsg_Construct(GoWebScanVisionWebMsg *msg, kType pixelType, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanVisionWebMsg msg.
kSize GoWebScanVisionWebMsg_Width(GoWebScanVisionWebMsg msg)
Gets the width of a message.
kArray1 GoWebScanVisionWebMsg_Inputs(GoWebScanVisionWebMsg msg)
Gets the inputs corresponding to each row of the tile.
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanVisionWebMsg.h:23
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanVisionWebMsg.h:24
Represents a message containing a tile of resampled and merged demosaiced vision data for a given sec...
k64s timestamp
Capture time.
Definition: GoWebScanVisionWebMsg.h:27
kArray2 GoWebScanVisionWebMsg_Data(GoWebScanVisionWebMsg msg)
Gets the tile data array.
Represents the attributes of a vision web message.
Definition: GoWebScanVisionWebMsg.h:21
k64s * GoWebScanVisionWebMsg_InputsAt(GoWebScanVisionWebMsg msg, kSize index)
Gets the input at a specified row.