Class: Sketchup::Dimension
Relationships | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Drawingelement ,
Entity
|
|
Instance Chain:
self,
Drawingelement ,
Entity
|
|
Inherits: |
Sketchup::Drawingelement
|
Overview
The Dimension class provides base functionality for classes DimensionLinear
and DimensionRadial
. It’s not instantiable.
Constant Summary
-
ARROW_CLOSED =
Constants
nil
-
ARROW_DOT =
Stub value.
nil
-
ARROW_NONE =
Stub value.
nil
-
ARROW_OPEN =
Stub value.
nil
-
ARROW_SLASH =
Stub value.
nil
Instance Attribute Summary
-
#arrow_type ⇒ Object
rw
The arrow_type method retrieves the current arrow type of the dimension.
-
#arrow_type=(type) ⇒ Object
rw
The arrow_type= method sets the arrow type of the dimension.
-
#has_aligned_text=(value) ⇒ Object
rw
The has_aligned_text= method accepts true or false indicating whether the dimension’s text is aligned to the dimension or to the screen.
-
#has_aligned_text? ⇒ Boolean
rw
The has_aligned_text method is used to determine whether the dimension’s text is aligned to the dimension or to the screen.
-
#text ⇒ Object
rw
The text method is used to retrieve the dimension text.
-
#text=(text) ⇒ Object
rw
The text= method is used to set an override on the dimension text.
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
-
#add_observer(observer) ⇒ Object
The add_observer method is used to add a
DimensionObserver
to the dimension. -
#plane ⇒ Object
The plane method is used to retrieve the plane of the dimension.
-
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove a
DimensionObserver
from the dimension.
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
#arrow_type ⇒ Object
(rw)
The arrow_type method retrieves the current arrow type of the dimension. Valid arrow types are class constants:
-
Dimension::ARROW_NONE,
-
Dimension::ARROW_SLASH
-
Dimension::ARROW_DOT
-
Dimension::ARROW_CLOSED
-
Dimension::ARROW_OPEN
#arrow_type=(type) ⇒ Object
(rw)
The arrow_type= method sets the arrow type of the dimension. Valid arrow types are class constants:
-
Dimension::ARROW_NONE,
-
Dimension::ARROW_SLASH
-
Dimension::ARROW_DOT
-
Dimension::ARROW_CLOSED
-
Dimension::ARROW_OPEN
#has_aligned_text=(value) ⇒ Object
(rw)
The has_aligned_text= method accepts true or false indicating whether the dimension’s text is aligned to the dimension or to the screen.
#has_aligned_text? ⇒ Boolean
(rw)
The has_aligned_text method is used to determine whether the dimension’s text is aligned to the dimension or to the screen.
#text ⇒ Object
(rw)
The text method is used to retrieve the dimension text.
#text=(text) ⇒ Object
(rw)
The text= method is used to set an override on the dimension text.
Instance Method Details
#add_observer(observer) ⇒ Object
If the given observer responds to onTextChanged
, it will be added as a DimensionObserver
. If not, the base Entity#add_observer will be called.
The add_observer method is used to add a DimensionObserver
to the dimension.
#plane ⇒ Object
The plane method is used to retrieve the plane of the dimension. Refer to the ::Geom
module for information on how planes are represented.
#remove_observer(observer) ⇒ Object
The remove_observer method is used to remove a DimensionObserver
from the dimension. Note that, if the given observer responds to ‘onTextChanged’, it will be removed as a DimensionObserver
. If not, the base Entity
.remove_observer will be called.