Class: ModraUp::SelectionObserver
- Inherits:
-
Object
- Object
- ModraUp::SelectionObserver
Overview
The base class for selection observers. Plugins subclass it to implement onSelectionBulkChange / onSelectionCleared / onSelectionAdded / onSelectionRemoved.
Instance Method Summary # collapse
-
#onSelectionBulkChange(selection) ⇒ nil
Called when the selection set is bulk-replaced (e.g., by picking or box-selecting).
-
#onSelectionAdded(selection, entity) ⇒ nil
Called when a single entity is added to the selection set.
-
#onSelectionRemoved(selection, entity) ⇒ nil
Called when a single entity is removed from the selection.
-
#onSelectedRemoved(selection, entity) ⇒ nil
This alias, which is misspelled, is also called by SketchUp in addition to onSelectionRemoved. The host also dispatches this.
-
#onSelectionCleared(selection) ⇒ nil
Called when the selection set is cleared.
Instance Method Details
observer.onSelectionBulkChange(selection) ⇒ nil
Called when the selection set is bulk-replaced (e.g., by picking or box-selecting).
observer.onSelectionAdded(selection, entity) ⇒ nil
Called when a single entity is added to the selection set.
observer.onSelectionRemoved(selection, entity) ⇒ nil
Called when a single entity is removed from the selection.
observer.onSelectedRemoved(selection, entity) ⇒ nil
This alias, which is misspelled, is also called by SketchUp in addition to onSelectionRemoved. The host also dispatches this.
observer.onSelectionCleared(selection) ⇒ nil
Called when the selection set is cleared.