Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 | SDK Documentation | Builds | BA3 Home |
Public Member Functions | |
LongPressInputHandler (Scene scene, LongPressDelegate del, RawInputHandler nextInputHandler) | |
Constructor More... | |
void | setLongPressDuration (float durationInSeconds) |
void | update (TimeStamp timeStamp) |
Callback for update More... | |
void | motion (MouseMotionEvent motionEvent, TimeStamp timeStamp) |
Callback for mouse motion More... | |
void | down (MouseButtonEvent buttonEvent, TimeStamp timeStamp) |
Callback for mouse down More... | |
void | up (MouseButtonEvent buttonEvent, TimeStamp timeStamp) |
Callback for mouse up More... | |
void | wheel (MouseWheelEvent wheelEvent, TimeStamp timeStamp) |
Callback for mouse wheel More... | |
void | zoomIn (ScreenSpacePercentagePoint curScreenPoint, double amount) |
Callback for zoom in More... | |
void | zoomOut (ScreenSpacePercentagePoint curScreenPoint, double amount) |
Callback for zoom out More... | |
void | keyDown (KeyboardEvent keyEvent, TimeStamp timeStamp) |
Callback for key down More... | |
void | keyUp (KeyboardEvent keyEvent, TimeStamp timeStamp) |
Callback for key up More... | |
void | fingerDown (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger down More... | |
void | fingerUp (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger up More... | |
void | fingerMotion (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger motion More... | |
void | setMinMaxAltitude (double minAltitudeInMeters, double maxAltitudeInMeters) |
Sets the minimum and maximum altitude More... | |
void | setPanEnabled (bool enabled) |
Enables or disables panning More... | |
void | setZoomEnabled (bool enabled) |
Enables or disables zooming More... | |
Public Member Functions inherited from AltusUnified::RawInputHandler | |
void | update (TimeStamp timeStamp) |
Callback for update More... | |
void | motion (MouseMotionEvent motionEvent, TimeStamp timeStamp) |
Callback for mouse motion More... | |
void | down (MouseButtonEvent buttonEvent, TimeStamp timeStamp) |
Callback for mouse down More... | |
void | up (MouseButtonEvent buttonEvent, TimeStamp timeStamp) |
Callback for mouse up More... | |
void | wheel (MouseWheelEvent wheelEvent, TimeStamp timeStamp) |
Callback for mouse wheel More... | |
void | zoomIn (ScreenSpacePercentagePoint curScreenPoint, double amount) |
Callback for zoom in More... | |
void | zoomOut (ScreenSpacePercentagePoint curScreenPoint, double amount) |
Callback for zoom out More... | |
void | keyDown (KeyboardEvent keyEvent, TimeStamp timeStamp) |
Callback for key down More... | |
void | keyUp (KeyboardEvent keyEvent, TimeStamp timeStamp) |
Callback for key up More... | |
void | fingerDown (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger down More... | |
void | fingerUp (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger up More... | |
void | fingerMotion (TouchFingerEvent touchEvent, TimeStamp timeStamp) |
Callback for finger motion More... | |
void | setMinMaxAltitude (double minAltitudeInMeters, double maxAltitudeInMeters) |
Sets the minimum and maximum altitude More... | |
void | setPanEnabled (bool enabled) |
Enables or disables panning More... | |
void | setZoomEnabled (bool enabled) |
Enables or disables zooming More... | |
AltusUnified::LongPressInputHandler::LongPressInputHandler | ( | Scene | scene, |
LongPressDelegate | del, | ||
RawInputHandler | nextInputHandler | ||
) |
Constructor
scene | The scene to effect |
del | A LongPressDelegate that will receive LongPress events. |
nextInputHandler | A RawInputHandler that will handle the raw input if a long press is not detected. This effectively creates a chain of InputHandlers. |
void AltusUnified::LongPressInputHandler::down | ( | MouseButtonEvent | buttonEvent, |
TimeStamp | timeStamp | ||
) |
Callback for mouse down
buttonEvent | The MouseButtonEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::fingerDown | ( | TouchFingerEvent | touchEvent, |
TimeStamp | timeStamp | ||
) |
Callback for finger down
touchEvent | The TouchFingerEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::fingerMotion | ( | TouchFingerEvent | touchEvent, |
TimeStamp | timeStamp | ||
) |
Callback for finger motion
touchEvent | The TouchFingerEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::fingerUp | ( | TouchFingerEvent | touchEvent, |
TimeStamp | timeStamp | ||
) |
Callback for finger up
touchEvent | The TouchFingerEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::keyDown | ( | KeyboardEvent | keyEvent, |
TimeStamp | timeStamp | ||
) |
Callback for key down
keyEvent | The KeyboardEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::keyUp | ( | KeyboardEvent | keyEvent, |
TimeStamp | timeStamp | ||
) |
Callback for key up
keyEvent | The KeyboardEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::motion | ( | MouseMotionEvent | motionEvent, |
TimeStamp | timeStamp | ||
) |
Callback for mouse motion
motionEvent | The MouseMotionEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::setLongPressDuration | ( | float | durationInSeconds | ) |
void AltusUnified::LongPressInputHandler::setMinMaxAltitude | ( | double | minAltitudeInMeters, |
double | maxAltitudeInMeters | ||
) |
Sets the minimum and maximum altitude
void AltusUnified::LongPressInputHandler::setPanEnabled | ( | bool | enabled | ) |
Enables or disables panning
void AltusUnified::LongPressInputHandler::setZoomEnabled | ( | bool | enabled | ) |
Enables or disables zooming
void AltusUnified::LongPressInputHandler::up | ( | MouseButtonEvent | buttonEvent, |
TimeStamp | timeStamp | ||
) |
Callback for mouse up
buttonEvent | The MouseButtonEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::update | ( | TimeStamp | timeStamp | ) |
Callback for update
void AltusUnified::LongPressInputHandler::wheel | ( | MouseWheelEvent | wheelEvent, |
TimeStamp | timeStamp | ||
) |
Callback for mouse wheel
wheelEvent | The MouseWheelEvent |
timeStamp | The TimeStamp |
void AltusUnified::LongPressInputHandler::zoomIn | ( | ScreenSpacePercentagePoint | curScreenPoint, |
double | amount | ||
) |
Callback for zoom in
curScreenPoint | The point of the screen to zoom into |
amount | The amount to zoom, where 1 means "a normal amount" and 2 would mean "even more, please!" |
void AltusUnified::LongPressInputHandler::zoomOut | ( | ScreenSpacePercentagePoint | curScreenPoint, |
double | amount | ||
) |
Callback for zoom out
curScreenPoint | The point of the screen to zoom into |
amount | The amount to zoom, where 1 means "a normal amount" and 2 would mean "even more, please!" |