CameraController

Common surface shared by OrbitCameraController, MapCameraController and FlightCameraController — the operations that make sense for any manipulator-driven camera, so generic UI (a "reset view" button, save/restore of viewpoints) can drive whichever controller is active without caring about the control scheme. Mode-specific extras — flight's per-frame FlightCameraController.update — live on the concrete types, not here.

All three are created by their remember*CameraController factory; you never implement this yourself.

Inheritors

Functions

Link copied to clipboard
abstract fun jumpToBookmark(bookmark: Manipulator.Bookmark)

Restore a pose previously captured with saveBookmark.

Link copied to clipboard
abstract fun resetToHome()

Snap the camera back to the pose it had when this controller was created.

Link copied to clipboard

Capture the current camera pose as a bookmark to restore later with jumpToBookmark.

Link copied to clipboard
abstract fun setViewport(width: Int, height: Int)

Viewport size in px. Kept in sync automatically by the matching gesture modifier; call manually only when driving the manipulator without one.