Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::ClassicCameraModifier Class Reference

Modifies camera behavior so it behaves like the original Altus 1.0 iOS camera. More...

Public Member Functions

void setTrackUp (bool enabled, double animationDuration)
 Enable or disable track-up mode. More...
 
void setTrackUpForwardDistance (double distance, double animationDuration)
 Set track-up forward distance in pixels. More...
 
void setCameraLocation (Transform transform, double animationDuration)
 Set camera location using a transform. More...
 
void setCameraLocation (double lat, double lon, double heightInMeters, double roll, double pitch, double yaw, double animationDuration)
 Set camera location using geographic location, altitude, and camera roll, pitch, and yaw. More...
 

Detailed Description

Modifies camera behavior so it behaves like the original Altus 1.0 iOS camera.

Member Function Documentation

void AltusUnified::ClassicCameraModifier::setCameraLocation ( Transform  transform,
double  animationDuration 
)

Set camera location using a transform.

void AltusUnified::ClassicCameraModifier::setCameraLocation ( double  lat,
double  lon,
double  heightInMeters,
double  roll,
double  pitch,
double  yaw,
double  animationDuration 
)

Set camera location using geographic location, altitude, and camera roll, pitch, and yaw.

Parameters
latLatitude to set camera position to.
lonLongitude to set camera position to.
heightInMetersAltitude in meters above sea level to set camera position to.
rollRoll of camera in degrees.
pitchPitch of camera in degrees.
yawYaw of camera in degrees. Number of seconds to animate this transition.
void AltusUnified::ClassicCameraModifier::setTrackUp ( bool  enabled,
double  animationDuration 
)

Enable or disable track-up mode.

void AltusUnified::ClassicCameraModifier::setTrackUpForwardDistance ( double  distance,
double  animationDuration 
)

Set track-up forward distance in pixels.