Class: Sketchup::Tools
- Inherits:
-
Object
- Object
- Sketchup::Tools
- Defined in:
- SketchUp/Sketchup/Tools.rb
Overview
The Tools class contains methods to manipulate a collection of SketchUp tools. You access this collection by calling the Model.tools method.
Instance Method Summary collapse
-
#active_tool_id ⇒ Object
The active_tool_id method is used to retrieve the active tool’s id.
-
#active_tool_name ⇒ Object
The active_tool_name method is used to retrieve the active tool’s name.
-
#add_observer(observer) ⇒ Object
The add_observer method is used to add an observer to the current object.
-
#model ⇒ Object
The model method is used to get the model associated with this tools object.
-
#pop_tool ⇒ Object
The pop_tool method is used to pop the last pushed tool on the tool stack.
-
#push_tool(tool) ⇒ Object
The push_tool method is used to push (aka activate) a user-defined tool.
-
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove an observer from the current object.
Instance Method Details
#active_tool_id ⇒ Object
The active_tool_id method is used to retrieve the active tool’s id.
24 25 |
# File 'SketchUp/Sketchup/Tools.rb', line 24 def active_tool_id end |
#active_tool_name ⇒ Object
The active_tool_name method is used to retrieve the active tool’s name.
40 41 |
# File 'SketchUp/Sketchup/Tools.rb', line 40 def active_tool_name end |
#add_observer(observer) ⇒ Object
The add_observer method is used to add an observer to the current object.
56 57 |
# File 'SketchUp/Sketchup/Tools.rb', line 56 def add_observer(observer) end |
#model ⇒ Object
The model method is used to get the model associated with this tools object.
69 70 |
# File 'SketchUp/Sketchup/Tools.rb', line 69 def model end |
#pop_tool ⇒ Object
The pop_tool method is used to pop the last pushed tool on the tool stack.
83 84 |
# File 'SketchUp/Sketchup/Tools.rb', line 83 def pop_tool end |
#push_tool(tool) ⇒ Object
The push_tool method is used to push (aka activate) a user-defined tool. See the Tool interface for details on creating your own SketchUp tool.
99 100 |
# File 'SketchUp/Sketchup/Tools.rb', line 99 def push_tool(tool) end |
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove an observer from the current object.
117 118 |
# File 'SketchUp/Sketchup/Tools.rb', line 117 def remove_observer(observer) end |