Class: Sketchup::Axes
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb
Overview
SketchUp’s drawing axes consist of three colored lines (red, green, blue), usually perpendicular to each other, displayed in the drawing area. The exception is when the user open an instance with a non-orthogonal transformation. The root model transformation is always orthogonal.
The drawing axes are used by drawing tools to align the geometry it creates as well as affecting the inference engine.
The plane where the red and green axes lines lie is called the ground plane. The term origin, is used to define the place where all of axes lines start or originate.
Instance Method Summary collapse
-
#axes ⇒ Object
The axes method returns the vectors representing the directions of the axes.
-
#origin ⇒ Object
The origin method returns the origin of the axes.
-
#set(origin, xaxis, yaxis, zaxis) ⇒ Object
The set method allows the axes to be manipulated.
-
#sketch_plane ⇒ Object
The sketch_plane method returns a plane representing the ground plane of the axes.
-
#to_a ⇒ Object
The axes method returns the origin and vectors representing the axes.
-
#transformation ⇒ Object
The transformation method returns the transformation of the axes.
-
#xaxis ⇒ Object
The xaxis method returns the x axis of the axes.
-
#yaxis ⇒ Object
The yaxis method returns the y axis of the axes.
-
#zaxis ⇒ Object
The zaxis method returns the z axis of the axes.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
#axes ⇒ Object
The axes method returns the vectors representing the directions of the axes.
29 30 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 29 def axes end |
#origin ⇒ Object
The origin method returns the origin of the axes.
40 41 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 40 def origin end |
#set(origin, xaxis, yaxis, zaxis) ⇒ Object
The set method allows the axes to be manipulated. The axes must always be orthogonal, otherwise an error is thrown.
66 67 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 66 def set(origin, xaxis, yaxis, zaxis) end |
#sketch_plane ⇒ Object
The sketch_plane method returns a plane representing the ground plane of the axes.
79 80 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 79 def sketch_plane end |
#to_a ⇒ Object
The axes method returns the origin and vectors representing the axes.
90 91 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 90 def to_a end |
#transformation ⇒ Object
The transformation method returns the transformation of the axes. This is useful when creating tools that respect the model’s drawing axes.
113 114 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 113 def transformation end |
#xaxis ⇒ Object
The xaxis method returns the x axis of the axes.
124 125 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 124 def xaxis end |
#yaxis ⇒ Object
The yaxis method returns the y axis of the axes.
135 136 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 135 def yaxis end |
#zaxis ⇒ Object
The zaxis method returns the z axis of the axes.
146 147 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb', line 146 def zaxis end |