SpaceMouseOperator

class Communicator.Operator.SpaceMouseOperator()

Provide camera movement for the 3Dconnexion SpaceMouse.

Constructors

constructor()

Methods

addMapping()

clearMapping()

connect()

setMapping()


Constructors

constructor

Communicator.Operator.SpaceMouseOperator.constructor(viewer)
Arguments
  • viewer (Communicator.WebViewer()) –

Return type

Communicator.Operator.SpaceMouseOperator

Methods

addMapping

Communicator.Operator.SpaceMouseOperator.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.SpaceMouseOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type

void

connect

Communicator.Operator.SpaceMouseOperator.connect()

Connect to the space mouse.

Return type

void

Note: If this is called but the 3d connexion software is not running, a connection error will be shown in the console.

setMapping

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

Sets the button and key modifier mapping for the operator.

Arguments
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void