SelectionOperator

class Operators.SelectionOperator()

Methods

Operators.SelectionOperator.addMapping()

inherited

addMapping(button: Button, modifier: KeyModifiers?): void

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.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

Operators.SelectionOperator.clearMapping()

inherited

clearMapping(): void

Clears any button and key modifier mappings for the operator.

Returns: void

Operators.SelectionOperator.getPickConfig()
getPickConfig(): PickConfig

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

Returns: PickConfig

Operators.SelectionOperator.getSelectionButton()
getSelectionButton(): Button

Gets the button used for selection.

Returns: Button

Button
Operators.SelectionOperator.setDoubleClickFitWorldEnabled()
setDoubleClickFitWorldEnabled(doubleClickFitWorld: boolean): void

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

Parameters

doubleClickFitWorld: boolean

Returns: void

Operators.SelectionOperator.setMapping()

inherited

setMapping(button: Button, modifier: KeyModifiers?): void

Sets the button and key modifier mapping for the operator.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

Operators.SelectionOperator.setPickConfig()
setPickConfig(config: PickConfig): void

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

Parameters

config: PickConfig

Returns: void

Operators.SelectionOperator.setSelectionButton()
setSelectionButton(button: Button): void

Sets the button used for selection

Parameters

button: Button

Returns: void