ArcGIS Runtime SDK for iOS: AGSViewpoint.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSViewpoint.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19  /*@file AGSViewpoint.h */ //Required for Globals API doc
20 
21 #import <ArcGIS/AGSObject.h>
22 #import <ArcGIS/AGSJSONSerializable.h>
23 
24 
25 
30 typedef NS_ENUM(NSInteger, AGSViewpointType) {
34 };
35 
36 @class AGSGeometry;
37 @class AGSEnvelope;
38 @class AGSPoint;
39 @class AGSCamera;
40 
50 
51 #pragma mark -
52 #pragma mark initializers
53 
54 
55 
64 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale;
65 
75 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation;
76 
84 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent;
85 
94 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation;
95 
105 - (instancetype)initWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale;
106 
116 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale camera:(AGSCamera*)camera;
117 
128 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation camera:(AGSCamera*)camera;
129 
138 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent camera:(AGSCamera*)camera;
139 
149 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation camera:(AGSCamera*)camera;
150 
161 - (instancetype)initWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale camera:(AGSCamera*)camera;
162 
163 
172 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale;
173 
183 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation;
184 
192 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent;
193 
200 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation;
201 
211 +(instancetype)viewpointWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale;
212 
222 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale camera:(AGSCamera*)camera;
223 
234 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation camera:(AGSCamera*)camera;
235 
244 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent camera:(AGSCamera*)camera;
245 
255 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation camera:(AGSCamera*)camera;
256 
267 +(instancetype)viewpointWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale camera:(AGSCamera*)camera;
268 
269 #pragma mark -
270 #pragma mark properties
271 
276 @property (nullable, nonatomic, strong, readonly) AGSCamera* camera;
277 
281 @property (nonatomic, assign, readonly) AGSViewpointType viewpointType;
282 
287 @property (nonatomic, assign, readonly) double rotation;
288 
295 @property (nonatomic, strong, readonly) AGSGeometry *targetGeometry;
296 
301 @property (nonatomic, assign, readonly) double targetScale;
302 
303 #pragma mark -
304 #pragma mark methods
305 
311 -(BOOL)isEqualToViewpoint:(AGSViewpoint*)other;
312 
313 @end
314 
315 
double targetScale
Definition: AGSViewpoint.h:301
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
AGSGeometry * targetGeometry
Definition: AGSViewpoint.h:295
Represents the view location of AGSMapView or AGSSceneView.
Definition: AGSViewpoint.h:49
AGSViewpointType
Definition: AGSViewpoint.h:30
A camera to represent 3D viewpoints of a secene.
Definition: AGSCamera.h:42
Definition: AGSViewpoint.h:31
Definition: AGSObject.h:21
AGSViewpointType viewpointType
Definition: AGSViewpoint.h:281
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:32
Definition: AGSViewpoint.h:32
Definition: AGSViewpoint.h:33
double rotation
Definition: AGSViewpoint.h:287
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57