ArcGIS Runtime SDK for iOS: AGSSurface.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSSurface.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/AGSLoadableBase.h>
29 #import <ArcGIS/AGSCancelable.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSNavigationConstraint) {
40 };
41 
42 @class AGSElevationSource;
43 @class AGSPoint;
44 @class AGSBackgroundGrid;
45 
53 
54 #pragma mark -
55 #pragma mark initializers
56 
57 +(instancetype)surface;
58 
59 #pragma mark -
60 #pragma mark properties
61 
65 @property (nonatomic, strong, readwrite) AGSBackgroundGrid *backgroundGrid;
66 
70 @property (nonatomic, assign, readwrite) float elevationExaggeration;
71 
75 @property (nonatomic, copy, readwrite) NSArray<AGSElevationSource*> *elevationSources;
76 
80 @property (nonatomic, assign, readwrite, getter=isEnabled) BOOL enabled;
81 
85 @property (nonatomic, copy, readwrite) NSString *name;
86 
90 @property (nonatomic, assign, readwrite) AGSNavigationConstraint navigationConstraint;
91 
97 @property (nonatomic, assign, readwrite) float opacity;
98 
99 #pragma mark -
100 #pragma mark methods
101 
107 -(id<AGSCancelable>)elevationForPoint:(AGSPoint*)point completion:(void(^)(double elevation, NSError * __nullable error))completion;
108 
109 @end
110 
111 
AGSNavigationConstraint
Definition: AGSSurface.h:37
@ AGSNavigationConstraintStayAbove
Definition: AGSSurface.h:39
@ AGSNavigationConstraintNone
Definition: AGSSurface.h:38
A background grid defines the default color and context grid for display behind a map or scene surfac...
Definition: AGSBackgroundGrid.h:39
A base class for elevation sources used in a scene surface.
Definition: AGSElevationSource.h:39
A base class for loadables.
Definition: AGSLoadableBase.h:45
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
A surface providing elevation context for a scene.
Definition: AGSSurface.h:53
instancetype surface()
NSString * name
Definition: AGSSurface.h:85
float opacity
Definition: AGSSurface.h:97
BOOL enabled
Definition: AGSSurface.h:80
AGSBackgroundGrid * backgroundGrid
Definition: AGSSurface.h:65
NSArray< AGSElevationSource * > * elevationSources
Definition: AGSSurface.h:75
AGSNavigationConstraint navigationConstraint
Definition: AGSSurface.h:90
float elevationExaggeration
Definition: AGSSurface.h:70
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38