Class: Sketchup::DimensionLinear
- Inherits:
-
Dimension
- Object
- Entity
- Drawingelement
- Dimension
- Sketchup::DimensionLinear
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb
Overview
The DimensionLinear class represents linear dimensions.
Constant Summary collapse
- ALIGNED_TEXT_ABOVE =
Constants
nil
- ALIGNED_TEXT_CENTER =
Stub value.
nil
- ALIGNED_TEXT_OUTSIDE =
Stub value.
nil
- TEXT_CENTERED =
Stub value.
nil
- TEXT_OUTSIDE_END =
Stub value.
nil
- TEXT_OUTSIDE_START =
Stub value.
nil
Constants inherited from Dimension
Sketchup::Dimension::ARROW_CLOSED, Sketchup::Dimension::ARROW_DOT, Sketchup::Dimension::ARROW_NONE, Sketchup::Dimension::ARROW_OPEN, Sketchup::Dimension::ARROW_SLASH
Instance Method Summary collapse
-
#aligned_text_position ⇒ Object
The aligned_text_position method returns the text position for dimensions with aligned text (i.e. has_aligned_text? returns true).
-
#aligned_text_position=(pos) ⇒ Object
The aligned_text_position= method is used to set the text position for dimensions with aligned text (i.e. has_aligned_text? returns true).
-
#end ⇒ Object
The end method returns the point or entity the dimension is referencing at its end.
-
#end=(pt_or_entity) ⇒ Object
The end= method is used to set the end point of the dimension and/or the entity it is referencing.
-
#end_attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)?
The #end_attached_to method will return the attached end point via an array containing the InstancePath and Geom::Point3d.
-
#end_attached_to=(path) ⇒ Object
The #end_attached_to= method will attach the ending point to the InstancePath and Geom::Point3d.
-
#offset_vector ⇒ Object
The offset_vector method returns the parallel offset vector from the reference line to the dimension line measured from the ‘start’ reference point.
-
#offset_vector=(offset_vector) ⇒ Object
The offset_vector= method is used to set the parallel offset vector from the reference line to the dimension line measured from the ‘start’ reference point.
-
#start ⇒ Object
The start method returns the point or entity the dimension is referencing at its start.
-
#start=(pt_or_entity) ⇒ Object
The start= method is used to set the start point of the dimension and/or the entity it is referencing.
-
#start_attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)?
The #start_attached_to method will return the attached start point via an array containing the InstancePath and Geom::Point3d.
-
#start_attached_to=(path) ⇒ Object
The #start_attached_to= method will attach the starting point to the InstancePath and Geom::Point3d.
-
#text_position ⇒ Object
The text_position method returns the position of the text along the dimension line.
-
#text_position=(pos) ⇒ Object
The text_position= method is used to set the position of the text along the dimension line.
Methods inherited from Dimension
#add_observer, #arrow_type, #arrow_type=, #has_aligned_text=, #has_aligned_text?, #plane, #remove_observer, #text, #text=
Methods inherited from Drawingelement
#bounds, #casts_shadows=, #casts_shadows?, #erase!, #hidden=, #hidden?, #layer, #layer=, #material, #material=, #receives_shadows=, #receives_shadows?, #visible=, #visible?
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
#aligned_text_position ⇒ Object
The aligned_text_position method returns the text position for dimensions with aligned text (i.e. has_aligned_text? returns true). Valid values are class constants:
-
DimensionLinear::ALIGNED_TEXT_ABOVE
-
DimensionLinear::ALIGNED_TEXT_CENTER
-
DimensionLinear::ALIGNED_TEXT_OUTSIDE
41 42 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 41 def aligned_text_position end |
#aligned_text_position=(pos) ⇒ Object
The aligned_text_position= method is used to set the text position for dimensions with aligned text (i.e. has_aligned_text? returns true). Valid values are class constants:
-
DimensionLinear::ALIGNED_TEXT_ABOVE
-
DimensionLinear::ALIGNED_TEXT_CENTER
-
DimensionLinear::ALIGNED_TEXT_OUTSIDE
60 61 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 60 def aligned_text_position=(pos) end |
#end ⇒ Object
The end method returns the point or entity the dimension is referencing at its end.
79 80 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 79 def end end |
#end=(pt_or_entity) ⇒ Object
The end= method is used to set the end point of the dimension and/or the entity it is referencing.
108 109 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 108 def end=(pt_or_entity) end |
#end_attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)?
The #end_attached_to method will return the attached end point via an array containing the InstancePath and Geom::Point3d.
123 124 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 123 def end_attached_to end |
#end_attached_to=(path) ⇒ Object
The #end_attached_to= method will attach the ending point to the InstancePath and Geom::Point3d.
148 149 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 148 def end_attached_to=(path) end |
#offset_vector ⇒ Object
The offset_vector method returns the parallel offset vector from the reference line to the dimension line measured from the ‘start’ reference point.
162 163 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 162 def offset_vector end |
#offset_vector=(offset_vector) ⇒ Object
The offset_vector= method is used to set the parallel offset vector from the reference line to the dimension line measured from the ‘start’ reference point.
175 176 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 175 def offset_vector=(offset_vector) end |
#start ⇒ Object
The start method returns the point or entity the dimension is referencing at its start.
194 195 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 194 def start end |
#start=(pt_or_entity) ⇒ Object
The start= method is used to set the start point of the dimension and/or the entity it is referencing.
223 224 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 223 def start=(pt_or_entity) end |
#start_attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)?
The #start_attached_to method will return the attached start point via an array containing the InstancePath and Geom::Point3d.
238 239 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 238 def start_attached_to end |
#start_attached_to=(path) ⇒ Object
The #start_attached_to= method will attach the starting point to the InstancePath and Geom::Point3d.
263 264 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 263 def start_attached_to=(path) end |
#text_position ⇒ Object
The text_position method returns the position of the text along the dimension line. Valid values are class constants:
-
DimensionLinear::TEXT_OUTSIDE_START
-
DimensionLinear::TEXT_CENTERED
-
DimensionLinear::TEXT_OUTSIDE_END
285 286 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 285 def text_position end |
#text_position=(pos) ⇒ Object
The text_position= method is used to set the position of the text along the dimension line. Valid values are class constants:
-
DimensionLinear::TEXT_OUTSIDE_START
-
DimensionLinear::TEXT_CENTERED
-
DimensionLinear::TEXT_OUTSIDE_END
303 304 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb', line 303 def text_position=(pos) end |