CameraTurntableOperator

class Communicator.Operator.CameraTurntableOperator()

Type aliases


Type aliases

CameraRotateFunction

Methods

addMapping

Communicator.Operator.CameraTurntableOperator.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 (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void

clearMapping

Communicator.Operator.CameraTurntableOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type

void

getCameraRotationMomentumEnabled

Communicator.Operator.CameraTurntableOperator.getCameraRotationMomentumEnabled()
Return type

boolean

getMomentum

Communicator.Operator.CameraTurntableOperator.getMomentum()
Return type

number

getMomentumLossPerSecond

Communicator.Operator.CameraTurntableOperator.getMomentumLossPerSecond()
Return type

number

isAnimating

Communicator.Operator.CameraTurntableOperator.isAnimating()
Return type

boolean

isCurrentlyAnimating

Communicator.Operator.CameraTurntableOperator.isCurrentlyAnimating()
Return type

boolean

setCameraRotationMomentumEnabled

Communicator.Operator.CameraTurntableOperator.setCameraRotationMomentumEnabled(val)
Arguments
  • val (boolean()) –

Return type

void

setMapping

Communicator.Operator.CameraTurntableOperator.setMapping(button, modifier)

Sets the button and key modifier mapping for the operator.

Arguments
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void

setMomentumLossPerSecond

Communicator.Operator.CameraTurntableOperator.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

setRotationAxis

Communicator.Operator.CameraTurntableOperator.setRotationAxis(axis)

Sets the rotation axis.

Arguments
  • axis ({  }()) – Axis or [[Point3]] used to set the rotation axis.

Return type

boolean

stopAnimation

Communicator.Operator.CameraTurntableOperator.stopAnimation()
Return type

void

supportsAnimation

Communicator.Operator.CameraTurntableOperator.supportsAnimation()
Return type

boolean