ArcGIS Runtime SDK for iOS: AGSKMLViewpoint.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSKMLViewpoint.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 #import <ArcGIS/AGSKMLTypes.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSKMLViewpointType) {
41 };
42 
43 @class AGSPoint;
44 @class AGSViewpoint;
45 
55 
56 #pragma mark -
57 #pragma mark initializers
58 
59 
60 
61 #pragma mark -
62 #pragma mark properties
63 
67 @property (nonatomic, assign, readonly) AGSKMLAltitudeMode altitudeMode;
68 
77 @property (nonatomic, assign, readonly) AGSKMLViewpointType type;
78 
82 @property (nonatomic, assign, readonly) double heading;
83 
91 @property (nonatomic, strong, readonly) AGSPoint *location;
92 
97 @property (nonatomic, assign, readonly) double range;
98 
102 @property (nonatomic, assign, readonly) double roll;
103 
110 @property (nonatomic, assign, readonly) double pitch;
111 
112 #pragma mark -
113 #pragma mark methods
114 
126 +(AGSKMLViewpoint *)KMLViewpointWithCameraLocation:(AGSPoint *)cameraLocation
127  heading:(double)heading
128  pitch:(double)pitch
129  roll:(double)roll
130  altitudeMode:(AGSKMLAltitudeMode)altitudeMode;
131 
143 +(AGSKMLViewpoint *)KMLViewpointWithLookAtLocation:(AGSPoint *)lookAtLocation
144  heading:(double)heading
145  pitch:(double)pitch
146  range:(double)range
147  altitudeMode:(AGSKMLAltitudeMode)altitudeMode;
148 
158 +(AGSKMLViewpoint *)KMLViewpointWithViewpoint:(AGSViewpoint*)viewpoint;
159 
160 @end
161 
162 
AGSKMLAltitudeMode
Definition: AGSKMLTypes.h:33
AGSKMLViewpointType
Definition: AGSKMLViewpoint.h:37
@ AGSKMLViewpointTypeCamera
Definition: AGSKMLViewpoint.h:38
@ AGSKMLViewpointTypeUnknown
Definition: AGSKMLViewpoint.h:40
@ AGSKMLViewpointTypeLookAt
Definition: AGSKMLViewpoint.h:39
KML viewpoint specifying a vantage point for looking at a node.
Definition: AGSKMLViewpoint.h:55
AGSKMLViewpointType type
Definition: AGSKMLViewpoint.h:77
double pitch
Definition: AGSKMLViewpoint.h:110
double range
Definition: AGSKMLViewpoint.h:97
double roll
Definition: AGSKMLViewpoint.h:102
AGSPoint * location
Definition: AGSKMLViewpoint.h:91
AGSKMLAltitudeMode altitudeMode
Definition: AGSKMLViewpoint.h:67
double heading
Definition: AGSKMLViewpoint.h:82
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:51