Class LocalSceneView
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.UI.Controls
Assembly: Esri.ArcGISRuntime.WPF.dll
Syntax
public class LocalSceneView : GeoView, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, INotifyPropertyChanged
Remarks
Local scenes are used to view local 3D data in projected coordinate systems.
To display a local scene, add this view to your app and assign a local scene to it via Scene. This view loads the local scene and its content, such as the Basemap, OperationalLayers, and Surface, and then renders the local scene on screen.
IFloorAware is not supported in this view. Any layer floor-aware configurations are ignored.
Navigation:
Pan, zoom, tilt, rotate, identify, and selection user interactions are supported in this view using touch, mouse, keyboard, or pen/pencil.
Programmatic Navigation:
The visible area (Viewpoint) of the local scene view is defined by the visible extent of the local scene. You can programmatically set the visible area by specifying a viewpoint. For example, SetViewpoint(Viewpoint) sets the visible area to a viewpoint, or SetViewpointCamera(Camera) sets the visible area by moving the camera. To apply a smooth transition animation, use SetViewpointAsync(Viewpoint) or SetViewpointCameraAsync(Camera).
View errors:
This view supports multiple error notifications to help diagnose rendering and data issues:
- CriticalErrorChanged: the view is unusable and cannot recover.
- GeoModelErrorChanged: the view is usable, but nothing is displaying due to a geo model issue.
- WarningsChanged: the view is usable, but something may not look correct or as expected.
Constructors
| Name | Description |
|---|---|
| LocalSceneView() | Initializes a new instance of the LocalSceneView class. |
Fields
| Name | Description |
|---|---|
| InteractionOptionsProperty | Identifies the InteractionOptions Dependency Property. |
| SceneProperty | Identifies the Scene dependency property |
Properties
| Name | Description |
|---|---|
| Camera | Gets the current Camera for the view. |
| InteractionOptions | Gets or sets a set of properties that control user interaction with the LocalSceneView. |
| Scene | Gets or sets the scene that the LocalSceneView is displaying. |
| Warnings | Gets the warnings on the local scene view. |
Methods
| Name | Description |
|---|---|
| CancelSetViewpointOperations() | Cancels any pending or currently running SetViewpointAsync operations. |
| LocationToScreen(MapPoint) | Converts a location in map coordinates to a point in screen coordinates relative to the upper-left corner of the local scene view. |
| LocationToScreen(MapPoint, out LocationVisibility) | Converts a location in map coordinates to a point in screen coordinates relative to the upper-left corner of the local scene view. |
| ScreenToBaseSurface(Point) | Converts a screen coordinate to a location on the base surface in scene coordinates, considering only the scene's base surface and ignoring other scene content. |
| ScreenToLocationAsync(Point, CancellationToken) | Asynchronously converts a screen coordinate, relative to the upper-left corner of the LocalSceneView, to a location in scene coordinates. |
| SetViewpointAsync(Viewpoint, TimeSpan, AnimationCurve) | Pans or zooms the local scene view using animation to the specified viewpoint location asynchronously. The animation takes place over the specified duration. The animation curve defines the animation easing function. |
| SetViewpointCamera(Camera) | Immediately changes the display to the viewpoint specified by the given camera. |
| SetViewpointCameraAsync(Camera) | Changes the scene view to the new camera viewpoint asynchronously. |
| SetViewpointCameraAsync(Camera, TimeSpan) | Animates the display to the viewpoint specified by the given camera using the specified duration to arrive. |
Events
| Name | Description |
|---|---|
| WarningsChanged | Raised when the Warnings have changed on the view. |
Applies to
| Target | Versions |
|---|---|
| .NET Windows | 300 |