ArcGIS Runtime SDK for iOS: AGSOrbitLocationCameraController.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSOrbitLocationCameraController.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/AGSCameraController.h>
27 #import <ArcGIS/AGSCancelable.h>
28 
29 @class AGSPoint;
30  //Required for Globals API doc
32 
42 
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
48 
49 
55 -(instancetype)initWithTargetLocation:(AGSPoint *)targetLocation distance:(double)distance;
56 
63 +(instancetype)orbitLocationCameraControllerWithTargetLocation:(AGSPoint *)targetLocation distance:(double)distance;
64 
70 -(instancetype)initWithTargetLocation:(AGSPoint *)targetLocation cameraLocation:(AGSPoint *)cameraLocation;
71 
78 +(instancetype)orbitLocationCameraControllerWithTargetLocation:(AGSPoint *)targetLocation cameraLocation:(AGSPoint *)cameraLocation;
79 
80 #pragma mark -
81 #pragma mark properties
82 
86 @property (nonatomic, assign, readwrite) double cameraDistance;
87 
96 @property (nonatomic, assign, readwrite) double cameraHeadingOffset;
97 
103 @property (nonatomic, assign, readwrite) double cameraPitchOffset;
104 
108 @property (nonatomic, assign, readwrite, getter=isCameraDistanceInteractive) BOOL cameraDistanceInteractive;
109 
113 @property (nonatomic, assign, readwrite, getter=isCameraHeadingOffsetInteractive) BOOL cameraHeadingOffsetInteractive;
114 
118 @property (nonatomic, assign, readwrite, getter=isCameraPitchOffsetInteractive) BOOL cameraPitchOffsetInteractive;
119 
124 @property (nonatomic, assign, readwrite) double maxCameraDistance;
125 
130 @property (nonatomic, assign, readwrite) double maxCameraHeadingOffset;
131 
136 @property (nonatomic, assign, readwrite) double maxCameraPitchOffset;
137 
142 @property (nonatomic, assign, readwrite) double minCameraDistance;
143 
148 @property (nonatomic, assign, readwrite) double minCameraHeadingOffset;
149 
154 @property (nonatomic, assign, readwrite) double minCameraPitchOffset;
155 
159 @property (nonatomic, strong, readonly) AGSPoint *targetLocation;
160 
161 #pragma mark -
162 #pragma mark methods
163 
174  -(id<AGSCancelable>)moveCameraWithDistanceDelta:(double)distanceDelta
175  headingDelta:(double)headingDelta
176  pitchDelta:(double)pitchDelta
177  duration:(NSTimeInterval)duration
178  completion:(nullable void(^)(BOOL finished))completion;
179 
180 
181 
182 @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:42
double cameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:103
double cameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:96
double maxCameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:130
double maxCameraDistance
Definition: AGSOrbitLocationCameraController.h:124
double cameraDistance
Definition: AGSOrbitLocationCameraController.h:86
double minCameraDistance
Definition: AGSOrbitLocationCameraController.h:142
double minCameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:154
BOOL cameraHeadingOffsetInteractive
Definition: AGSOrbitLocationCameraController.h:113
BOOL cameraPitchOffsetInteractive
Definition: AGSOrbitLocationCameraController.h:118
AGSPoint * targetLocation
Definition: AGSOrbitLocationCameraController.h:159
double maxCameraPitchOffset
Definition: AGSOrbitLocationCameraController.h:136
double minCameraHeadingOffset
Definition: AGSOrbitLocationCameraController.h:148
BOOL cameraDistanceInteractive
Definition: AGSOrbitLocationCameraController.h:108
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