ManipulatorTrackball

class cee.utils.ManipulatorTrackball()

Constructors


Constructors

ManipulatorTrackball.constructor()
Return type:ManipulatorTrackball

Methods

deltaMatrix

ManipulatorTrackball.deltaMatrix()

Returns the relative translation of the view camera since the last updateTrackballCamera() call.

Return type:Mat4

endNavigation

ManipulatorTrackball.endNavigation()

Ends and stops tracking the current navigation operation

Return type:void

getCamera

ManipulatorTrackball.getCamera()

The camera tracked by the trackball manipulator.

Return type:Camera

getPrimaryNavigationType

ManipulatorTrackball.getPrimaryNavigationType()

Returns the primary navigation type used by the trackball manipulator.

Return type:NavigationType

setInvertZoomAndWalk

ManipulatorTrackball.setInvertZoomAndWalk(invert)
Arguments:
  • invert (boolean) – None

Invert the zoom and walk direction

Return type:void

setMinWalkTargetDistance

ManipulatorTrackball.setMinWalkTargetDistance(distance)
Arguments:
  • distance (number) – None

Sets the minimum distance the camera can be from the target point when walking.

Return type:void

setRotationAxis

ManipulatorTrackball.setRotationAxis(rotAxis)
Arguments:
  • rotAxis (Vec3) – None

The rotation axis used by the trackball manipulator. Set null to not constrain the rotation to a specific axis.

Return type:void

setRotationPoint

ManipulatorTrackball.setRotationPoint(rotPoint)
Arguments:
  • rotPoint (Vec3) – None

The rotation point used by the trackball manipulator

Return type:void

setRotationSensitivity

ManipulatorTrackball.setRotationSensitivity(sensitivity)
Arguments:
  • sensitivity (number) – None

Controls the sensitivity of the rotation operation.

Return type:void

setWalkSensitivity

ManipulatorTrackball.setWalkSensitivity(sensitivity)
Arguments:
  • sensitivity (number) – None

Controls the sensitivity of the walk operation.

Return type:void

startNavigation

ManipulatorTrackball.startNavigation(navigationType, x, y)
Arguments:
  • navigationType (NavigationType) – None
  • x (number) – None
  • y (number) – None

Begins the specified navigation type using the provided initial X/Y screen point

Return type:void

updateNavigation

ManipulatorTrackball.updateNavigation(x, y)
Arguments:
  • x (number) – None
  • y (number) – None

Updates the current primary navigation operation with the new provided X/Y screen point compared to the previously provided X/Y screen point.

Return type:boolean

updateTrackballCamera

ManipulatorTrackball.updateTrackballCamera(viewCamera)
Arguments:
  • viewCamera (Camera) – None

Provides the current state of the view camera to the trackball manipulator camera. This is used as a reference position to calculate the relative translation of the view camera.

Return type:void