ArcGIS Runtime SDK for iOS: AGSLocationDistanceMeasurement.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSLocationDistanceMeasurement.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSAnalysis.h>
27 #import <ArcGIS/AGSUnitSystem.h>
28 
29 @class AGSPoint;
30 @class AGSDistance;
31  //Required for Globals API doc
33 
41 
42 
43 #pragma mark -
44 #pragma mark initializers
45 
46 
47 
53 -(instancetype)initWithStartLocation:(AGSPoint*)startLocation endLocation:(AGSPoint*)endLocation;
54 
61 +(instancetype)locationDistanceMeasurementWithStartLocation:(AGSPoint*)startLocation endLocation:(AGSPoint*)endLocation;
62 
63 #pragma mark -
64 #pragma mark properties
65 
69 @property (nonatomic, strong, readwrite) AGSPoint *startLocation;
70 
74 @property (nonatomic, strong, readwrite) AGSPoint *endLocation;
75 
79 @property (nullable, nonatomic, strong, readonly) AGSDistance *directDistance;
80 
84 @property (nullable, nonatomic, strong, readonly) AGSDistance *horizontalDistance;
85 
89 @property (nullable, nonatomic, strong, readonly) AGSDistance *verticalDistance;
90 
94 @property (nonatomic, assign, readwrite) AGSUnitSystem unitSystem;
95 
102 
103 #pragma mark -
104 #pragma mark methods
105 
106 
107 @end
AGSUnitSystem
Definition: AGSUnitSystem.h:35
Base class for rendering analysis results in a scene view.
Definition: AGSAnalysis.h:38
Represents distance measurement.
Definition: AGSDistance.h:39
Analysis of distance between two locations.
Definition: AGSLocationDistanceMeasurement.h:41
AGSPoint * endLocation
Definition: AGSLocationDistanceMeasurement.h:74
void(^ measurementChangedHandler)(AGSDistance *directDistance, AGSDistance *horizontalDistance, AGSDistance *verticalDistance)
AGSDistance * directDistance
Definition: AGSLocationDistanceMeasurement.h:79
AGSUnitSystem unitSystem
Definition: AGSLocationDistanceMeasurement.h:94
AGSPoint * startLocation
Definition: AGSLocationDistanceMeasurement.h:69
AGSDistance * horizontalDistance
Definition: AGSLocationDistanceMeasurement.h:84
AGSDistance * verticalDistance
Definition: AGSLocationDistanceMeasurement.h:89
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73