Class: Sketchup::EntitiesObserver Abstract
- Inherits:
-
Object
- Object
- Sketchup::EntitiesObserver
Overview
To implement this observer, create a Ruby class of this type, override the desired methods, and add an instance of the observer to the objects of interests.
This observer interface is implemented to react to Entities collection events.
Direct Known Subclasses
Instance Method Summary # collapse
-
#onActiveSectionPlaneChanged(entities) ⇒ nil
The #onActiveSectionPlaneChanged method is invoked when a section plane within this entities is activated or the active one is deactivated.
-
#onElementAdded(entities, entity) ⇒ nil
The onElementAdded method is invoked when a single element is added to the Entities collection.
-
#onElementModified(entities, entity) ⇒ nil
The #onElementModified method is invoked whenever one or more elements in the collection are modified.
-
#onElementRemoved(entities, entity_id) ⇒ nil
The #onElementRemoved method is invoked when a single element is removed from the Entities collection.
-
#onEraseEntities(entities) ⇒ nil
The #onEraseEntities method is invoked when one or more entities are erased.
Instance Method Details
↑ #onActiveSectionPlaneChanged(entities) ⇒ nil
The #onActiveSectionPlaneChanged method is invoked when a section plane within this entities is activated or the active one is deactivated.
↑ #onElementAdded(entities, entity) ⇒ nil
The onElementAdded method is invoked when a single element is added to the Sketchup::Entities collection.
↑ #onElementModified(entities, entity) ⇒ nil
The #onElementModified method is invoked whenever one or more elements in the collection are modified.
↑ #onElementRemoved(entities, entity_id) ⇒ nil
The #onElementRemoved method is invoked when a single element is removed from the Sketchup::Entities collection. Note that the entity has been deleted and should not be used in anyway except to know that the entity has been deleted.
↑ #onEraseEntities(entities) ⇒ nil
The #onEraseEntities method is invoked when one or more entities are erased.