ArcGIS Runtime SDK for iOS: AGSSceneView.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSSceneView.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19  /*@file AGSSceneView.h */ //Required for Globals API doc
20 
21 #import <ArcGIS/AGSGeoView.h>
22 #import <ArcGIS/AGSColor.h>
23 
24 
25 
30 typedef NS_ENUM(NSInteger, AGSAtmosphereEffect) {
34 };
35 
40 typedef NS_ENUM(NSInteger, AGSLightingMode) {
44 };
45 
51 typedef NS_ENUM(NSInteger, AGSSpaceEffect) {
54 };
55 
56 @class AGSScene;
57 @class AGSCamera;
59 @class AGSCameraController;
60 @class AGSAnalysisOverlay;
62 @class AGSImageOverlay;
63 
71 
72 #pragma mark -
73 #pragma mark initializers
74 
75 #pragma mark -
76 #pragma mark properties
77 
81 @property (nullable, nonatomic, strong, readwrite) AGSScene *scene;
82 
87 @property (nonatomic, assign, readwrite) AGSSpaceEffect spaceEffect;
88 
92 @property (nonatomic, strong, readwrite) AGSColor *ambientLightColor;
93 
97 @property (nonatomic, assign, readwrite) AGSAtmosphereEffect atmosphereEffect;
98 
102 @property (nonatomic, strong, readwrite) NSDate *sunTime;
103 
107 @property (nonatomic, assign, readwrite) AGSLightingMode sunLighting;
108 
114 @property (nullable, nonatomic, strong, readwrite) AGSCameraController *cameraController;
115 
121 @property (nonatomic, strong, readonly) NSMutableArray<AGSAnalysisOverlay*> *analysisOverlays;
122 
126 @property (nonatomic, strong, readwrite) AGSSceneViewInteractionOptions *interactionOptions;
127 
135 @property (nonatomic, assign, readwrite, getter=isManualRendering) BOOL manualRendering;
136 
140 @property (nonatomic, assign, readonly) double fieldOfView;
141 
147 @property (nonatomic, assign, readonly) double fieldOfViewDistortionRatio;
148 
158 @property (nonatomic, strong, readonly) NSMutableArray<AGSImageOverlay *> *imageOverlays;
159 
160 #pragma mark -
161 #pragma mark methods
162 
168 -(AGSLocationToScreenResult*)locationToScreen:(AGSPoint *)mapPoint;
169 
176 -(AGSPoint*)screenToBaseSurface:(CGPoint)screenPoint;
177 
183 
188 -(void)setViewpointCamera:(AGSCamera*)camera;
189 -(id<AGSCancelable>)setViewpointCamera:(AGSCamera*)camera
196  completion:(nullable void(^)(BOOL finished))completion;
197 
205 -(id<AGSCancelable>)setViewpointCamera:(AGSCamera*)camera
206  duration:(double)duration
207  completion:(nullable void(^)(BOOL finished))completion;
208 
219 -(id<AGSCancelable>)screenToLocation:(CGPoint)screenPoint completion:(void(^)(AGSPoint *location))completion;
220 
225 -(void)renderFrame;
226 
235 -(void)setFieldOfViewAndDistortionRatioWithAngle:(double)angle
236  distortionRatio:(double)distortionRatio;
237 
238 #if __has_include(<UIKit/UIDevice.h>)
239 
250 -(void)setFieldOfViewFromLensIntrinsicsWithXFocalLength:(float)xFocalLength
251  yFocalLength:(float)yFocalLength
252  xPrincipal:(float)xPrincipal
253  yPrincipal:(float)yPrincipal
254  xImageSize:(float)xImageSize
255  yImageSize:(float)yImageSize
256  deviceOrientation:(UIDeviceOrientation)deviceOrientation;
257 #endif
258 
263 -(void)setFieldOfViewWithAngle:(double)angle;
264 
265 
266 
267 @end
268 
269 
285 
286 
287 
288 #pragma mark -
289 #pragma mark initializers
290 
291 #pragma mark -
292 #pragma mark properties
293 
294 #pragma mark -
295 #pragma mark methods
296 
297 @end
298 
299 
A scene containing 3D geographic content.
Definition: AGSScene.h:61
Definition: AGSSceneView.h:41
Definition: AGSSceneView.h:43
AGSCamera * currentViewpointCamera()
Definition: AGSSceneView.h:31
Definition: AGSSceneView.h:33
Definition: AGSSceneView.h:52
Definition: AGSSceneView.h:32
A base class for controllers which manage the camera of AGSSceneView.
Definition: AGSCameraController.h:29
AGSSpaceEffect spaceEffect
Definition: AGSSceneView.h:87
AGSSceneViewInteractionOptions * interactionOptions
Definition: AGSSceneView.h:126
A View component to display 3D geographic content such as scenes.
Definition: AGSSceneView.h:284
AGSAtmosphereEffect atmosphereEffect
Definition: AGSSceneView.h:97
AGSCameraController * cameraController
Definition: AGSSceneView.h:114
BOOL manualRendering
Definition: AGSSceneView.h:135
An overlay that contains a frame with an image to display in the view.
Definition: AGSImageOverlay.h:46
A base class for AGSSceneView.
Definition: AGSSceneView.h:70
Manages the display of one or more Analyses on a scene view.
Definition: AGSAnalysisOverlay.h:32
Definition: AGSSceneView.h:53
AGSLightingMode sunLighting
Definition: AGSSceneView.h:107
A base class for all views that can display geographic content on screen.
Definition: AGSGeoView.h:61
NSMutableArray< AGSAnalysisOverlay * > * analysisOverlays
Definition: AGSSceneView.h:121
AGSLightingMode
Definition: AGSSceneView.h:40
AGSScene * scene
Definition: AGSSceneView.h:81
A camera to represent 3D viewpoints of a secene.
Definition: AGSCamera.h:42
AGSSpaceEffect
Definition: AGSSceneView.h:51
double fieldOfView
Definition: AGSSceneView.h:140
double fieldOfViewDistortionRatio
Definition: AGSSceneView.h:147
Definition: AGSSceneView.h:42
Options to configure Scene View user interactions.
Definition: AGSSceneViewInteractionOptions.h:31
Result of a location-to-screen operation on AGSSceneView.
Definition: AGSLocationToScreenResult.h:43
NSDate * sunTime
Definition: AGSSceneView.h:102
NSMutableArray< AGSImageOverlay * > * imageOverlays
Definition: AGSSceneView.h:158
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57
AGSAtmosphereEffect
Definition: AGSSceneView.h:30
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32
AGSColor * ambientLightColor
Definition: AGSSceneView.h:92