Selector

class Selector[source]

Bases: QObject

Selector class manages all selection operations for the viewer.

Parameters:
renderercompas_viewer.components.renderer.Renderer

The renderer instance.

References

Attributes:
renderercompas_viewer.components.renderer.Renderer

The renderer instance.

enable_selectorbool

Enable the selector.

selectioncolorcompas.colors.Color

The color of the selected items.

ANTI_ALIASING_FACTORint

The anti-aliasing factor for the drag selection.

Methods

deselect_action

Deselect the object under the mouse cursor.

drag_deselection_action

Drag deselect the objects in the rectangle area.

drag_selection_action

Drag select the objects in the rectangle area.

multiselect_action

Multiselect the object under the mouse cursor.

read_instance_color

Paint the instance map quickly, and then read the color of the specified area.

select_action

Select the object under the mouse cursor.

Inherited Methods

blockSignals

childEvent

children

connect

connectNotify

customEvent

deleteLater

disconnect

disconnectNotify

dumpObjectInfo

dumpObjectTree

dynamicPropertyNames

emit

event

eventFilter

findChild

findChildren

inherits

installEventFilter

isQuickItemType

isSignalConnected

isWidgetType

isWindowType

killTimer

metaObject

moveToThread

objectName

parent

property

receivers

removeEventFilter

sender

senderSignalIndex

setObjectName

setParent

setProperty

signalsBlocked

startTimer

thread

timerEvent

tr