Class: Sketchup::DimensionLinear
- Inherits:
-
Dimension
- Object
- Entity
- Drawingelement
- Dimension
- Sketchup::DimensionLinear
- Defined in:
- SketchUp/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.
-
#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=(vec) ⇒ 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.
-
#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 'SketchUp/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 'SketchUp/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 'SketchUp/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 'SketchUp/Sketchup/DimensionLinear.rb', line 108 def end=(pt_or_entity) 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.
122 123 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 122 def offset_vector end |
#offset_vector=(vec) ⇒ 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.
141 142 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 141 def offset_vector=(vec) end |
#start ⇒ Object
The start method returns the point or entity the dimension is referencing at its start.
160 161 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 160 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.
189 190 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 189 def start=(pt_or_entity) 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
211 212 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 211 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
229 230 |
# File 'SketchUp/Sketchup/DimensionLinear.rb', line 229 def text_position=(pos) end |