CameraOrbitOperator
-
class
Operators.Camera.CameraOrbitOperator() Index
Methods
addMappingclearMappinggetBimOrbitEnabledgetCameraRotationMomentumEnabledgetMomentumgetMomentumLossPerSecondgetOrbitFallbackModegetOrbitTargetgetPrimaryButtonisAnimatingisCurrentlyAnimatingsetBimOrbitEnabledsetCameraRotationMomentumEnabledsetMappingsetMomentumLossPerSecondsetOrbitFallbackModesetOrbitTargetsetPrimaryButtonstopAnimationsupportsAnimation
Methods
-
Operators.Camera.CameraOrbitOperator.addMapping() inherited
addMapping(button:Button, modifier:KeyModifiers?): voidAdds 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.
Parameters
button:
Buttonmodifier:
KeyModifiers= KeyModifiers.NoneReturns: void
-
Operators.Camera.CameraOrbitOperator.clearMapping() inherited
clearMapping(): voidClears any button and key modifier mappings for the operator.
Returns: void
-
Operators.Camera.CameraOrbitOperator.getBimOrbitEnabled() - getBimOrbitEnabled(): boolean
Returns true if BIM orbit is enabled.
Returns: boolean
-
Operators.Camera.CameraOrbitOperator.getCameraRotationMomentumEnabled() inherited
getCameraRotationMomentumEnabled(): booleanReturns: boolean
-
Operators.Camera.CameraOrbitOperator.getMomentum() inherited
getMomentum(): numberReturns: number
-
Operators.Camera.CameraOrbitOperator.getMomentumLossPerSecond() inherited
getMomentumLossPerSecond(): numberReturns: number
-
Operators.Camera.CameraOrbitOperator.getOrbitFallbackMode() - getOrbitFallbackMode():
OrbitFallbackModeGets the orbit fallback mode.
Returns:
OrbitFallbackModeorbit fallback mode
-
Operators.Camera.CameraOrbitOperator.getOrbitTarget() - getOrbitTarget():
Point3Gets the orbit target point.
Returns:
Point3orbit target
-
Operators.Camera.CameraOrbitOperator.getPrimaryButton() - getPrimaryButton():
ButtonReturns:
Buttonthe primary orbit button
-
Operators.Camera.CameraOrbitOperator.isAnimating() inherited
isAnimating(): booleanReturns: boolean
-
Operators.Camera.CameraOrbitOperator.isCurrentlyAnimating() inherited
isCurrentlyAnimating(): booleanReturns: boolean
-
Operators.Camera.CameraOrbitOperator.setBimOrbitEnabled() - setBimOrbitEnabled(bimOrbitEnabled: boolean): void
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.
Parameters
bimOrbitEnabled: booleanReturns: void
-
Operators.Camera.CameraOrbitOperator.setCameraRotationMomentumEnabled() inherited
setCameraRotationMomentumEnabled(val: boolean): voidParameters
val: booleanReturns: void
-
Operators.Camera.CameraOrbitOperator.setMapping() inherited
setMapping(button:Button, modifier:KeyModifiers?): voidSets the button and key modifier mapping for the operator.
Parameters
button:
Buttonmodifier:
KeyModifiers= KeyModifiers.NoneReturns: void
-
Operators.Camera.CameraOrbitOperator.setMomentumLossPerSecond() inherited
setMomentumLossPerSecond(amountLost: number): voidSets 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.
Parameters
amountLost: number
Proportion of momentum lost per secondReturns: void
-
Operators.Camera.CameraOrbitOperator.setOrbitFallbackMode() - setOrbitFallbackMode(fallbackMode:
OrbitFallbackMode): voidSets the fallback mode. This is used to specify whether to orbit around a set target, the model center, or camera target.
Parameters
fallbackMode:OrbitFallbackModeReturns: void
-
Operators.Camera.CameraOrbitOperator.setOrbitTarget() - setOrbitTarget(orbitTarget:
Point3): voidSets the orbit target for the orbit fallback mode OrbitTarget.
Parameters
orbitTarget:Point3Returns: void
-
Operators.Camera.CameraOrbitOperator.setPrimaryButton() - setPrimaryButton(button:
Button): voidSets the primary mouse button. When this button is pressed, we will orbit around the selected point on the model. If there is no selected point, the orbit fallback mode will be used for orbit.
Parameters
button:ButtonReturns: void
-
Operators.Camera.CameraOrbitOperator.stopAnimation() inherited
stopAnimation(): voidReturns: void
-
Operators.Camera.CameraOrbitOperator.supportsAnimation() inherited
supportsAnimation(): booleanReturns: boolean