SelectionOperator
- class Communicator.Operator.SelectionOperator()
Methods
Methods
addMapping
- SelectionOperator.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 (Button) –
modifier (KeyModifiers) – optional
- Return type
void
clearMapping
- SelectionOperator.clearMapping()
Clears any button and key modifier mappings for the operator.
- Return type
void
getForceEffectiveSceneVisibilityMask
- SelectionOperator.getForceEffectiveSceneVisibilityMask()
Gets the mask used for forcing effective scene visibility during selection.
- Deprecated
Use
getPickConfig
instead.- Return type
getPickConfig
- SelectionOperator.getPickConfig()
Returns the
PickConfig
that will be passed toView.pickFromPoint
- Return type
getSelectionButton
setDoubleClickFitWorldEnabled
- SelectionOperator.setDoubleClickFitWorldEnabled(doubleClickFitWorld)
When enabled, a double click will fit the view to the model bounding box.
- Arguments
doubleClickFitWorld (
boolean()
) –
- Return type
void
setForceEffectiveSceneVisibilityMask
- SelectionOperator.setForceEffectiveSceneVisibilityMask(mask)
Sets the mask used for forcing effective scene visibility during selection.
This setting overrides the value passed to
setPickConfig
Passingnull
causes the value passed tosetPickConfig
to be used.- Deprecated
Use
setPickConfig
instead.- Arguments
mask (SelectionMask | null) –
- Return type
void
This setting overrides the value passed to
setPickConfig
Passingnull
causes the value passed tosetPickConfig
to be used.
setMapping
- SelectionOperator.setMapping(button[, modifier])
Sets the button and key modifier mapping for the operator.
- Arguments
button (Button) –
modifier (KeyModifiers) – optional
- Return type
void
setPickConfig
- SelectionOperator.setPickConfig(config)
Sets the
PickConfig
that will be passed toView.pickFromPoint
- Arguments
config (
PickConfig()
) –
- Return type
void