OrbitGeoElementCameraController class final
A camera controller that supports orbital camera navigation around a stationary or moving GeoElement.
This camera controller is used to associate camera navigation and movement
with GeoElement objects, such as Graphic, Feature, and
DynamicEntity. When this controller
is set on the scene view, the interaction mode allows the user to rotate
around and zoom in and out from the
OrbitGeoElementCameraController.targetGeoElement
. If the object is moving,
the camera moves in synchronization with it and the camera position,
heading, pitch and roll automatically adjusts. If the GeoElement geometry
is a polyline or a polygon, the camera will focus on its center point. Once
you have applied this camera controller to an ArcGISSceneViewController,
you cannot change the OrbitGeoElementCameraController.targetGeoElement
nor
the viewpoint of the scene view.
- Inheritance
-
- Object
- CameraController
- OrbitGeoElementCameraController
Constructors
- OrbitGeoElementCameraController.new({required GeoElement targetGeoElement, required double distance})
-
Creates an OrbitGeoElementCameraController using a distance to the
specified GeoElement.
factory
Properties
- cameraDistance ↔ double
-
The distance from the target object to the camera.
getter/setter pair
- cameraHeadingOffset ↔ double
-
The heading of the camera relative to the target object.
getter/setter pair
- cameraPitchOffset ↔ double
-
The pitch of the camera relative to the target object.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoHeadingEnabled ↔ bool
-
True if the camera heading offset is updated with the target's heading,
false otherwise.
getter/setter pair
- isAutoPitchEnabled ↔ bool
-
True if the camera pitch offset is updated with the target's pitch, false
otherwise.
getter/setter pair
- isAutoRollEnabled ↔ bool
-
True if the camera roll offset is updated with the target's roll, false
otherwise.
getter/setter pair
- isCameraDistanceInteractive ↔ bool
-
True if a zoom interaction can affect the camera distance, false
otherwise.
getter/setter pair
- isCameraHeadingOffsetInteractive ↔ bool
-
True if a horizontal pan interaction can affect the camera heading offset,
false otherwise.
getter/setter pair
- isCameraPitchOffsetInteractive ↔ bool
-
True if a vertical pan interaction can affect the camera pitch offset,
false otherwise.
getter/setter pair
- maxCameraDistance ↔ double
-
The maximum distance from the camera to the target, in meters.
getter/setter pair
- maxCameraHeadingOffset ↔ double
-
The maximum camera heading offset relative to the target's GeoElement,
in degrees.
getter/setter pair
- maxCameraPitchOffset ↔ double
-
The maximum camera pitch offset relative to the target's GeoElement, in
degrees.
getter/setter pair
- minCameraDistance ↔ double
-
The minimum distance from the camera to the target, in meters.
getter/setter pair
- minCameraHeadingOffset ↔ double
-
The minimum camera heading offset relative to the target's GeoElement,
in degrees.
getter/setter pair
- minCameraPitchOffset ↔ double
-
The minimum camera pitch offset relative to the target's GeoElement, in
degrees.
getter/setter pair
-
onCameraDistanceChanged
→ Stream<
double> -
Sets a callback to be invoked when distance has changed for the camera
controller.
no setter
-
onCameraHeadingOffsetChanged
→ Stream<
double> -
Sets a callback to be invoked when heading has changed for the camera
controller.
no setter
-
onCameraPitchOffsetChanged
→ Stream<
double> -
Sets a callback to be invoked when pitch has changed for the camera
controller.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetGeoElement → GeoElement
-
The target geo element of the orbit camera controller.
no setter
- targetOffsetX ↔ double
-
The offset of the target focus point relative to the
OrbitGeoElementCameraController.targetGeoElement along its X axis in the
symbol coordinate system.
getter/setter pair
- targetOffsetY ↔ double
-
The offset of the target focus point relative to the
OrbitGeoElementCameraController.targetGeoElement along its Y axis in the
symbol coordinate system.
getter/setter pair
- targetOffsetZ ↔ double
-
The offset of the target focus point relative to the
OrbitGeoElementCameraController.targetGeoElement along its Z axis in the
symbol coordinate system.
getter/setter pair
- targetVerticalScreenFactor ↔ double
-
The target screen vertical factor of the orbit camera controller.
getter/setter pair
Methods
-
moveCamera(
{required double distanceDelta, required double headingDelta, required double pitchDelta, required double duration}) → Future< bool> - Animates the camera to a new position relative to the target.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setTargetOffsets(
{required double x, required double y, required double z, required double duration}) → Future< bool> - Animates the camera to a new position using the target offsets of the camera.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited