GoWebScan API
GoWebScanCalInputItem.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanCalInputItem.h
3 * @brief Declares a GoWebScanCalInputItem 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 
11 #ifndef GO_WEB_SCAN_CAL_INPUT_ITEM_H
12 #define GO_WEB_SCAN_CAL_INPUT_ITEM_H
13 
15 
16 /**
17 * @struct GoWebScanCalInputStamp
18 * @extends kValue
19 * @ingroup GoWebScanSdk-Calibration
20 * @brief Represents a stamp containing properties of the input message.
21 */
22 typedef struct GoWebScanCalInputStamp
23 {
24  GoWebScanDataSource source; ///< Data source of message.
25  GoWebScanSystemPlane plane; ///< System plane of message.
26  k32s column; ///< Node column index.
27  k32s deviceId; ///< Sensor ID. Profile ID for vision systems.
28  k32s bankId; ///< Bank index.
29  k64s position; ///< Y-axis position (mils).
30  k64s timeStamp; ///< Timestamp of message (internal units approximating microseconds). See GoStamp.
31  k64s frame; ///< Frame index.
32  k64s encoder; ///< Encoder value (ticks).
34  /**<
35  * Bit mask containing frame information:
36  *
37  * - Bit 0: Represents sensor digital input state.
38  * - Bit 4: Represents Master digital input state.
39  * - Bits 8 and 9: Represents inter-frame digital pulse trigger
40  (Master digital input if a Master is connected, otherwise
41  sensor digital input. Value is cleared after each frame
42  and clamped at 3 if more than 3 pulses are received).
43  */
44  k32u xResolution; ///< x-resolution (nm)
45  k32u zResolution; ///< z-resolution (nm)
46  k32s xOffset; ///< x-offset (um)
47  k32s zOffset; ///< z-offset (um)
49 
50 /**
51 * @class GoWebScanCalInputItem
52 * @extends kObject
53 * @ingroup GoWebScanSdk-Calibration
54 * @brief Represents a raw sensor message used for calibration collection
55 * and processing.
56 */
58 
59 /**
60  * Constructs a GoWebScanCalInputItem object.
61  *
62  * @public @memberof GoWebScanCalInputItem
63  * @param item Receives the constructed GoWebScanCalInputItem object.
64  * @param allocator Memory allocator (or kNULL for default).
65  * @return Operation status.
66  */
68 
69 /**
70  * Clones a GoWebScanCalInputItem object.
71  *
72  * @public @memberof GoWebScanCalInputItem
73  * @param item GoWebScanCalInputItem object.
74  * @param clone Receives the constructed cloned GoWebScanCalInputItem object.
75  * @return Operation status.
76  */
78 
79 /**
80  * Sets the stamp for an input item.
81  *
82  * @public @memberof GoWebScanCalInputItem
83  * @param item GoWebScanCalInputItem object.
84  * @param stamp Stamp of input item.
85  * @return Operation status.
86  */
88 
89 /**
90 * Gets a pointer to the stamp for an input item.
91 *
92 * @public @memberof GoWebScanCalInputItem
93 * @param item GoWebScanCalInputItem object.
94 * @return Pointer to stamp of input item.
95 */
97 
98 /**
99  * Adds data to an input item. The class takes ownership of the data object.
100  *
101  * @public @memberof GoWebScanCalInputItem
102  * @param item GoWebScanCalInputItem object.
103  * @param data Message data.
104  * @return Operation status.
105  */
107 
108 /**
109 * Gets data of an input item. The class continues to own the data object.
110 *
111 * @public @memberof GoWebScanCalInputItem
112 * @param item GoWebScanCalInputItem object.
113 * @return Message data.
114 */
116 
117 #include <GoWebScanSdk/GoWebScanCalInputItem.x.h>
118 
119 #endif
k64s frame
Frame index.
Definition: GoWebScanCalInputItem.h:31
kStatus GoWebScanCalInputItem_Clone(GoWebScanCalInputItem item, GoWebScanCalInputItem *clone)
Clones a GoWebScanCalInputItem object.
kStatus GoWebScanCalInputItem_Construct(GoWebScanCalInputItem *item, kAlloc allocator)
Constructs a GoWebScanCalInputItem object.
k32s bankId
Bank index.
Definition: GoWebScanCalInputItem.h:28
kObject GoWebScanCalInputItem_Data(GoWebScanCalInputItem item)
Gets data of an input item.
GoWebScanSystemPlane plane
System plane of message.
Definition: GoWebScanCalInputItem.h:25
GoWebScanCalInputStamp * GoWebScanCalInputItem_GetStamp(GoWebScanCalInputItem item)
Gets a pointer to the stamp for an input item.
Represents a type of sensor data.
k32u xResolution
x-resolution (nm)
Definition: GoWebScanCalInputItem.h:44
Essential GoWebScan declarations.
GoWebScanDataSource source
Data source of message.
Definition: GoWebScanCalInputItem.h:24
k64s timeStamp
Timestamp of message (internal units approximating microseconds). See GoStamp.
Definition: GoWebScanCalInputItem.h:30
k32s deviceId
Sensor ID. Profile ID for vision systems.
Definition: GoWebScanCalInputItem.h:27
Represents a raw sensor message used for calibration collection and processing.
k64u status
Bit mask containing frame information:
Definition: GoWebScanCalInputItem.h:33
kStatus GoWebScanCalInputItem_SetStamp(GoWebScanCalInputItem item, GoWebScanCalInputStamp *stamp)
Sets the stamp for an input item.
k32s column
Node column index.
Definition: GoWebScanCalInputItem.h:26
k32s xOffset
x-offset (um)
Definition: GoWebScanCalInputItem.h:46
k64s encoder
Encoder value (ticks).
Definition: GoWebScanCalInputItem.h:32
Represents a stamp containing properties of the input message.
Definition: GoWebScanCalInputItem.h:22
k32u zResolution
z-resolution (nm)
Definition: GoWebScanCalInputItem.h:45
k32s zOffset
z-offset (um)
Definition: GoWebScanCalInputItem.h:47
Represents the top or bottom plane of the system.
kStatus GoWebScanCalInputItem_SetData(GoWebScanCalInputItem item, kObject data)
Adds data to an input item.
k64s position
Y-axis position (mils).
Definition: GoWebScanCalInputItem.h:29