GoWebScan API
GoWebScanProfileWebMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanProfileWebMsg.h
3 * @brief Declares a GoWebScanProfileWebMsg 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_WEB_MSG_H
11 #define GO_SCANNER_PROFILE_WEB_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanProfileWebMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a profile 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 GoWebScanProfileWebMsg
37 * @extends kObject
38 * @ingroup GoWebScanSdk-Messages
39 * @brief Represents a message containing a tile of resampled and merged geometric data for a
40 * given section.
41 */
43 
44 /**
45 * Constructs a GoWebScanProfileWebMsg msg.
46 *
47 * @public @memberof GoWebScanProfileWebMsg
48 * @param msg Receives the constructed GoWebScanProfileWebMsg 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) GoWebScanProfileWebMsg_Construct(GoWebScanProfileWebMsg* msg, kSize height, kSize width, kAlloc allocator);
55 
56 /**
57 * Resize a GoWebScanProfileWebMsg msg.
58 *
59 * @public @memberof GoWebScanProfileWebMsg
60 * @param msg GoWebScanProfileWebMsg 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 GoWebScanProfileWebMsg
71 * @param msg GoWebScanProfileWebMsg msg.
72 * @return Message height.
73 */
75 
76 /**
77 * Gets the width of a message.
78 *
79 * @public @memberof GoWebScanProfileWebMsg
80 * @param msg GoWebScanProfileWebMsg msg.
81 * @return Message width.
82 */
84 
85 /**
86 * Gets the attributes of a message.
87 *
88 * @public @memberof GoWebScanProfileWebMsg
89 * @param msg GoWebScanProfileWebMsg msg.
90 * @return Message attributes.
91 */
93 
94 /**
95 * Gets the inputs corresponding to each row of the tile.
96 *
97 * @public @memberof GoWebScanProfileWebMsg
98 * @param msg GoWebScanProfileWebMsg msg.
99 * @return Array of inputs. Type k64s.
100 */
102 
103 /**
104 * Gets the input at a specified row.
105 *
106 * @public @memberof GoWebScanProfileWebMsg
107 * @param msg GoWebScanProfileWebMsg msg.
108 * @param index Row index.
109 * @return Input at specified row.
110 */
112 
113 /**
114 * Gets the tile data array.
115 *
116 * @public @memberof GoWebScanProfileWebMsg
117 * @param msg GoWebScanProfileWebMsg msg.
118 * @return Message data array. Type k16s.
119 */
121 
122 /**
123 * Gets a pointer to the data value at a specified row and column index.
124 *
125 * @public @memberof GoWebScanProfileWebMsg
126 * @param msg GoWebScanProfileWebMsg msg.
127 * @param rowIndex Row index (Y-axis).
128 * @param colIndex Column index (X-axis).
129 * @return Pointer to value.
130 */
131 GoWebScanFx(k16s*) GoWebScanProfileWebMsg_DataAt(GoWebScanProfileWebMsg msg, kSize rowIndex, kSize colIndex);
132 
133 #include <GoWebScanSdk/GoWebScanProfileWebMsg.x.h>
134 
135 #endif
136 
kSize GoWebScanProfileWebMsg_Width(GoWebScanProfileWebMsg msg)
Gets the width of a message.
k64s groupId
Group identifier: Top (0), or Bottom (1)
Definition: GoWebScanProfileWebMsg.h:24
k64s sequenceIndex
Tile id; increases with each unique tile.
Definition: GoWebScanProfileWebMsg.h:26
kArray2 GoWebScanProfileWebMsg_Data(GoWebScanProfileWebMsg msg)
Gets the tile data array.
k64s timestamp
Capture time.
Definition: GoWebScanProfileWebMsg.h:27
k64s xResolution
Pixel width (mils)
Definition: GoWebScanProfileWebMsg.h:32
k64s sectionId
Section identifier (from GoWebScanSettings Section/Id)
Definition: GoWebScanProfileWebMsg.h:25
Represents the attributes of a profile web message.
Definition: GoWebScanProfileWebMsg.h:21
Essential GoWebScan declarations.
k64s yResolution
Pixel height (mils)
Definition: GoWebScanProfileWebMsg.h:31
kStatus GoWebScanProfileWebMsg_Realloc(GoWebScanProfileWebMsg msg, kSize height, kSize width)
Resize a GoWebScanProfileWebMsg msg.
k16s * GoWebScanProfileWebMsg_DataAt(GoWebScanProfileWebMsg msg, kSize rowIndex, kSize colIndex)
Gets a pointer to the data value at a specified row and column index.
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanProfileWebMsg.h:23
Represents a message containing a tile of resampled and merged geometric data for a given section...
k64s * GoWebScanProfileWebMsg_InputsAt(GoWebScanProfileWebMsg msg, kSize index)
Gets the input at a specified row.
GoWebScanProfileWebMsgAttr * GoWebScanProfileWebMsg_Attributes(GoWebScanProfileWebMsg msg)
Gets the attributes of a message.
kArray1 GoWebScanProfileWebMsg_Inputs(GoWebScanProfileWebMsg msg)
Gets the inputs corresponding to each row of the tile.
kStatus GoWebScanProfileWebMsg_Construct(GoWebScanProfileWebMsg *msg, kSize height, kSize width, kAlloc allocator)
Constructs a GoWebScanProfileWebMsg msg.
k64s yOrigin
Section y-location (mils)
Definition: GoWebScanProfileWebMsg.h:29
k64s xOrigin
Section x-location (from GoWebScanSettings Section/X0)
Definition: GoWebScanProfileWebMsg.h:30
kSize GoWebScanProfileWebMsg_Height(GoWebScanProfileWebMsg msg)
Gets the height of a message.
k64s encoder
Capture position (encoder ticks)
Definition: GoWebScanProfileWebMsg.h:28