GoWebScan API
GoWebScanCalMsg.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanCalMsg.h
3 * @brief Declares a GoWebScanCalMsg 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_CAL_MSG_H
11 #define GO_SCANNER_CAL_MSG_H
12 
14 
15 /**
16 * @struct GoWebScanCalMsgAttr
17 * @extends kValue
18 * @ingroup GoWebScanSdk-Messages
19 * @brief Represents the attributes of a calibration message
20 */
21 typedef struct GoWebScanCalMsgAttr
22 {
23  k64s deviceId; ///< Id of station device sending this message
24  GoWebScanCalStatus result; ///< Calibration result
25  k64s yReference; ///< Calibration y-reference for this system (mils).
26  k64s xReference; ///< Calibration x-reference for this system (mils).
28 
29 /**
30 * @struct GoWebScanCalMsgIssue
31 * @extends kValue
32 * @ingroup GoWebScanSdk-Messages
33 * @brief Represents an issue that occurred during calibration processing
34 */
35 typedef struct GoWebScanCalMsgIssue
36 {
37  GoWebScanSystemPlane groupId; ///< Group identifier (0-Top, 1-Bottom).
38  k64s columnId; ///< Camera location in group (index).
39  k64s deviceId; ///< Profile Sensor identifier (serial number).
40  k64s bankId; ///< Camera location in sensor (0-Left, 1-Right).
41  GoWebScanDataSource sourceType; ///< Data type (0-Profile, 1-Vision, 2-Tracheid).
42  k64s x0; ///< Left x-coordinate for this issue (mils).
43  k64s x1; ///< Right x-coordinate for this issue (mils).
44  GoWebScanCalActivity activity; ///< Calibration activity associated with issue.
45  GoWebScanCalNodeStatus status; ///< Calibration issue type.
47 
48 /**
49 * @class GoWebScanCalMsg
50 * @extends kObject
51 * @ingroup GoWebScanSdk-Messages
52 * @brief Represents a message containing issues that occurred during system calibration. Each issue is associated
53 * with a node in the system, a data source (profile, tracheid, or vision), and a stage of the calibration
54 * processing.
55 */
56 typedef kObject GoWebScanCalMsg;
57 
58 /**
59 * Constructs a GoWebScanCalMsg object.
60 *
61 * @public @memberof GoWebScanCalMsg
62 * @param msg Receives the constructed GoWebScanCalMsg object.
63 * @param issueCount Number of calibration issues to contain in this message
64 * @param allocator Memory allocator (or kNULL for default).
65 * @return Operation status.
66 */
67 GoWebScanFx(kStatus) GoWebScanCalMsg_Construct(GoWebScanCalMsg* msg, kSize issueCount, kAlloc allocator);
68 
69 /**
70 * Gets the attributes of a message.
71 *
72 * @public @memberof GoWebScanCalMsg
73 * @param msg GoWebScanCalMsg object.
74 * @return Message attributes.
75 */
77 
78 /**
79 * Gets the number of calibration issues in the message.
80 *
81 * @public @memberof GoWebScanCalMsg
82 * @param msg GoWebScanCalMsg object.
83 * @return Issue count.
84 */
86 
87 /**
88 * Gets the calibration issue at a specified index.
89 *
90 * @public @memberof GoWebScanCalMsg
91 * @param msg GoWebScanCalMsg object.
92 * @param index Index of issue.
93 * @return Calibration issue.
94 */
96 
97 #include <GoWebScanSdk/GoWebScanCalMsg.x.h>
98 
99 #endif
100 
GoWebScanCalMsgIssue * GoWebScanCalMsg_IssueAt(GoWebScanCalMsg msg, kSize index)
Gets the calibration issue at a specified index.
Represents an issue that occurred during calibration processing.
Definition: GoWebScanCalMsg.h:35
GoWebScanCalActivity activity
Calibration activity associated with issue.
Definition: GoWebScanCalMsg.h:44
Represents a type of error or warning that occurred during system calibration processing of a node...
Represents a type of sensor data.
GoWebScanCalMsgAttr * GoWebScanCalMsg_Attributes(GoWebScanCalMsg msg)
Gets the attributes of a message.
Represents a message containing issues that occurred during system calibration. Each issue is associa...
Essential GoWebScan declarations.
Represents a stage or activity in the system calibration processing pipeline.
kSize GoWebScanCalMsg_IssueCount(GoWebScanCalMsg msg)
Gets the number of calibration issues in the message.
k64s x1
Right x-coordinate for this issue (mils).
Definition: GoWebScanCalMsg.h:43
GoWebScanCalStatus result
Calibration result.
Definition: GoWebScanCalMsg.h:24
GoWebScanSystemPlane groupId
Group identifier (0-Top, 1-Bottom).
Definition: GoWebScanCalMsg.h:37
k64s yReference
Calibration y-reference for this system (mils).
Definition: GoWebScanCalMsg.h:25
k64s bankId
Camera location in sensor (0-Left, 1-Right).
Definition: GoWebScanCalMsg.h:40
Represents the top or bottom plane of the system.
GoWebScanDataSource sourceType
Data type (0-Profile, 1-Vision, 2-Tracheid).
Definition: GoWebScanCalMsg.h:41
k64s deviceId
Profile Sensor identifier (serial number).
Definition: GoWebScanCalMsg.h:39
k64s xReference
Calibration x-reference for this system (mils).
Definition: GoWebScanCalMsg.h:26
Represents the attributes of a calibration message.
Definition: GoWebScanCalMsg.h:21
Represents the status of calibration processing for the system.
kStatus GoWebScanCalMsg_Construct(GoWebScanCalMsg *msg, kSize issueCount, kAlloc allocator)
Constructs a GoWebScanCalMsg object.
k64s x0
Left x-coordinate for this issue (mils).
Definition: GoWebScanCalMsg.h:42
k64s deviceId
Id of station device sending this message.
Definition: GoWebScanCalMsg.h:23
GoWebScanCalNodeStatus status
Calibration issue type.
Definition: GoWebScanCalMsg.h:45
k64s columnId
Camera location in group (index).
Definition: GoWebScanCalMsg.h:38