ArcGIS Runtime SDK for iOS: AGSScene.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSScene.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSLoadableBase.h>
29 #import <ArcGIS/AGSBasemap.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSSceneViewTilingScheme) {
40 };
41 
42 @class AGSLayer;
43 @class AGSSpatialReference;
44 @class AGSBookmark;
45 @class AGSViewpoint;
46 @class AGSSurface;
47 @class AGSLoadSettings;
48 @class AGSItem;
49 @class AGSFeatureTable;
51 
69 
70 #pragma mark -
71 #pragma mark initializers
72 
77 -(instancetype)initWithBasemap:(AGSBasemap *)basemap;
78 
83 -(instancetype)initWithTilingScheme:(AGSSceneViewTilingScheme)tilingScheme;
84 
89 -(instancetype)initWithItem:(AGSItem *)item;
90 
99 -(nullable instancetype)initWithURL:(NSURL*)URL;
100 
107 - (instancetype)initWithBasemapType:(AGSBasemapType)basemapType;
108 
114 - (instancetype)initWithBasemapStyle:(AGSBasemapStyle)basemapStyle;
115 
121 +(instancetype)scene;
122 
128 +(instancetype)sceneWithBasemap:(AGSBasemap *)basemap;
129 
135 +(instancetype)sceneWithTilingScheme:(AGSSceneViewTilingScheme)tilingScheme;
136 
142 +(instancetype)sceneWithItem:(AGSItem*)item;
143 
153 +(nullable instancetype)sceneWithURL:(NSURL*)URL;
154 
162 + (instancetype)sceneWithBasemapType:(AGSBasemapType)basemapType;
163 
170 + (instancetype)sceneWithBasemapStyle:(AGSBasemapStyle)basemapStyle;
171 
172 #pragma mark -
173 #pragma mark properties
174 
178 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
179 
184 @property (nonatomic, copy, readonly) NSString *version;
185 
190 @property (nullable, nonatomic, strong, readwrite) AGSSurface *baseSurface;
191 
195 @property (nullable, nonatomic, strong, readwrite) AGSBasemap *basemap;
196 
200 @property (nonatomic, strong, readwrite) AGSViewpoint *initialViewpoint;
201 
206 @property (nonatomic, strong, readonly) NSMutableArray<AGSLayer*> *operationalLayers;
207 
217 @property (nonatomic, assign, readonly) AGSSceneViewTilingScheme sceneViewTilingScheme;
218 
228 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
229 
234 @property (nonatomic, strong, readonly) NSMutableArray<AGSBookmark*> *bookmarks;
235 
239 @property (nonatomic, strong, readwrite) AGSLoadSettings *loadSettings;
240 
245 @property (nonatomic, strong, readonly) NSMutableArray<AGSFeatureTable*> *tables;
246 
250 @property (nullable, nonatomic, copy, readonly) NSDictionary<NSString*,id> *unknownJSON;
251 
255 @property (nullable, nonatomic, copy, readonly) NSDictionary<NSString*,id> *unsupportedJSON;
256 
266 @property (nonatomic, copy, readonly) NSArray<AGSTransportationNetworkDataset *> *transportationNetworks;
267 
268 #pragma mark -
269 #pragma mark methods
270 
276 +(__nullable id<AGSJSONSerializable>)fromJSON:(id)JSONObject error:(NSError**)error;
277 
278 @end
279 
280 
AGSBasemapType
Definition: AGSBasemap.h:43
AGSBasemapStyle
Definition: AGSBasemap.h:72
AGSSceneViewTilingScheme
Definition: AGSScene.h:37
@ AGSSceneViewTilingSchemeWebMercator
Definition: AGSScene.h:39
@ AGSSceneViewTilingSchemeGeographic
Definition: AGSScene.h:38
A basemap for a map or a scene.
Definition: AGSBasemap.h:135
A geographic or time location for quick navigation.
Definition: AGSBookmark.h:37
A source for dataset containing geographic features or non-spatial records.
Definition: AGSFeatureTable.h:66
Object representing a unit of content.
Definition: AGSItem.h:44
An abstract base class for all layers.
Definition: AGSLayer.h:194
Settings for layers in a Map or Scene.
Definition: AGSLoadSettings.h:42
A base class for loadables.
Definition: AGSLoadableBase.h:45
A scene containing 3D geographic content.
Definition: AGSScene.h:69
NSMutableArray< AGSBookmark * > * bookmarks
Definition: AGSScene.h:234
instancetype scene()
AGSLoadSettings * loadSettings
Definition: AGSScene.h:239
NSMutableArray< AGSFeatureTable * > * tables
Definition: AGSScene.h:245
AGSSceneViewTilingScheme sceneViewTilingScheme
Definition: AGSScene.h:217
AGSBasemap * basemap
Definition: AGSScene.h:195
NSMutableArray< AGSLayer * > * operationalLayers
Definition: AGSScene.h:206
NSString * version
Definition: AGSScene.h:184
AGSSurface * baseSurface
Definition: AGSScene.h:190
AGSSpatialReference * spatialReference
Definition: AGSScene.h:228
AGSItem * item
Definition: AGSScene.h:178
AGSViewpoint * initialViewpoint
Definition: AGSScene.h:200
NSDictionary< NSString *, id > * unsupportedJSON
Definition: AGSScene.h:255
NSDictionary< NSString *, id > * unknownJSON
Definition: AGSScene.h:250
NSArray< AGSTransportationNetworkDataset * > * transportationNetworks
Definition: AGSScene.h:266
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:46
A surface providing elevation context for a scene.
Definition: AGSSurface.h:54
A transportation network dataset.
Definition: AGSTransportationNetworkDataset.h:37
Represents the view location of an AGSMapView or AGSSceneView object.
Definition: AGSViewpoint.h:52
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38