MapCamera class Maps & 3D Scene

This class should not be instantiated directly. Instead, use the GemView.camera getter to obtain an instance.

Map Camera class

Constructors

MapCamera.init(int id, int mapId)

Properties

cameraOrientation Point3d
Set camera orientation, with respect to surface of focused sphere, and current camera position, using heading in degrees (0=N, 90=E, 180=S, 270=W).
no getter
cameraPosition Coordinates
Set camera longitude, latitude position in degrees, with respect to surface of focused sphere, altitude in meters above sphere (sea level), oriented toward the center of the sphere, north up.
no getter
cameraState Uint8List
Saves the current state of the camera into a binary format.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mapId int
no setter
orientation Point4d
Retrieves the current orientation of the camera.
getter/setter pair
pointerId int
no setter
position Point3d
Retrieves the current position of the camera.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generatePositionAndOrientation(Coordinates targetCoords) Pair<GemError, PositionOrientation>
Generate a position at longitude, latitude in degrees, with respect to surface of focused sphere, altitude in meters above sphere (sea level), oriented toward the center of the sphere, north up.
generatePositionAndOrientationHPR(Coordinates targetCoords, Point3d headingPitchRollDeg) Pair<GemError, PositionOrientation>
Generate a position at longitude, latitude in degrees, with respect to surface of focused sphere, altitude in meters above sphere (sea level), oriented toward the specified heading, pitch and roll.
generatePositionAndOrientationRelativeToCenteredTarget(Coordinates targetCoords, Point3d targetHeadingPitchRollDeg, Point3d cameraHeadingPitchDegDistanceMeters) Pair<GemError, PositionOrientation>
Generate a position and orientation relative to, and oriented toward/centered on, a target position which is relative to the focused sphere (orientation relative to target).
generatePositionAndOrientationRelativeToTarget(Coordinates targetCoords, Point3d targetHeadingPitchRollDeg, Point3d cameraHeadingPitchDegDistanceMeters, Point3d cameraHeadingPitchRollDeg) Pair<GemError, PositionOrientation>
Generate a position and orientation relative to a target position, looking in any direction relative to the direction toward the target, all in the coordinate system of the focused target.
generatePositionAndOrientationTargetCentered(Coordinates targetCoords, Point3d cameraHeadingPitchDegDistanceMeters) Pair<GemError, PositionOrientation>
Generate a position and orientation relative to, and oriented toward/centered on, a target position which is relative to the focused sphere (orientation relative to sphere).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCameraRelativeToCenteredTarget(Coordinates targetCoords, Point3d targetHeadingPitchRollDeg, Point3d cameraHeadingPitchDegDistanceMeters) → void
Set camera looking toward a target position, all in the coordinate system of the focused target.
setCameraRelativeToTarget(Coordinates targetCoords, Point3d targetHeadingPitchRollDeg, Point3d cameraHeadingPitchDegDistanceMeters, Point3d cameraHeadingPitchRollDeg) → void
Set camera relative to a target position, looking in any direction relative to the direction toward the target, all in the coordinate system of the focused target.
setCameraTargetCentered(Coordinates coords, Point3d pos) → void
Set camera looking toward a target position, all in the coordinate system of the focused sphere.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited