Class Camera
Used for defining the perspective of a scene. It is a visual snapshot of an observation of the Earth with various layers displayed in a SceneView.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Camera
Remarks
A Camera object can literally be thought of as a camera that one would look through to see a viewable extent and perspective of the Earth. Depending on how you hold the camera and how far away from the ground will determine what you can see. These positions of holding the camera represent the various Properties that you can set on the Camera object.
The Camera Class is immutable which means that you can not change its parameters once it is created. There are methods in the Camera class that would give you a new Camera with the adjusted parameters.
Constructors
Name | Description |
---|---|
Camera(MapPoint, Double, Double, Double) | Initializes a new instance of the Camera class. |
Camera(MapPoint, Double, Double, Double, Double) | Initializes a new instance of the Camera class. |
Camera(TransformationMatrix) | Initializes a new instance of the Camera class using a transformation matrix. |
Camera(Double, Double, Double, Double, Double, Double) | Initializes a new instance of the Camera class. |
Properties
Name | Description |
---|---|
Heading | Gets the heading property which represents the angle from north in an ENU (East, North, Up Ground reference frames). Value ranges from 0 to 360 degrees. To set the heading use the |
Location | Gets the point in space where the camera is located. To set the point use the Camera.MoveTo Method or establish the location as part of one of the Camera Constructors. |
Pitch | Gets the pitch property which represents the angle of pitch applied to the camera with rotation around Y-axis in an ENU (East, North, Up Ground reference frames). Value ranges from 0 to 180 degrees, where 0 is looking straight down (center of the earth) and 180 looking straight up (towards outer space). |
Roll | Gets the roll property which represents the angle of roll applied to the camera with rotation around X-axis in an ENU (East, North, Up Ground reference frames). Value ranges from 0 to 360 degrees, where 0 is horizontal. |
Transformation | Gets the camera's Transformation Matrix. |
Methods
Name | Description |
---|---|
Elevate(Double) | Returns a new Camera with applied elevation. |
MoveForward(Double) | Returns a new Camera with updated position. |
MoveTo(MapPoint) | Returns a new Camera with a new center position. Location is the point in space where the camera is located. Setting the location can be done using this Method or establish the location as part of one of the Camera Constructors. |
MoveToward(MapPoint, Double) | Returns a new Camera centered at calculated location. |
RotateAround(MapPoint, Double, Double, Double) | Returns a new Camera with changes centered at specified location. |
RotateTo(Double, Double, Double) | Returns a new Camera with applied rotation. |
ZoomToward(MapPoint, Double) | Returns a new Camera centered at calculated location. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |