ArcGIS Runtime SDK for iOS: AGSArcGISSceneLayer.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSArcGISSceneLayer.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/AGSLayer.h>
29 #import <ArcGIS/AGSRemoteResource.h>
30 #import <ArcGIS/AGSSurfacePlacement.h>
31 #import <ArcGIS/AGSAPIKeyResource.h>
32 
33 
34 
39 typedef NS_ENUM(NSInteger, AGSSceneLayerDataType) {
44 };
45 
46 @class AGSFeature;
48 @class AGSFeatureTable;
49 
50 @protocol AGSCancelable;
51 
116 
117 #pragma mark -
118 #pragma mark initializers
119 
120 
121 
127 -(instancetype)initWithURL:(NSURL *)url;
128 
135 -(instancetype)initWithItem:(AGSItem*)item;
136 
141 -(instancetype)initWithName:(NSString*)name;
142 
149 +(instancetype)ArcGISSceneLayerWithItem:(AGSItem*)item;
150 
157 +(instancetype)ArcGISSceneLayerWithURL:(NSURL *)url;
158 
164 +(instancetype)ArcGISSceneLayerWithName:(NSString*)name;
165 
166 #pragma mark -
167 #pragma mark properties
168 
169 @property (nullable, nonatomic, strong, readonly) AGSFeatureTable *featureTable;
170 
174 @property (nonatomic, assign, readonly) AGSSceneLayerDataType dataType;
175 
179 @property (nonatomic, assign, readwrite) double altitudeOffset;
180 
184 @property(nonatomic, assign, readwrite) AGSSurfacePlacement surfacePlacement;
185 
186 #pragma mark -
187 #pragma mark methods
188 
192 -(void)clearSelection;
193 
199 -(id<AGSCancelable>)getSelectedFeaturesWithCompletion:(void(^)(AGSFeatureQueryResult *__nullable featureQueryResult, NSError *__nullable error))completion;
200 
206 -(void)selectFeature:(AGSFeature *)feature;
207 
212 -(void)selectFeatures:(NSArray<AGSFeature*> *)features;
213 
219 -(void)unselectFeature:(AGSFeature *)feature;
220 
225 -(void)unselectFeatures:(NSArray<AGSFeature*> *)features;
226 
227 @end
228 
229 
AGSSceneLayerDataType
Definition: AGSArcGISSceneLayer.h:39
@ AGSSceneLayerDataTypeIntegratedMesh
Definition: AGSArcGISSceneLayer.h:43
@ AGSSceneLayerDataTypeSceneObject
Definition: AGSArcGISSceneLayer.h:41
@ AGSSceneLayerDataTypeUnknown
Definition: AGSArcGISSceneLayer.h:40
@ AGSSceneLayerDataTypePoint
Definition: AGSArcGISSceneLayer.h:42
AGSSurfacePlacement
Definition: AGSSurfacePlacement.h:35
A layer to visualize an ArcGIS scene service.
Definition: AGSArcGISSceneLayer.h:115
AGSSceneLayerDataType dataType
Definition: AGSArcGISSceneLayer.h:174
AGSFeatureTable * featureTable
Definition: AGSArcGISSceneLayer.h:169
double altitudeOffset
Definition: AGSArcGISSceneLayer.h:179
AGSSurfacePlacement surfacePlacement
Definition: AGSArcGISSceneLayer.h:184
A representation of a real-world object on a map.
Definition: AGSFeature.h:47
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:49
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
An interface for getting and setting the API key of an object.
Definition: AGSAPIKeyResource.h:36
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:40