Click or drag to resize

SceneView Class

The SCeneView is a container that holds a Scene. It is the mapping component of the ArcGIS Runtime .NET SDK. It can contain mapping layers and responds to user interaction (touch, mouse, keyboard) and provides behavior for scene navigation. It has multiple properties such as its extent, scale, zoom factor, rotation, etc.
Inheritance Hierarchy
SystemObject
  Xamarin.Forms.BindableObject
    Xamarin.Forms.Element
      Xamarin.Forms.VisualElement
        Xamarin.Forms.View
          Esri.ArcGISRuntime.Xamarin.FormsGeoView
            Esri.ArcGISRuntime.Xamarin.FormsSceneView

Namespace:  Esri.ArcGISRuntime.Xamarin.Forms
Assembly:  Esri.ArcGISRuntime.Xamarin.Forms (in Esri.ArcGISRuntime.Xamarin.Forms.dll) Version: 100.7.0.0
Syntax
C#
public class SceneView : GeoView

The SceneView type exposes the following members.

Constructors
  NameDescription
Public methodSceneView
Initializes a new instance of the SceneView class.
Top
Properties
  NameDescription
Public propertyAmbientLightColor
Gets or sets the ambient light.
Public propertyAnalysisOverlays
Gets or sets the AnalysisOverlays collection.
Public propertyAtmosphereEffect
Gets or sets the effect applied to the scene's atmosphere.
Public propertyAttributionText
Gets the full attribution text for all active layers, concatenated into a single string.
(Inherited from GeoView.)
Public propertyCamera
Gets the current Camera for the view.
Public propertyCameraController
Gets or sets the SceneView camera controller which determines the camera interaction and navigation model.
Public propertyDrawStatus
Returns the current draw status
(Inherited from GeoView.)
Public propertyFieldOfView
Gets the horizontal field of view of the scene view in degrees.
Public propertyFieldOfViewDistortionRatio
Gets how much the vertical field of view is distorted.
Public propertyGraphicsOverlays
Gets or sets the GraphicsOverlays collection.
(Inherited from GeoView.)
Public propertyInteractionOptions
Gets or sets the grid that is available to the map for display.
Public propertyIsAttributionTextVisible
Gets or sets a value indicating whether the Esri attribution text is visible.
(Inherited from GeoView.)
Public propertyIsCalloutVisible
Gets a value indicating whether a callout is currently open
(Inherited from GeoView.)
Public propertyIsNavigating
Gets a value indicating whether the map is currently navigating. when navigation has finished the NavigationCompleted event will be raised.
(Inherited from GeoView.)
Public propertyIsWrapAroundEnabled
Indicates whether the wrap around feature is currently active. For wrap around to be active the WrapAroundMode property must be set to true and the SpatialReference of the MapView control must be a SpatialReference that supports wrapping.
(Inherited from GeoView.)
Public propertyScene
Gets or sets the scene the view is rendering.
Public propertySelectionProperties
Gets or sets the selection properties that is applied to graphic overlays and layers within the view.
(Inherited from GeoView.)
Public propertySpaceEffect
Gets or sets a value indicating whether outer space is black with stars or transparent in the scene view.
Public propertySpatialReference
Gets the current spatial reference of the map
(Inherited from GeoView.)
Public propertySunLighting
Gets or sets the type of lighting applied to the scene view.
Public propertySunTime
Gets or sets the position of the Sun.
Public propertyTimeExtent
Gets or sets the time extent that is applied to layers within the view
(Inherited from GeoView.)
Public propertyViewInsets
Gets or sets the viewport inset.
(Inherited from GeoView.)
Top
Methods
  NameDescription
Public methodCancelSetViewpointOperations
Cancels any pending or currently running SetViewpointAsync operations.
(Inherited from GeoView.)
Public methodDismissCallout
Dismisses a callout if it's open.
(Inherited from GeoView.)
Public methodExportImageAsync
Creates an image snapshot of the current map view
(Inherited from GeoView.)
Public methodGetCurrentViewpoint
Gets the current Viewpoint of the view.
(Inherited from GeoView.)
Public methodGetLayerViewState
Gets the LayerViewState for the given layer.
(Inherited from GeoView.)
Public methodIdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean)
Initiates an identify operation on the specified graphics overlay which will return the visible topmost graphic.
(Inherited from GeoView.)
Public methodIdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean, Int64)
Initiates an identify operation on the specified graphics overlay which will return the single visible topmost graphic per overlay only.
(Inherited from GeoView.)
Public methodIdentifyGraphicsOverlaysAsync(Point, Double, Boolean)
Initiate an identify operation on all graphics overlays.
(Inherited from GeoView.)
Public methodIdentifyGraphicsOverlaysAsync(Point, Double, Boolean, Int64)
Initiate an identify operation on all graphics overlays.
(Inherited from GeoView.)
Public methodIdentifyLayerAsync(Layer, Point, Double, Boolean)
Initiates an identify operation on the specified layer which will return the single visible topmost geolement only.
(Inherited from GeoView.)
Public methodIdentifyLayerAsync(Layer, Point, Double, Boolean, Int64)
Initiates an identify operation on the specified layer.
(Inherited from GeoView.)
Public methodIdentifyLayerAsync(Layer, Point, Double, Boolean, CancellationToken)
Initiates an identify operation on the specified layer which will return the single visible topmost geolement only.
(Inherited from GeoView.)
Public methodIdentifyLayerAsync(Layer, Point, Double, Boolean, Int64, CancellationToken)
Initiates an identify operation on the specified layer.
(Inherited from GeoView.)
Public methodIdentifyLayersAsync(Point, Double, Boolean)
Initiates an identify operation on all layers in the view which will return the single visible topmost geoelement per layer only.
(Inherited from GeoView.)
Public methodIdentifyLayersAsync(Point, Double, Boolean, Int64)
Initiates an identify operation on all layers in the view.
(Inherited from GeoView.)
Public methodIdentifyLayersAsync(Point, Double, Boolean, CancellationToken)
Initiates an identify operation on all layers in the view which will return the single visible topmost geoelement per layer only.
(Inherited from GeoView.)
Public methodIdentifyLayersAsync(Point, Double, Boolean, Int64, CancellationToken)
Initiates an identify operation on all layers in the view.
(Inherited from GeoView.)
Public methodLocationToScreen(MapPoint)
Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the map.
Public methodLocationToScreen(MapPoint, LocationVisibility)
Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the scene.
Public methodScreenToBaseSurface
Converts a screen point relative to the upper left of the map into a location on the map.
Public methodScreenToLocationAsync
Async method to convert a screen point relative to the upper left of the SceneView into a location accounting for 3D features within the Scene.
Public methodSetBookmarkAsync
Sets the GeoView's viewpoint with the bookmark's value.
(Inherited from GeoView.)
Public methodSetFieldOfView(Double)
Sets the horizontal field of view of the scene view in degrees.
Public methodSetFieldOfView(Double, Double)
Sets the field of view on the scene view in degrees and determines how much the vertical field of view is distorted.
Public methodSetFieldOfView(Single, Single, Single, Single, Single, Single, DeviceOrientation)
Allows for matching the field of view of the scene view to the field of view of a camera lens using the lens intrinsics characteristics.
Public methodSetViewpoint
Sets the view to the given Viewpoint location
(Inherited from GeoView.)
Public methodSetViewpointAsync(Viewpoint)
Animates the view to the given Viewpoint location
(Inherited from GeoView.)
Public methodSetViewpointAsync(Viewpoint, TimeSpan)
Animates the view to the given Viewpoint location
(Inherited from GeoView.)
Public methodSetViewpointCamera
Sets the viewpoint camera in the scene view.
Public methodSetViewpointCameraAsync(Camera)
Changes the scene view to the new camera viewpoint asynchronously.
Public methodSetViewpointCameraAsync(Camera, TimeSpan)
Changes the scene view to the new camera viewpoint asynchronously using the specified duration to arrive.
Public methodShowCalloutAt
Shows a callout based on a CalloutDefinition at the given location.
(Inherited from GeoView.)
Public methodShowCalloutForGeoElement
Shows a callout for the given geoelement at an appropriate location for the tap location by snapping to the geometry of the element.
(Inherited from GeoView.)
Top
Events
  NameDescription
Public eventDrawStatusChanged
Occurs when the DrawStatus property of this instance changes.
(Inherited from GeoView.)
Public eventGeoViewDoubleTapped
Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of the view.
(Inherited from GeoView.)
Public eventGeoViewHolding
Occurs when an otherwise unhandled holding interaction occurs over the hit test area of the view.
(Inherited from GeoView.)
Public eventGeoViewTapped
Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of the view.
(Inherited from GeoView.)
Public eventLayerViewStateChanged
Occurs when the LayerViewState of a contained layer changes.
(Inherited from GeoView.)
Public eventNavigationCompleted
When navigation on the map has completed this event will be raised.
(Inherited from GeoView.)
Public eventSpatialReferenceChanged
Occurs when spatial reference of the view changes.
(Inherited from GeoView.)
Public eventViewpointChanged
Occurs when the current viewpoint changes.
(Inherited from GeoView.)
Top
Fields
  NameDescription
Public fieldStatic memberAmbientLightColorProperty
Identifies the AmbientLightColor bindable property.
Public fieldStatic memberAnalysisOverlaysProperty
Identifies the AnalysisOverlays bindable property.
Public fieldStatic memberAtmosphereEffectProperty
Identifies the AtmosphereEffect bindable property.
Public fieldStatic memberCameraControllerProperty
Identifies the CameraController bindable property.
Public fieldStatic memberInteractionOptionsProperty
Identifies the InteractionOptions bindable property.
Public fieldStatic memberSceneProperty
Identifies the Scene bindable property.
Public fieldStatic memberSpaceEffectProperty
Identifies the SpaceEffect bindable property.
Public fieldStatic memberSunLightingProperty
Identifies the SunLighting bindable property.
Public fieldStatic memberSunTimeProperty
Identifies the SunTime bindable property.
Top
Remarks

The SceneView is a container that holds a Scene. A Scene holds a collection of operational layers and Basemap. Layers are visual representations of geographic information and come in many forms. The types of layers that are displayed in a SceneView are two dimensional in nature; meaning they are displayed in X/Y (a.k.a. Latitude/Longitude) coordinate space.

There is only one Scene per SceneView and it is set by the SceneView.Scene Property. Multiple Scene objects can be created and swapped out dynamically as the application is running in the SceneView.

See Also
Additional Examples
Hyperlink to ExampleDescription
AddAnIntegratedMeshLayerView an integrated mesh layer from a scene service.
AddPointSceneLayerView a point scene layer from a scene service.
Animate3DGraphicAn `OrbitGeoElementCameraController` follows a graphic while the graphic's position and rotation are animated.
ChangeAtmosphereEffectChanges the appearance of the atmosphere in a scene.
ChooseCameraControllerControl the behavior of the camera in a scene.
CreateTerrainSurfaceFromRasterUse a terrain surface with elevation described by a raster file.
CreateTerrainSurfaceFromTilePackageSet the terrain surface with elevation described by a local tile package.
DisplayKmlLoad and display KML from a URL, a local file, or a portal item.
DisplayKmlNetworkLinks Display a file with a KML network link.
DisplaySceneDisplay a scene with a terrain surface and some imagery.
DistanceMeasurementMeasure distances between two points in 3D.
EditKmlGroundOverlayEdit the values of a KML ground overlay.
FeatureLayerExtrusionExtrude features based on their attributes.
FeatureLayerRenderingModeSceneRender features in a scene statically or dynamically by setting the feature layer rendering mode.
GeoViewSyncKeep the view points of two views (a MapView and a SceneView in this case) synchronized with each other.
GetElevationAtPointGet the elevation for a given point on a surface in a scene.
GroupLayersGroup a collection of layers together and toggle their visibility as a group.
LineOfSightGeoElementShow a line of sight between two moving objects.
LineOfSightLocationPerform a line of sight analysis between two points in real time.
ListKmlContentsList the contents of a KML file. KML files can contain a hierarchy of features, including network links to other KML content.
OpenMobileScenePackageOpen and display a scene from a Mobile Scene Package (.mspk).
OpenSceneOpen a scene from a Portal item. Just like Web Maps are the ArcGIS format for maps, Web Scenes are the ArcGIS format for scenes. These scenes can be stored in ArcGIS Online or Portal.
PlayKmlToursPlay tours in KML files.
SceneLayerSelectionIdentify GeoElements in a scene layer.
SceneLayerUrlDisplay an ArcGIS scene layer from a URL.
ScenePropertiesExpressionsUpdate the orientation of a graphic using scene property rotation expressions.
SceneSymbolsShow various kinds of 3D symbols in a scene.
SurfacePlacementsPosition graphics relative to a surface using different surface placement modes.
TerrainExaggerationConfigure the vertical exaggeration of terrain (the ground surface) in a scene.
UseDistanceCompositeSymChange a graphic's symbol based on the camera's proximity to it.
ViewContentBeneathSurfaceSee through terrain in a scene and move the camera underground.
ViewPointCloudDataOfflineDisplay local 3D point cloud data.
ViewshedCameraAnalyze the viewshed for a camera. A viewshed shows the visible and obstructed areas from an observer's vantage point.
ViewshedGeoElementAnalyze the viewshed for an object (GeoElement) in a scene.
ViewshedLocationPerform a viewshed analysis from a defined vantage point. Viewshed analyses have several configuration options that are demonstrated in this sample.