ilabs-flir 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Flir.podspec +31 -31
- package/README.md +1271 -1271
- package/android/Flir/build.gradle.kts +85 -80
- package/android/Flir/libs/flir-stubs.jar +0 -0
- package/android/Flir/src/main/AndroidManifest.xml +31 -31
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCode.java +13 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ThermalSdkAndroid.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/androidsdk/image/BitmapAndroid.java +20 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Camera.java +26 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/ConnectParameters.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/RemoteControl.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryEventListener.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryFactory.java +33 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/Stream.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/ThermalStreamer.java +28 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/VisualStreamer.java +18 -0
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -0
- package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +76 -75
- package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
- package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
- package/android/Flir/src/main/java/flir/android/FlirManager.kt +477 -248
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -19
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +165 -117
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +1511 -0
- package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
- package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
- package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
- package/app.plugin.js +264 -264
- package/expo-module.config.json +5 -5
- package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
- package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
- package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
- package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
- package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
- package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
- package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
- package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
- package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
- package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
- package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
- package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
- package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
- package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
- package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
- package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
- package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
- package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
- package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
- package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
- package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
- package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
- package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
- package/ios/Flir/src/FlirEventEmitter.h +12 -12
- package/ios/Flir/src/FlirEventEmitter.m +33 -33
- package/ios/Flir/src/FlirModule.h +10 -10
- package/ios/Flir/src/FlirModule.m +381 -381
- package/ios/Flir/src/FlirPreviewView.h +13 -13
- package/ios/Flir/src/FlirPreviewView.m +24 -24
- package/ios/Flir/src/FlirState.h +20 -20
- package/ios/Flir/src/FlirState.m +79 -79
- package/ios/Flir/src/FlirViewManager.h +9 -9
- package/ios/Flir/src/FlirViewManager.m +16 -16
- package/package.json +60 -60
- package/react-native.config.js +14 -14
- package/scripts/copy_ios_libs.sh +32 -32
- package/scripts/create_stubs.py +174 -174
- package/scripts/download-sdk.js +62 -62
- package/scripts/prepare-binaries.sh +171 -171
- package/sdk-manifest.json +37 -30
- package/src/FlirDownload.ts +78 -78
- package/src/index.d.ts +17 -17
- package/src/index.js +7 -7
- package/src/index.ts +7 -7
- package/android/Flir/src/main/java/flir/android/CameraHandler.java +0 -194
- package/android/Flir/src/main/java/flir/android/FlirController.kt +0 -11
- package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +0 -14
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRMeasurementsController.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2020-07-02.
|
|
6
|
-
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@class FLIRThermalValue;
|
|
12
|
-
|
|
13
|
-
/** abstract class for remote measurement shape, either a point (spot), a circle, a rectangle or a line */
|
|
14
|
-
@interface FLIRRemoteShape : NSObject
|
|
15
|
-
|
|
16
|
-
@end
|
|
17
|
-
|
|
18
|
-
/** Flags for calculations done on measurement areas. */
|
|
19
|
-
typedef NS_OPTIONS(NSUInteger, FLIRCalcMask) {
|
|
20
|
-
/// Single value temperature/signal, e.g. a spot value
|
|
21
|
-
CM_temp = 1 << 1,
|
|
22
|
-
/// Maximum temperature/signal, e.g a area max value
|
|
23
|
-
CM_max = 1 << 2,
|
|
24
|
-
/// Position of maximum temperature
|
|
25
|
-
CM_maxpos = 1 << 3,
|
|
26
|
-
/// Minimum temperature/signal
|
|
27
|
-
CM_min = 1 << 4,
|
|
28
|
-
/// Position of minimum temperature
|
|
29
|
-
CM_minpos = 1 << 5,
|
|
30
|
-
/// Average temperature/signal
|
|
31
|
-
CM_avg = 1 << 6,
|
|
32
|
-
/// Standard deviation temperature/signal
|
|
33
|
-
CM_sdev = 1 << 7,
|
|
34
|
-
/// Median temperature/signal
|
|
35
|
-
CM_median = 1 << 8,
|
|
36
|
-
/// Isotherm coloring or coverage depending on function
|
|
37
|
-
CM_iso = 1 << 10,
|
|
38
|
-
/// Dimension of bounded object, e.g area of box
|
|
39
|
-
CM_dimension = 1 << 13,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** abstract class for remote measurement marker, either a rectangle, a circle or a line */
|
|
43
|
-
@interface FLIRRemoteMarker : FLIRRemoteShape
|
|
44
|
-
|
|
45
|
-
/** get the position of the hottest spot */
|
|
46
|
-
- (CGPoint)getHotSpotPosition;
|
|
47
|
-
/** get the position of the coldest spot */
|
|
48
|
-
- (CGPoint)getColdSpotPosition;
|
|
49
|
-
/** get the thermal value of the hottest spot */
|
|
50
|
-
- (FLIRThermalValue* _Nullable)getHotSpotTemperature;
|
|
51
|
-
/** get the thermal value of the coldest spot */
|
|
52
|
-
- (FLIRThermalValue* _Nullable)getColdSpotTemperature;
|
|
53
|
-
/** get the average thermal value */
|
|
54
|
-
- (FLIRThermalValue* _Nullable)getAverageTemperature;
|
|
55
|
-
/** is the markers active */
|
|
56
|
-
- (BOOL)isMarkersActive;
|
|
57
|
-
/** set marker active (YES) or inactive (NO) */
|
|
58
|
-
- (BOOL)setIsMarkersActive: (BOOL)active error:(out NSError * _Nullable *_Nullable)error;
|
|
59
|
-
|
|
60
|
-
/** get the calcmask for the marker */
|
|
61
|
-
- (FLIRCalcMask)getCalcMask;
|
|
62
|
-
/** set the calcmask for the marker */
|
|
63
|
-
- (BOOL)setCalcMask:(FLIRCalcMask)calcMask error:(out NSError * _Nullable * _Nullable)error;
|
|
64
|
-
@end
|
|
65
|
-
|
|
66
|
-
/** a circular measurement area */
|
|
67
|
-
@interface FLIRRemoteCircle : FLIRRemoteMarker
|
|
68
|
-
|
|
69
|
-
/** get the center of the circle */
|
|
70
|
-
- (CGPoint)getPosition;
|
|
71
|
-
/** get radius of the circle */
|
|
72
|
-
- (int)getRadius;
|
|
73
|
-
/** set the center and radius of the circle */
|
|
74
|
-
- (BOOL)setPosition: (CGPoint)center radius: (int)radius error: (out NSError * _Nullable *_Nullable)error;
|
|
75
|
-
|
|
76
|
-
@end
|
|
77
|
-
|
|
78
|
-
/** a rectangular measurement area */
|
|
79
|
-
@interface FLIRRemoteRect : FLIRRemoteMarker
|
|
80
|
-
|
|
81
|
-
/** get the measurement rectangle */
|
|
82
|
-
- (CGRect)getRect;
|
|
83
|
-
/** set the measurement rectangle */
|
|
84
|
-
- (BOOL)setRect: (CGRect)rect error: (out NSError * _Nullable *_Nullable)error;
|
|
85
|
-
|
|
86
|
-
@end
|
|
87
|
-
|
|
88
|
-
/** a horizontal or vertical measurement line */
|
|
89
|
-
@interface FLIRRemoteLine : FLIRRemoteMarker
|
|
90
|
-
|
|
91
|
-
/** get the x-coordinate (if vertical) or y-coordinate (if horizontal) of the line */
|
|
92
|
-
- (int)getCoordinate;
|
|
93
|
-
/** get whether the line is horizontal (true) or vertical (false) */
|
|
94
|
-
- (BOOL)getHorizontal;
|
|
95
|
-
/** set the x-coordinate (if horizontal) or y-coordinate (if vertical) of the line and orientation */
|
|
96
|
-
- (BOOL)setCoordinate: (int)coordinate horizontal: (BOOL)horizontal error: (out NSError * _Nullable *_Nullable)error;
|
|
97
|
-
|
|
98
|
-
@end
|
|
99
|
-
|
|
100
|
-
/** a measurement point */
|
|
101
|
-
@interface FLIRRemoteSpot : FLIRRemoteShape
|
|
102
|
-
|
|
103
|
-
/** get the position of the measurement point */
|
|
104
|
-
- (CGPoint)getPosition;
|
|
105
|
-
/** set the position of the measurement point */
|
|
106
|
-
- (BOOL)setPosition: (CGPoint)position error: (out NSError * _Nullable *_Nullable)error;
|
|
107
|
-
/** the thermal value at the measurement point */
|
|
108
|
-
- (FLIRThermalValue* _Nullable) getValue;
|
|
109
|
-
|
|
110
|
-
@end
|
|
111
|
-
|
|
112
|
-
/** remote measurements */
|
|
113
|
-
@interface FLIRMeasurementsController : NSObject
|
|
114
|
-
|
|
115
|
-
/** add a measurement point */
|
|
116
|
-
- (FLIRRemoteSpot * _Nullable)addSpot:(CGPoint)point
|
|
117
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
118
|
-
/** add a circular measurement area */
|
|
119
|
-
- (FLIRRemoteCircle * _Nullable)addCircle: (CGPoint)position
|
|
120
|
-
radius: (int)radius
|
|
121
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
122
|
-
|
|
123
|
-
/** add a rectangular measurement area */
|
|
124
|
-
- (FLIRRemoteRect * _Nullable)addRectangle: (CGRect)rect
|
|
125
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
126
|
-
|
|
127
|
-
/** add a measurement line
|
|
128
|
-
*
|
|
129
|
-
* @param y y position of the line
|
|
130
|
-
* @return FLIRRemoteLine
|
|
131
|
-
*/
|
|
132
|
-
- (FLIRRemoteLine * _Nullable)addHorizontalLine:(int)y
|
|
133
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
134
|
-
|
|
135
|
-
/** add a measurement line
|
|
136
|
-
*
|
|
137
|
-
* @param x x position of the line
|
|
138
|
-
* @return FLIRRemoteLine
|
|
139
|
-
*/
|
|
140
|
-
- (FLIRRemoteLine * _Nullable)addVerticalLine:(int)x
|
|
141
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
142
|
-
|
|
143
|
-
/** remove a previously added measurement shape
|
|
144
|
-
*
|
|
145
|
-
* @param shape The measurement shape (line, spot, rectangle or circle)
|
|
146
|
-
* @return true if shape removed (i.e. the shape was in the collection)
|
|
147
|
-
*/
|
|
148
|
-
- (BOOL)remove:(FLIRRemoteShape * _Nonnull)shape
|
|
149
|
-
error:(out NSError * _Nullable * _Nullable)error;
|
|
150
|
-
|
|
151
|
-
/** get all measument points */
|
|
152
|
-
- (NSArray<FLIRRemoteSpot *> * _Nullable) getSpots;
|
|
153
|
-
/** get all measument rectangles */
|
|
154
|
-
- (NSArray<FLIRRemoteRect *> * _Nullable) getRects;
|
|
155
|
-
/** get all measument circles */
|
|
156
|
-
- (NSArray<FLIRRemoteCircle *> * _Nullable) getCircles;
|
|
157
|
-
/** get all measument lines */
|
|
158
|
-
- (NSArray<FLIRRemoteLine *> * _Nullable) getLines;
|
|
159
|
-
|
|
160
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRMeasurementsController.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2020-07-02.
|
|
6
|
+
// Copyright © 2020 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
@class FLIRThermalValue;
|
|
12
|
+
|
|
13
|
+
/** abstract class for remote measurement shape, either a point (spot), a circle, a rectangle or a line */
|
|
14
|
+
@interface FLIRRemoteShape : NSObject
|
|
15
|
+
|
|
16
|
+
@end
|
|
17
|
+
|
|
18
|
+
/** Flags for calculations done on measurement areas. */
|
|
19
|
+
typedef NS_OPTIONS(NSUInteger, FLIRCalcMask) {
|
|
20
|
+
/// Single value temperature/signal, e.g. a spot value
|
|
21
|
+
CM_temp = 1 << 1,
|
|
22
|
+
/// Maximum temperature/signal, e.g a area max value
|
|
23
|
+
CM_max = 1 << 2,
|
|
24
|
+
/// Position of maximum temperature
|
|
25
|
+
CM_maxpos = 1 << 3,
|
|
26
|
+
/// Minimum temperature/signal
|
|
27
|
+
CM_min = 1 << 4,
|
|
28
|
+
/// Position of minimum temperature
|
|
29
|
+
CM_minpos = 1 << 5,
|
|
30
|
+
/// Average temperature/signal
|
|
31
|
+
CM_avg = 1 << 6,
|
|
32
|
+
/// Standard deviation temperature/signal
|
|
33
|
+
CM_sdev = 1 << 7,
|
|
34
|
+
/// Median temperature/signal
|
|
35
|
+
CM_median = 1 << 8,
|
|
36
|
+
/// Isotherm coloring or coverage depending on function
|
|
37
|
+
CM_iso = 1 << 10,
|
|
38
|
+
/// Dimension of bounded object, e.g area of box
|
|
39
|
+
CM_dimension = 1 << 13,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** abstract class for remote measurement marker, either a rectangle, a circle or a line */
|
|
43
|
+
@interface FLIRRemoteMarker : FLIRRemoteShape
|
|
44
|
+
|
|
45
|
+
/** get the position of the hottest spot */
|
|
46
|
+
- (CGPoint)getHotSpotPosition;
|
|
47
|
+
/** get the position of the coldest spot */
|
|
48
|
+
- (CGPoint)getColdSpotPosition;
|
|
49
|
+
/** get the thermal value of the hottest spot */
|
|
50
|
+
- (FLIRThermalValue* _Nullable)getHotSpotTemperature;
|
|
51
|
+
/** get the thermal value of the coldest spot */
|
|
52
|
+
- (FLIRThermalValue* _Nullable)getColdSpotTemperature;
|
|
53
|
+
/** get the average thermal value */
|
|
54
|
+
- (FLIRThermalValue* _Nullable)getAverageTemperature;
|
|
55
|
+
/** is the markers active */
|
|
56
|
+
- (BOOL)isMarkersActive;
|
|
57
|
+
/** set marker active (YES) or inactive (NO) */
|
|
58
|
+
- (BOOL)setIsMarkersActive: (BOOL)active error:(out NSError * _Nullable *_Nullable)error;
|
|
59
|
+
|
|
60
|
+
/** get the calcmask for the marker */
|
|
61
|
+
- (FLIRCalcMask)getCalcMask;
|
|
62
|
+
/** set the calcmask for the marker */
|
|
63
|
+
- (BOOL)setCalcMask:(FLIRCalcMask)calcMask error:(out NSError * _Nullable * _Nullable)error;
|
|
64
|
+
@end
|
|
65
|
+
|
|
66
|
+
/** a circular measurement area */
|
|
67
|
+
@interface FLIRRemoteCircle : FLIRRemoteMarker
|
|
68
|
+
|
|
69
|
+
/** get the center of the circle */
|
|
70
|
+
- (CGPoint)getPosition;
|
|
71
|
+
/** get radius of the circle */
|
|
72
|
+
- (int)getRadius;
|
|
73
|
+
/** set the center and radius of the circle */
|
|
74
|
+
- (BOOL)setPosition: (CGPoint)center radius: (int)radius error: (out NSError * _Nullable *_Nullable)error;
|
|
75
|
+
|
|
76
|
+
@end
|
|
77
|
+
|
|
78
|
+
/** a rectangular measurement area */
|
|
79
|
+
@interface FLIRRemoteRect : FLIRRemoteMarker
|
|
80
|
+
|
|
81
|
+
/** get the measurement rectangle */
|
|
82
|
+
- (CGRect)getRect;
|
|
83
|
+
/** set the measurement rectangle */
|
|
84
|
+
- (BOOL)setRect: (CGRect)rect error: (out NSError * _Nullable *_Nullable)error;
|
|
85
|
+
|
|
86
|
+
@end
|
|
87
|
+
|
|
88
|
+
/** a horizontal or vertical measurement line */
|
|
89
|
+
@interface FLIRRemoteLine : FLIRRemoteMarker
|
|
90
|
+
|
|
91
|
+
/** get the x-coordinate (if vertical) or y-coordinate (if horizontal) of the line */
|
|
92
|
+
- (int)getCoordinate;
|
|
93
|
+
/** get whether the line is horizontal (true) or vertical (false) */
|
|
94
|
+
- (BOOL)getHorizontal;
|
|
95
|
+
/** set the x-coordinate (if horizontal) or y-coordinate (if vertical) of the line and orientation */
|
|
96
|
+
- (BOOL)setCoordinate: (int)coordinate horizontal: (BOOL)horizontal error: (out NSError * _Nullable *_Nullable)error;
|
|
97
|
+
|
|
98
|
+
@end
|
|
99
|
+
|
|
100
|
+
/** a measurement point */
|
|
101
|
+
@interface FLIRRemoteSpot : FLIRRemoteShape
|
|
102
|
+
|
|
103
|
+
/** get the position of the measurement point */
|
|
104
|
+
- (CGPoint)getPosition;
|
|
105
|
+
/** set the position of the measurement point */
|
|
106
|
+
- (BOOL)setPosition: (CGPoint)position error: (out NSError * _Nullable *_Nullable)error;
|
|
107
|
+
/** the thermal value at the measurement point */
|
|
108
|
+
- (FLIRThermalValue* _Nullable) getValue;
|
|
109
|
+
|
|
110
|
+
@end
|
|
111
|
+
|
|
112
|
+
/** remote measurements */
|
|
113
|
+
@interface FLIRMeasurementsController : NSObject
|
|
114
|
+
|
|
115
|
+
/** add a measurement point */
|
|
116
|
+
- (FLIRRemoteSpot * _Nullable)addSpot:(CGPoint)point
|
|
117
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
118
|
+
/** add a circular measurement area */
|
|
119
|
+
- (FLIRRemoteCircle * _Nullable)addCircle: (CGPoint)position
|
|
120
|
+
radius: (int)radius
|
|
121
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
122
|
+
|
|
123
|
+
/** add a rectangular measurement area */
|
|
124
|
+
- (FLIRRemoteRect * _Nullable)addRectangle: (CGRect)rect
|
|
125
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
126
|
+
|
|
127
|
+
/** add a measurement line
|
|
128
|
+
*
|
|
129
|
+
* @param y y position of the line
|
|
130
|
+
* @return FLIRRemoteLine
|
|
131
|
+
*/
|
|
132
|
+
- (FLIRRemoteLine * _Nullable)addHorizontalLine:(int)y
|
|
133
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
134
|
+
|
|
135
|
+
/** add a measurement line
|
|
136
|
+
*
|
|
137
|
+
* @param x x position of the line
|
|
138
|
+
* @return FLIRRemoteLine
|
|
139
|
+
*/
|
|
140
|
+
- (FLIRRemoteLine * _Nullable)addVerticalLine:(int)x
|
|
141
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
142
|
+
|
|
143
|
+
/** remove a previously added measurement shape
|
|
144
|
+
*
|
|
145
|
+
* @param shape The measurement shape (line, spot, rectangle or circle)
|
|
146
|
+
* @return true if shape removed (i.e. the shape was in the collection)
|
|
147
|
+
*/
|
|
148
|
+
- (BOOL)remove:(FLIRRemoteShape * _Nonnull)shape
|
|
149
|
+
error:(out NSError * _Nullable * _Nullable)error;
|
|
150
|
+
|
|
151
|
+
/** get all measument points */
|
|
152
|
+
- (NSArray<FLIRRemoteSpot *> * _Nullable) getSpots;
|
|
153
|
+
/** get all measument rectangles */
|
|
154
|
+
- (NSArray<FLIRRemoteRect *> * _Nullable) getRects;
|
|
155
|
+
/** get all measument circles */
|
|
156
|
+
- (NSArray<FLIRRemoteCircle *> * _Nullable) getCircles;
|
|
157
|
+
/** get all measument lines */
|
|
158
|
+
- (NSArray<FLIRRemoteLine *> * _Nullable) getLines;
|
|
159
|
+
|
|
160
|
+
@end
|