Show / Hide Table of Contents

Class Scene

The scene is a container for layers. You use a scene together with a SceneView to display layers of geographic data in 3D.

Inheritance
Object
GeoModel
Scene
Implements
System.ComponentModel.INotifyPropertyChanged
ILoadable
GeoModel.AllLayers
GeoModel.Basemap
GeoModel.Bookmarks
GeoModel.InitialViewpoint
GeoModel.Item
GeoModel.LoadSettings
GeoModel.OperationalLayers
GeoModel.SpatialReference
GeoModel.Tables
GeoModel.TransportationNetworks
GeoModel.Version
GeoModel.FloorDefinition
GeoModel.FloorManager
GeoModel.GeotriggersInfo
GeoModel.LoadAsync()
GeoModel.RetryLoadAsync()
GeoModel.LoadStatus
GeoModel.LoadError
GeoModel.CancelLoad()
GeoModel.Loaded
GeoModel.LoadStatusChanged
GeoModel.PropertyChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Scene : GeoModel, INotifyPropertyChanged, ILoadable
Remarks

The scene contains layers of mapping data and information such as elevation data, renderers, and labels which define the scene's capabilities. You can access the scene content directly or, more commonly, visualize the scene in a scene view.

In an MVC architecture, the scene represents the model and the scene view represents the 3D view. The scene specifies how the geographic data is organized, and the scene view renders the data on the screen and allows users to interact with it.

A scene can contain a base surface, a basemap, and one or more operational layers:

  • A base surface is the default surface on which layers are draped or from which relative layers are offset. The ground height is provided by ElevationSource objects that are combined to make the Surface.
  • A basemap helps orient the user of the scene. It is composed of a collection of base layers, such as imagery or hillshade, that are draped on the surface, and/or reference layers such as street labels that are displayed on top of operational layers. This content is relatively static.
  • An operational layer provides content that is of unique interest to the app and the task at hand, such as data about earthquakes, traffic, or weather. This content can change frequently.

You can create a scene from an existing web scene using its URL or PortalItem. Alternatively, you can get a scene directly from a Scenes collection. Scene properties are hydrated when the scene is loaded.

If you create a new scene, the spatial reference of the first layer you add, which is typically the first layer in the Basemap, defines the spatial reference of the entire scene.

See Scenes 3D) for more information about scenes.

Constructors

Name Description
Scene()

Initializes a new instance of the Scene class.

Scene(Basemap)

Initializes a new instance of the Scene class with a Basemap.

Scene(BasemapStyle)

Initializes a new instance of the Scene class with a BasemapStyle.

Scene(SceneViewTilingScheme)

Initializes a new instance of the Scene class with a specific tiling scheme.

Scene(Item)

Initializes a new instance of the Scene class a portal item of type WebScene.

Scene(Uri)

Initializes a new instance of the Scene class with a Uri to a web scene.

Properties

Name Description
BaseSurface

Gets or sets the base surface for the scene.

SceneViewTilingScheme

Gets the SceneViewTilingScheme that defines how tile based data is rendered.

UnknownJson

Gets the unknown JSON from the source JSON.

UnsupportedJson

Gets the unsupported data from the source JSON.

Methods

Name Description
FromJson(String)

Creates a scene from the specified JSON.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.3
.NET100.13 - 200.3
.NET Windows100.13 - 200.3
.NET Android200.0 - 200.3
.NET iOS200.0 - 200.3
.NET Framework100.0 - 200.3
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.3

Relevant samples

Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Change atmosphere effect: Changes the appearance of the atmosphere in a scene.
Choose camera controller: Control the behavior of the camera in a scene.
In This Article
Back to top Copyright © 2022 Esri.