GoWebScan API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
GoWebScanCalCollector.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanCalCollector.h
3 * @brief Declares a GoWebScanCalCollector object.
4 *
5 * @internal
6 * Copyright (C) 2017-2021 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_COLLECTOR_H
12 #define GO_WEB_SCAN_CAL_COLLECTOR_H
13 
14 
18 #include <GoSdk/GoSdk.h>
19 
20 /**
21 * @class GoWebScanCalCollector
22 * @extends kObject
23 * @ingroup GoWebScanSdk-Calibration
24 * @brief Represents a task to coordinate collection of sensor messages, matching of messages in Y to
25 * produce system tiles, and detection of the calibration bar during system calibration. Sensor
26 * messages should be given to this class until the class has determined the calibration bar
27 * has been detected. At that point, a calibration input dataset is generated which contains
28 * system tiles containing the calibration bar, and this datset can be provided to the
29 * calibration processor (GoWebScanCalProcessor). The class coordinates combining messages
30 * to form Y-matched tiles via the GoWebScanCalCombiner algorithm, and detects the bar
31 * via the GoWebScanCalDetector algorithm.
32 * @see GoWebScanCalProcessor, GoWebScanCalCombiner, GoWebScanCalDetector
33 */
35 
36 /**
37  * Constructs a GoWebScanCalCollector object.
38  *
39  * @public @memberof GoWebScanCalCollector
40  * @param collector Receives the constructed GoWebScanCalCollector object.
41  * @param config System configuration.
42  * @param allocator Memory allocator (or kNULL for default).
43  * @return Operation status.
44  */
45 GoWebScanFx(kStatus) GoWebScanCalCollector_Construct(GoWebScanCalCollector* collector, GoWebScanConfig config, kAlloc allocator);
46 
47 /**
48  * Adds a sensor message to the collector. The messages are cloned into internal message
49  * objects. As such, the GoDataSet object is still owned by the calling function and must be
50  * destroyed by it.
51  *
52  * @public @memberof GoWebScanCalCollector
53  * @param collector GoWebScanCalCollector object.
54  * @param dataSet Input sensor message.
55  * @return Operation status.
56  */
58 
59 /**
60  * Gets a flag for whether the calibration collector has completed collection of sensor messages.
61  *
62  * @public @memberof GoWebScanCalCollector
63  * @param collector GoWebScanCalCollector object.
64  * @return Flag representing whether collection completed.
65  */
67 
68 /**
69 * Gets a flag for whether the calibration collector had any errors during collection.
70 *
71 * @public @memberof GoWebScanCalCollector
72 * @param collector GoWebScanCalCollector object.
73 * @return Flag representing whether any errors are present.
74 */
76 
77 /**
78  * Gets a pointer to the calibration input file that can be provided to the calibration
79  * processor for processing. Ownership of the calibration input is transferred to the calling
80  * function.
81  *
82  * @public @memberof GoWebScanCalCollector
83  * @param collector GoWebScanCalCollector object.
84  * @param data Receives the constructed GoWebScanCalInput object.
85  * @return Operation status.
86  */
88 
89 #include <GoWebScanSdk/GoWebScanCalCollector.x.h>
90 
91 #endif
Represents a task to coordinate collection of sensor messages, matching of messages in Y to produce s...
Declares a GoWebScanCalInput object.
kStatus GoWebScanCalCollector_GetProcessorData(GoWebScanCalCollector collector, GoWebScanCalInput *data)
Gets a pointer to the calibration input file that can be provided to the calibration processor for pr...
Essential GoWebScan declarations.
Represents Y-matched system data containing a calibration bar, used for calibration processing...
kBool GoWebScanCalCollector_HasErrors(GoWebScanCalCollector collector)
Gets a flag for whether the calibration collector had any errors during collection.
kStatus GoWebScanCalCollector_Construct(GoWebScanCalCollector *collector, GoWebScanConfig config, kAlloc allocator)
Constructs a GoWebScanCalCollector object.
kStatus GoWebScanCalCollector_AddMsg(GoWebScanCalCollector collector, GoDataSet dataSet)
Adds a sensor message to the collector.
kBool GoWebScanCalCollector_IsCompleted(GoWebScanCalCollector collector)
Gets a flag for whether the calibration collector has completed collection of sensor messages...
Represents a container for system-level parameters which are translated from user parameters set in G...
Declares a GoWebScanConfig object.