Class: Sketchup::EntityObserver Abstract
- Inherits:
-
Object
- Object
- Sketchup::EntityObserver
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb
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 entity of interests.
The methods of this observer fire in such a way that making changes to the model while inside of them is dangerous. If you experience sudden crashes, it could be because of this observer. A potential workaround is to use a ToolsObserver to watch what the user is doing instead.
This observer interface is implemented to react to entity events.
Direct Known Subclasses
Instance Method Summary collapse
-
#onChangeEntity(entity) ⇒ nil
The #onChangeEntity method is invoked when your entity is modified.
-
#onEraseEntity(entity) ⇒ nil
The #onEraseEntity method is invoked when your entity is erased.
Instance Method Details
#onChangeEntity(entity) ⇒ nil
The #onChangeEntity method is invoked when your entity is modified.
42 43 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb', line 42 def onChangeEntity(entity) end |
#onEraseEntity(entity) ⇒ nil
The #onEraseEntity method is invoked when your entity is erased.
57 58 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb', line 57 def onEraseEntity(entity) end |