GoWebScan API
GoWebScanCalTarget.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanCalTarget.h
3 * @brief Declares a GoWebScanCalTarget 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_TARGET_H
12 #define GO_WEB_SCAN_CAL_TARGET_H
13 
15 #include <kApi/Data/kXml.h>
16 
17 /**
18 * @class GoWebScanCalTarget
19 * @extends kObject
20 * @ingroup GoWebScanSdk-Calibration
21 * @brief Represents a container for user-specified dimensions of the calibration target which
22 * are used during system calibration processing. The dimensions are stored as an XML file.
23 * @see GoWebScanCal, GoWebScanCalProcessor, GoWebScanCalProcessorNode
24 */
26 
27 /**
28  * Constructs a GoWebScanCalTarget object.
29  *
30  * @public @memberof GoWebScanCalTarget
31  * @param target Receives the constructed GoWebScanCalTarget object.
32  * @param allocator Memory allocator (or kNULL for default).
33  * @return Operation status.
34  */
35 GoWebScanFx(kStatus) GoWebScanCalTarget_Construct(GoWebScanCalTarget* target, kAlloc allocator);
36 
37 /**
38  * Constructs and loads a GoWebScanCalTarget object from a saved XML file.
39  *
40  * @public @memberof GoWebScanCalTarget
41  * @param target Receives the constructed GoWebScanCalTarget object.
42  * @param fileName Filename (including path). Expected to be an XML file.
43  * @param alloc Memory allocator (or kNULL for default).
44  * @return Operation status.
45  */
46 GoWebScanFx(kStatus) GoWebScanCalTarget_Load(GoWebScanCalTarget* target, const kChar* fileName, kAlloc alloc);
47 
48 /**
49  * Writes and stores a GoWebScanCalTarget object to a XML file.
50  *
51  * @public @memberof GoWebScanCalTarget
52  * @param target GoWebScanCalTarget object.
53  * @param fileName Filename (including path). Expected to be an XML file. If the file does
54  * not exist, it will be created.
55  * @return Operation status.
56  */
57 GoWebScanFx(kStatus) GoWebScanCalTarget_Store(GoWebScanCalTarget target, const kChar* fileName);
58 
59 /**
60  * Sets the width of the calibration target in mils. If not set, a default width of 4000 mils
61  * is set.
62  *
63  * @public @memberof GoWebScanCalTarget
64  * @param target GoWebScanCalTarget object.
65  * @param width Target width (mils).
66  * @return Operation status.
67  */
68 GoWebScanFx(kStatus) GoWebScanCalTarget_SetWidth(GoWebScanCalTarget target, kSize width);
69 
70 /**
71 * Gets the width of the calibration target in mils.
72 *
73 * @public @memberof GoWebScanCalTarget
74 * @param target GoWebScanCalTarget object.
75 * @return Target width (mils).
76 */
78 
79 /**
80 * Sets the height of the calibration target in mils. If not set, a default width of 2000 mils
81 * is set.
82 *
83 * @public @memberof GoWebScanCalTarget
84 * @param target GoWebScanCalTarget object.
85 * @param height Target height (mils).
86 * @return Operation status.
87 */
88 GoWebScanFx(kStatus) GoWebScanCalTarget_SetHeight(GoWebScanCalTarget target, kSize height);
89 
90 /**
91 * Gets the height of the calibration target in mils.
92 *
93 * @public @memberof GoWebScanCalTarget
94 * @param target GoWebScanCalTarget object.
95 * @return Target height (mils).
96 */
98 
99 #include <GoWebScanSdk/GoWebScanCalTarget.x.h>
100 
101 #endif
kStatus GoWebScanCalTarget_Construct(GoWebScanCalTarget *target, kAlloc allocator)
Constructs a GoWebScanCalTarget object.
Essential GoWebScan declarations.
kStatus GoWebScanCalTarget_SetHeight(GoWebScanCalTarget target, kSize height)
Sets the height of the calibration target in mils.
kStatus GoWebScanCalTarget_SetWidth(GoWebScanCalTarget target, kSize width)
Sets the width of the calibration target in mils.
kSize GoWebScanCalTarget_Height(GoWebScanCalTarget target)
Gets the height of the calibration target in mils.
kStatus GoWebScanCalTarget_Store(GoWebScanCalTarget target, const kChar *fileName)
Writes and stores a GoWebScanCalTarget object to a XML file.
kStatus GoWebScanCalTarget_Load(GoWebScanCalTarget *target, const kChar *fileName, kAlloc alloc)
Constructs and loads a GoWebScanCalTarget object from a saved XML file.
kSize GoWebScanCalTarget_Width(GoWebScanCalTarget target)
Gets the width of the calibration target in mils.
Represents a container for user-specified dimensions of the calibration target which are used during ...