CameraOrbitOperator
- class Communicator.Operator.CameraOrbitOperator()
Type aliases
Methods
Type aliases
CameraRotateFunction
Methods
addMapping
- CameraOrbitOperator.addMapping(button[, modifier])
Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.
- Arguments
button (Button) –
modifier (KeyModifiers) – optional
- Return type
void
clearMapping
- CameraOrbitOperator.clearMapping()
Clears any button and key modifier mappings for the operator.
- Return type
void
getBimOrbitEnabled
- CameraOrbitOperator.getBimOrbitEnabled()
Returns true if BIM orbit is enabled.
- Return type
boolean
getCameraRotationMomentumEnabled
- CameraOrbitOperator.getCameraRotationMomentumEnabled()
- Return type
boolean
getMomentum
- CameraOrbitOperator.getMomentum()
- Return type
number
getMomentumLossPerSecond
- CameraOrbitOperator.getMomentumLossPerSecond()
- Return type
number
getOrbitFallbackMode
- CameraOrbitOperator.getOrbitFallbackMode()
Gets the orbit fallback mode.
- Return type
- Returns
orbit fallback mode
getOrbitTarget
getPrimaryButton
isAnimating
- CameraOrbitOperator.isAnimating()
- Return type
boolean
isCurrentlyAnimating
- CameraOrbitOperator.isCurrentlyAnimating()
- Return type
boolean
setBimOrbitEnabled
- CameraOrbitOperator.setBimOrbitEnabled(bimOrbitEnabled)
BIM orbit is intended to make orbiting building models easier. It slows the rotation speed, clamps vertical rotation to 180 degrees, and restricts horizontal rotation to rotate around the vertical axis.
- Arguments
bimOrbitEnabled (
boolean()
) –
- Return type
void
setCameraRotationMomentumEnabled
- CameraOrbitOperator.setCameraRotationMomentumEnabled(val)
- Arguments
val (
boolean()
) –
- Return type
void
setMapping
- CameraOrbitOperator.setMapping(button[, modifier])
Sets the button and key modifier mapping for the operator.
- Arguments
button (Button) –
modifier (KeyModifiers) – optional
- Return type
void
setMomentumLossPerSecond
- CameraOrbitOperator.setMomentumLossPerSecond(amountLost)
Sets proportion of momentum lost per second if camera rotation momentum is enabled. At 0 no momentum is lost and the camera will orbit indefinitely. Above 1 the camera will stop orbiting within a second of release. Only values greater than or equal to 0 are accepted.
- Arguments
amountLost (
number()
) – Proportion of momentum lost per second
- Return type
void
setOrbitFallbackMode
- CameraOrbitOperator.setOrbitFallbackMode(fallbackMode)
Sets the fallback mode. This is used to specify whether to orbit around a set target, the model center, or camera target.
- Arguments
fallbackMode (OrbitFallbackMode) –
- Return type
void
setOrbitTarget
setPrimaryButton
stopAnimation
- CameraOrbitOperator.stopAnimation()
- Return type
void
supportsAnimation
- CameraOrbitOperator.supportsAnimation()
- Return type
boolean