ArcGIS Runtime SDK for iOS: AGSScene.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSScene.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/AGSGeoModel.h>
29 #import <ArcGIS/AGSBasemap.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSSceneViewTilingScheme) {
40 };
41 
42 @class AGSViewpoint;
43 @class AGSSurface;
44 @class AGSItem;
45 
62 @interface AGSScene : AGSGeoModel
63 
64 #pragma mark -
65 #pragma mark initializers
66 
70 -(instancetype)init;
71 
76 -(instancetype)initWithBasemap:(AGSBasemap *)basemap;
77 
82 -(instancetype)initWithTilingScheme:(AGSSceneViewTilingScheme)tilingScheme;
83 
88 -(instancetype)initWithItem:(AGSItem *)item;
89 
98 -(nullable instancetype)initWithURL:(NSURL*)URL;
99 
105 - (instancetype)initWithBasemapStyle:(AGSBasemapStyle)basemapStyle;
106 
112 +(instancetype)scene;
113 
119 +(instancetype)sceneWithBasemap:(AGSBasemap *)basemap;
120 
126 +(instancetype)sceneWithTilingScheme:(AGSSceneViewTilingScheme)tilingScheme;
127 
133 +(instancetype)sceneWithItem:(AGSItem*)item;
134 
144 +(nullable instancetype)sceneWithURL:(NSURL*)URL;
145 
152 + (instancetype)sceneWithBasemapStyle:(AGSBasemapStyle)basemapStyle;
153 
154 #pragma mark -
155 #pragma mark properties
156 
161 @property (nullable, nonatomic, strong, readwrite) AGSSurface *baseSurface;
162 
166 @property (nullable, nonatomic, strong, readwrite) AGSBasemap *basemap;
167 
171 @property (nonatomic, strong, readwrite) AGSViewpoint *initialViewpoint;
172 
182 @property (nonatomic, assign, readonly) AGSSceneViewTilingScheme sceneViewTilingScheme;
183 
187 @property (nullable, nonatomic, copy, readonly) NSDictionary<NSString*,id> *unknownJSON;
188 
192 @property (nullable, nonatomic, copy, readonly) NSDictionary<NSString*,id> *unsupportedJSON;
193 
194 #pragma mark -
195 #pragma mark methods
196 
202 +(__nullable id<AGSJSONSerializable>)fromJSON:(id)JSONObject error:(NSError**)error;
203 
204 @end
205 
207 
215 - (instancetype)initWithBasemapType:(AGSBasemapType)basemapType ;
216 
225 + (instancetype)sceneWithBasemapType:(AGSBasemapType)basemapType ;
226 
227 @end
228 
229 
AGSBasemapStyle
Definition: AGSBasemap.h:72
AGSSceneViewTilingScheme
Definition: AGSScene.h:37
@ AGSSceneViewTilingSchemeWebMercator
Definition: AGSScene.h:39
@ AGSSceneViewTilingSchemeGeographic
Definition: AGSScene.h:38
Definition: AGSScene.h:206
A basemap for a map or a scene.
Definition: AGSBasemap.h:135
A base class for either an AGSMap or an AGSScene.
Definition: AGSGeoModel.h:54
Object representing a unit of content.
Definition: AGSItem.h:43
A scene containing 3D geographic content.
Definition: AGSScene.h:63
instancetype scene()
AGSSceneViewTilingScheme sceneViewTilingScheme
Definition: AGSScene.h:182
AGSBasemap * basemap
Definition: AGSScene.h:166
AGSSurface * baseSurface
Definition: AGSScene.h:161
instancetype init()
AGSViewpoint * initialViewpoint
Definition: AGSScene.h:171
NSDictionary< NSString *, id > * unsupportedJSON
Definition: AGSScene.h:192
NSDictionary< NSString *, id > * unknownJSON
Definition: AGSScene.h:187
A surface providing elevation context for a scene.
Definition: AGSSurface.h:53
Represents the view location of an AGSMapView or AGSSceneView object.
Definition: AGSViewpoint.h:51
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38