MapCamera

class MapCamera(address: Long) : GemNativeObj

Map Camera object.

Constructors

Link copied to clipboard
constructor(address: Long)

Types

Link copied to clipboard
object Companion

Map Camera companion

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Camera orientation (x,y,z,w)

Link copied to clipboard

Camera position (x,y,z)

Link copied to clipboard

The parent scene

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun generatePositionAndOrientation(lonLatDegAltMeters: Coordinates, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

Generate a position at lon,lat 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.

external fun generatePositionAndOrientationRelativeToCenteredTarget(targetLonLatDegAltMeters: Coordinates, targetHeadingPitchRollDeg: Tuple3d, cameraHeadingPitchDegDistanceMeters: Tuple3d, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

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).

external fun generatePositionAndOrientationRelativeToTarget(targetLonLatDegAltMeters: Coordinates, targetHeadingPitchRollDeg: Tuple3d, cameraHeadingPitchDegDistanceMeters: Tuple3d, cameraHeadingPitchRollDeg: Tuple3d, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

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.

external fun generatePositionAndOrientationTargetCentered(targetLonLatDegAltMeters: Coordinates, cameraHeadingPitchDegDistanceMeters: Tuple3d, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

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).

external fun generatePositionAndOrientationWithHeading(lonLatDegAltMeters: Coordinates, headingPitchRollDeg: Tuple3d, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

Generate a position at lon,lat in degrees, with respect to surface of focused sphere, altitude in meters above sphere (sea level), oriented toward the specified heading, pitch and roll.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun restoreCameraState(buff: DataBuffer): Int

Restore camera state from a previous save session buffer.

Link copied to clipboard
external fun saveCameraState(): DataBuffer?

Save camera state as binary internal format.

Link copied to clipboard
external fun setCameraOrientation(headingPitchRollDeg: Tuple3d)

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).

Link copied to clipboard
external fun setCameraPosition(lonLatDegAltMeters: Coordinates)

Set camera lon,lat 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.

Link copied to clipboard
external fun setCameraRelativeToCenteredTarget(targetLonLatDegAltMeters: Coordinates, targetHeadingPitchRollDeg: Tuple3d, cameraHeadingPitchDegDistanceMeters: Tuple3d)

Set camera looking toward a target position, all in the coordinate system of the focused target.

Link copied to clipboard
external fun setCameraRelativeToTarget(targetLonLatDegAltMeters: Coordinates, targetHeadingPitchRollDeg: Tuple3d, cameraHeadingPitchDegDistanceMeters: Tuple3d, cameraHeadingPitchRollDeg: Tuple3d)

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.

Link copied to clipboard
external fun setCameraTargetCentered(targetLonLatDegAltMeters: Coordinates, cameraHeadingPitchDegDistanceMeters: Tuple3d)

Set camera looking toward a target position, all in the coordinate system of the focused sphere.