Class: Sketchup::LayersObserver Abstract
- Inherits:
-
Object
- Object
- Sketchup::LayersObserver
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 layers events.
Instance Method Summary # collapse
-
#onCurrentLayerChanged(layers, layer) ⇒ nil
The #onCurrentLayerChanged method is called when the user selects a different active layer.
-
#onLayerAdded(layers, layer) ⇒ nil
The #onLayerAdded method is called when a new layer is added to a model.
-
#onLayerChanged(layers, layer) ⇒ nil
The #onLayerChanged method is called when a layer is changed.
-
#onLayerFolderAdded(layers, layer_folder) ⇒ nil
The #onLayerFolderAdded method is called when a layer folder is added to a model.
-
#onLayerFolderChanged(layers, layer_folder) ⇒ nil
The #onLayerFolderChanged method is called when a layer folder changes one of its properties.
-
#onLayerFolderRemoved(layers, layer_folder) ⇒ nil
The #onLayerFolderRemoved method is called when a layer folder is removed from a model.
-
#onLayerRemoved(layers, layer) ⇒ nil
The #onLayerRemoved method is called when a layer is removed from a model.
-
#onParentFolderChanged(layers, layer) ⇒ nil
The #onParentFolderChanged method is called when a layer changes parent folder.
-
#onRemoveAllLayers(layers) ⇒ nil
The #onRemoveAllLayers method is called when all layer are removed from a model.
Instance Method Details
↑ #onCurrentLayerChanged(layers, layer) ⇒ nil
The #onCurrentLayerChanged method is called when the user selects a different active layer.
↑ #onLayerAdded(layers, layer) ⇒ nil
The #onLayerAdded method is called when a new layer is added to a model.
↑ #onLayerChanged(layers, layer) ⇒ nil
The #onLayerChanged method is called when a layer is changed.
↑ #onLayerFolderAdded(layers, layer_folder) ⇒ nil
The #onLayerFolderAdded method is called when a layer folder is added to a model.
↑ #onLayerFolderChanged(layers, layer_folder) ⇒ nil
The #onLayerFolderChanged method is called when a layer folder changes one of its properties.
↑ #onLayerFolderRemoved(layers, layer_folder) ⇒ nil
The #onLayerFolderRemoved method is called when a layer folder is removed from a model.
↑ #onLayerRemoved(layers, layer) ⇒ nil
The #onLayerRemoved method is called when a layer is removed from a model.
↑ #onParentFolderChanged(layers, layer) ⇒ nil
When a folder changes parent #onLayerFolderRemoved and #onLayerFolderAdded triggers.
The #onParentFolderChanged method is called when a layer changes parent folder.
↑ #onRemoveAllLayers(layers) ⇒ nil
The #onRemoveAllLayers method is called when all layer are removed from a model.