Class: Sketchup::ConstructionLine
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Drawingelement ,
Entity
|
|
Instance Chain:
self,
Drawingelement ,
Entity
|
|
Inherits: |
Sketchup::Drawingelement
|
Overview
The ConstructionLine class contains methods for modifying construction lines. Construction lines can be infinite in length, semi-infinite (i.e. infinite in one direction) or finite.
Instance Attribute Summary
-
#direction ⇒ Object
rw
The direction method retrieves a 3D vector in the direction of the construction line.
-
#direction=(vector) ⇒ Object
rw
The direction= method is used to set the direction of the construction line to a 3D vector.
-
#end ⇒ Object
rw
The end method retrieves the end point of a construction line in the form of a 3D point.
-
#end=(point) ⇒ Object
rw
The end= method is used to set the end point of the construction line.
-
#position ⇒ Object
rw
The position method is used to retrieve a 3D point used to create a construction line on an infinite construction line.
-
#position=(point) ⇒ Object
rw
The position= method is used to set a 3D point that the construction passes through.
-
#start ⇒ Object
rw
The start method is used to retrieve the starting point of a construction line.
-
#start=(point) ⇒ Object
rw
The start= method is used to set the start point of a construction line making the line’s length finite at the start.
-
#stipple ⇒ String
rw
The #stipple method is used to retrieve the stipple pattern used to display the construction line.
-
#stipple=(pattern)
rw
The #stipple= method is used to set the stipple pattern used to display the construction line.
Drawingelement
- Inherited
#casts_shadows= | The casts_shadows= method is used to set the |
#casts_shadows? | The casts_shadows? method is used to determine if the |
#hidden= | The hidden= method is used to set the hidden status for an element. |
#hidden? | The hidden? method is used to determine if the element is hidden. |
#layer | The layer method is used to retrieve the |
#layer= | The layer= method is used to set the layer for the drawing element. |
#material | The material method is used to retrieve the material for the drawing element. |
#material= | The material= method is used to set the material for the drawing element. |
#receives_shadows= | The receive_shadows= method is used to set the |
#receives_shadows? | The receive_shadows? method is used to determine if the |
#visible= | The visible= method is used to set the visible status for an element. |
#visible? | The visible? method is used to get the visible status for an element. |
Entity
- Inherited
Instance Method Summary
-
#reverse! ⇒ Object
The reverse! method is used to reverse the direction of the construction line.
Drawingelement
- Inherited
#bounds | The |
#erase! | The |
Entity
- Inherited
#add_observer | The add_observer method is used to add an observer to the current object. |
#attribute_dictionaries | The attribute_dictionaries method is used to retrieve the |
#attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
#delete_attribute | The |
#entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
#get_attribute | The |
#inspect | The |
#model | The model method is used to retrieve the model for the entity. |
#parent | The parent method is used to retrieve the parent of the entity. |
#persistent_id | The |
#remove_observer | The remove_observer method is used to remove an observer from the current object. |
#set_attribute | The set attribute is used to set the value of an attribute in an attribute dictionary with the given name. |
#to_s | The |
#typename | The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”. |
Instance Attribute Details
#direction ⇒ Object
(rw)
The direction method retrieves a 3D vector in the direction of the construction line.
#direction=(vector) ⇒ Object
(rw)
The direction= method is used to set the direction of the construction line to a 3D vector.
#end ⇒ Object
(rw)
The end method retrieves the end point of a construction line in the form of a 3D point.
If the construction line is infinite at the end, this returns nil.
#end=(point) ⇒ Object
(rw)
#end=(nil) ⇒ Object
Object
(rw)
#end=(nil) ⇒ Object
The end= method is used to set the end point of the construction line. This method will make the length finite at the end.
Set
the end to nil to make the construction line infinite at the end.
#position ⇒ Object
(rw)
The position method is used to retrieve a 3D point used to create a construction line on an infinite construction line.
#position=(point) ⇒ Object
(rw)
The position= method is used to set a 3D point that the construction passes through
#start ⇒ Object
(rw)
The start method is used to retrieve the starting point of a construction line.
If the construction line is infinite at the start, this returns nil.
#start=(point) ⇒ Object
(rw)
#start=(nil) ⇒ Object
Object
(rw)
#start=(nil) ⇒ Object
The start= method is used to set the start point of a construction line making the line’s length finite at the start.
Setting the start to nil will make the construction line infinite at the start.
#stipple ⇒ String (rw)
The #stipple
method is used to retrieve the stipple pattern used to display the construction line.
#stipple=(pattern) (rw)
The #stipple=
method is used to set the stipple pattern used to display the construction line. The stipple pattern is given as a string.
Valid strings are:
-
"."
(Dotted Line), -
"-"
(Short Dashes Line), -
"_"
(Long Dashes Line), -
"-.-"
(Dash Dot Dash Line).
Instance Method Details
#reverse! ⇒ Object
The reverse! method is used to reverse the direction of the construction line.