ArcGIS Runtime SDK for iOS: AGSViewpoint.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSViewpoint.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  /*@file AGSViewpoint.h */ //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 #import <ArcGIS/AGSJSONSerializable.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSViewpointType) {
41 };
42 
43 @class AGSGeometry;
44 @class AGSEnvelope;
45 @class AGSPoint;
46 @class AGSCamera;
47 
53 
54 #pragma mark -
55 #pragma mark initializers
56 
57 
58 
67 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale;
68 
78 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation;
79 
87 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent;
88 
97 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation;
98 
108 - (instancetype)initWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale;
109 
119 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale camera:(AGSCamera*)camera;
120 
131 - (instancetype)initWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation camera:(AGSCamera*)camera;
132 
141 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent camera:(AGSCamera*)camera;
142 
152 - (instancetype)initWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation camera:(AGSCamera*)camera;
153 
164 - (instancetype)initWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale camera:(AGSCamera*)camera;
165 
166 
176 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale;
177 
188 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation;
189 
198 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent;
199 
207 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation;
208 
219 +(instancetype)viewpointWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale;
220 
231 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale camera:(AGSCamera*)camera;
232 
244 +(instancetype)viewpointWithCenter:(AGSPoint *)center scale:(double)scale rotation:(double)rotation camera:(AGSCamera*)camera;
245 
255 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent camera:(AGSCamera*)camera;
256 
267 +(instancetype)viewpointWithTargetExtent:(AGSEnvelope *)targetExtent rotation:(double)rotation camera:(AGSCamera*)camera;
268 
280 +(instancetype)viewpointWithLatitude:(double)latitude longitude:(double)longitude scale:(double)scale camera:(AGSCamera*)camera;
281 
282 #pragma mark -
283 #pragma mark properties
284 
289 @property (nullable, nonatomic, strong, readonly) AGSCamera* camera;
290 
294 @property (nonatomic, assign, readonly) AGSViewpointType viewpointType;
295 
300 @property (nonatomic, assign, readonly) double rotation;
301 
308 @property (nonatomic, strong, readonly) AGSGeometry *targetGeometry;
309 
314 @property (nonatomic, assign, readonly) double targetScale;
315 
316 #pragma mark -
317 #pragma mark methods
318 
324 -(BOOL)isEqualToViewpoint:(AGSViewpoint*)other;
325 
326 @end
327 
328 
AGSViewpointType
Definition: AGSViewpoint.h:37
@ AGSViewpointTypeCenterAndScale
Definition: AGSViewpoint.h:38
@ AGSViewpointTypeUnknown
Definition: AGSViewpoint.h:40
@ AGSViewpointTypeBoundingGeometry
Definition: AGSViewpoint.h:39
A camera to represent 3D viewpoints of a scene.
Definition: AGSCamera.h:50
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
Definition: AGSObject.h:28
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
Represents the view location of an AGSMapView or AGSSceneView object.
Definition: AGSViewpoint.h:52
AGSViewpointType viewpointType
Definition: AGSViewpoint.h:294
double rotation
Definition: AGSViewpoint.h:300
AGSCamera * camera
Definition: AGSViewpoint.h:289
double targetScale
Definition: AGSViewpoint.h:314
AGSGeometry * targetGeometry
Definition: AGSViewpoint.h:308
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38