SelectionOperator

class Operators.SelectionOperator()

Methods

addMapping

SelectionOperator.addMapping(button, modifier)
Arguments:
  • button (Button()) – None
  • modifier (KeyModifiers()) – None

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.

Return type:void

clearMapping

SelectionOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type:void

getPickConfig

SelectionOperator.getPickConfig()

Returns the [[PickConfig]] that will be passed to [[View.pickFromPoint]].

Return type:PickConfig

getSelectionButton

SelectionOperator.getSelectionButton()

Gets the button used for selection.

Returns:Button
Return type:Button

setDoubleClickFitWorldEnabled

SelectionOperator.setDoubleClickFitWorldEnabled(doubleClickFitWorld)
Arguments:
  • doubleClickFitWorld (boolean()) – None

When enabled, a double click will fit the view to the model bounding box.

Return type:void

setMapping

SelectionOperator.setMapping(button, modifier)
Arguments:
  • button (Button()) – None
  • modifier (KeyModifiers()) – None

Sets the button and key modifier mapping for the operator.

Return type:void

setPickConfig

SelectionOperator.setPickConfig(config)
Arguments:

Sets the [[PickConfig]] that will be passed to [[View.pickFromPoint]].

Return type:void

setSelectionButton

SelectionOperator.setSelectionButton(button)
Arguments:
  • button (Button()) – None

Sets the button used for selection

Return type:void