ManipulatorTrackball
-
class
cee.utils.ManipulatorTrackball()
Constructors
-
cee.utils.ManipulatorTrackball.constructor() - ManipulatorTrackball():
ManipulatorTrackballReturns:
ManipulatorTrackball
Methods
-
cee.utils.ManipulatorTrackball.deltaMatrix() - deltaMatrix():
Mat4Returns the relative translation of the view camera since the last updateTrackballCamera() call.
Returns:
Mat4
- endNavigation(): void
Ends and stops tracking the current navigation operation
Returns: void
-
cee.utils.ManipulatorTrackball.getCamera() - getCamera():
CameraThe camera tracked by the trackball manipulator.
Returns:
Camera
- getPrimaryNavigationType():
NavigationTypeReturns the primary navigation type used by the trackball manipulator.
Returns:
NavigationType
-
cee.utils.ManipulatorTrackball.setInvertZoomAndWalk() - setInvertZoomAndWalk(invert: boolean): void
Invert the zoom and walk direction
Parameters
invert: booleanReturns: void
-
cee.utils.ManipulatorTrackball.setMinWalkTargetDistance() - setMinWalkTargetDistance(distance: number): void
Sets the minimum distance the camera can be from the target point when walking.
Parameters
distance: numberReturns: void
-
cee.utils.ManipulatorTrackball.setRotationAxis() - setRotationAxis(rotAxis:
Vec3): voidThe rotation axis used by the trackball manipulator. Set null to not constrain the rotation to a specific axis.
Parameters
rotAxis:Vec3Returns: void
-
cee.utils.ManipulatorTrackball.setRotationPoint() - setRotationPoint(rotPoint:
Vec3): voidThe rotation point used by the trackball manipulator
Parameters
rotPoint:Vec3Returns: void
-
cee.utils.ManipulatorTrackball.setRotationSensitivity() - setRotationSensitivity(sensitivity: number): void
Controls the sensitivity of the rotation operation.
Parameters
sensitivity: numberReturns: void
-
cee.utils.ManipulatorTrackball.setWalkSensitivity() - setWalkSensitivity(sensitivity: number): void
Controls the sensitivity of the walk operation.
Parameters
sensitivity: numberReturns: void
- startNavigation(navigationType:
NavigationType, x: number, y: number): voidBegins the specified navigation type using the provided initial X/Y screen point
Parameters
Returns: void
- updateNavigation(x: number, y: number): boolean
Updates the current primary navigation operation with the new provided X/Y screen point compared to the previously provided X/Y screen point.
Parameters
x: number
y: number
Returns: boolean
-
cee.utils.ManipulatorTrackball.updateTrackballCamera() - updateTrackballCamera(viewCamera:
Camera): voidProvides 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.
Parameters
viewCamera:CameraReturns: void