ArcGIS Runtime SDK for iOS: AGSOrbitLocationCameraController.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSOrbitLocationCameraController.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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/AGSCameraController.h>
27 
28 @class AGSPoint;
29 
30 @protocol AGSCancelable;
31  //Required for Globals API doc
33 
43 
44 
45 
46 #pragma mark -
47 #pragma mark initializers
48 
49 
50 
56 -(instancetype)initWithTargetLocation:(AGSPoint *)targetLocation distance:(double)distance;
57 
64 +(instancetype)orbitLocationCameraControllerWithTargetLocation:(AGSPoint *)targetLocation distance:(double)distance;
65 
71 -(instancetype)initWithTargetLocation:(AGSPoint *)targetLocation cameraLocation:(AGSPoint *)cameraLocation;
72 
79 +(instancetype)orbitLocationCameraControllerWithTargetLocation:(AGSPoint *)targetLocation cameraLocation:(AGSPoint *)cameraLocation;
80 
81 #pragma mark -
82 #pragma mark properties
83 
87 @property (nonatomic, assign, readwrite) double cameraDistance;
88 
97 @property (nonatomic, assign, readwrite) double cameraHeadingOffset;
98 
104 @property (nonatomic, assign, readwrite) double cameraPitchOffset;
105 
109 @property (nonatomic, assign, readwrite, getter=isCameraDistanceInteractive) BOOL cameraDistanceInteractive;
110 
114 @property (nonatomic, assign, readwrite, getter=isCameraHeadingOffsetInteractive) BOOL cameraHeadingOffsetInteractive;
115 
119 @property (nonatomic, assign, readwrite, getter=isCameraPitchOffsetInteractive) BOOL cameraPitchOffsetInteractive;
120 
125 @property (nonatomic, assign, readwrite) double maxCameraDistance;
126 
131 @property (nonatomic, assign, readwrite) double maxCameraHeadingOffset;
132 
137 @property (nonatomic, assign, readwrite) double maxCameraPitchOffset;
138 
143 @property (nonatomic, assign, readwrite) double minCameraDistance;
144 
149 @property (nonatomic, assign, readwrite) double minCameraHeadingOffset;
150 
155 @property (nonatomic, assign, readwrite) double minCameraPitchOffset;
156 
160 @property (nonatomic, strong, readonly) AGSPoint *targetLocation;
161 
162 #pragma mark -
163 #pragma mark methods
164 
175  -(id<AGSCancelable>)moveCameraWithDistanceDelta:(double)distanceDelta
176  headingDelta:(double)headingDelta
177  pitchDelta:(double)pitchDelta
178  duration:(NSTimeInterval)duration
179  completion:(nullable void(^)(BOOL finished))completion;
180 
181 
182 
183 @end
A base class for controllers which manage the camera of AGSSceneView.
Definition: AGSCameraController.h:37
A controller which allows a scene view's camera to orbit a fixed location.
Definition: AGSOrbitLocationCameraController.h:43
double cameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:104
double cameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:97
double maxCameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:131
double maxCameraDistance
Definition: AGSOrbitLocationCameraController.h:125
double cameraDistance
Definition: AGSOrbitLocationCameraController.h:87
double minCameraDistance
Definition: AGSOrbitLocationCameraController.h:143
double minCameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:155
BOOL cameraHeadingOffsetInteractive
Definition: AGSOrbitLocationCameraController.h:114
BOOL cameraPitchOffsetInteractive
Definition: AGSOrbitLocationCameraController.h:119
AGSPoint * targetLocation
Definition: AGSOrbitLocationCameraController.h:160
double maxCameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:137
double minCameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:149
BOOL cameraDistanceInteractive
Definition: AGSOrbitLocationCameraController.h:109
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38