Class: ModraUp::EntitiesObserver
- Inherits:
-
Object
- Object
- ModraUp::EntitiesObserver
Overview
Entities Observer. Registered via ModraUp::Entities#add_observer.
Instance Method Summary # collapse
-
#onElementAdded(entities, entity) ⇒ nil
Called after an edge, face, or instance is added.
-
#onElementModified(entities, entity) ⇒ nil
Called after changes such as transformations, locking, materials, etc. are made.
-
#onElementRemoved(entities, entity_id) ⇒ nil
Called when an element is removed. ModraUp::Drawingelement#erase! and ModraUp::Entities#erase_entities supply the entityID. The viewport eraser dispatches only #onEraseEntities because the removal notice carries no per-entity IDs.
-
#onEraseEntities(entities) ⇒ nil
Called when entities are batch erased. The Ruby ModraUp::Drawingelement#erase! method and viewport erasers will dispatch this.
-
#onActiveSectionPlaneChanged(entities) ⇒ nil
Active section plane changed. The current host does not dispatch this.
Instance Method Details
observer.onElementAdded(entities, entity) ⇒ nil
Called after an edge, face, or instance is added.
observer.onElementModified(entities, entity) ⇒ nil
Called after changes such as transformations, locking, materials, etc. are made.
observer.onElementRemoved(entities, entity_id) ⇒ nil
Called when an element is removed. ModraUp::Drawingelement#erase! and ModraUp::Entities#erase_entities supply the entityID. The viewport eraser dispatches only #onEraseEntities because the removal notice carries no per-entity IDs.
observer.onEraseEntities(entities) ⇒ nil
Called when entities are batch erased. The Ruby ModraUp::Drawingelement#erase! method and viewport erasers will dispatch this.
observer.onActiveSectionPlaneChanged(entities) ⇒ nil
Active section plane changed. The current host does not dispatch this.