Class: Sketchup::Image
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Drawingelement ,
Entity
|
|
Instance Chain:
self,
Drawingelement ,
Entity
|
|
Inherits: |
Sketchup::Drawingelement
|
Overview
An Image object represents a raster image placed in the Model
.
Instance Attribute Summary
-
#glued_to ⇒ Sketchup::Face, ...
rw
The #glued_to method is used to retrieve the entity that this image is glued to.
-
#glued_to=(drawing_element) ⇒ Sketchup::Face, ...
rw
The #glued_to= method glues this image to a drawing element.
-
#height ⇒ Object
rw
The height method is used to retrieve the height of the image.
-
#height=(height) ⇒ Object
rw
The height= method is used to set the height of the image.
-
#origin ⇒ Object
rw
The origin method is used to retrieve the 3D point that defines the origin of the image.
-
#origin=(point) ⇒ Object
rw
The origin= method is used to set the 3D point as the origin of the image.
-
#transformation ⇒ Object
rw
The transformation method is used to retrieve the transformation for the image.
-
#transformation=(transform) ⇒ Object
rw
The transformation= method is used to set the transformation for the image.
-
#width ⇒ Object
rw
The width method is used to retrieve the width of the image.
-
#width=(width) ⇒ Object
rw
The width= method is used to set the width of the image.
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
-
#explode ⇒ Object
The explode method is used to explode an image into a face with a texture on it.
-
#image_rep ⇒ Sketchup::ImageRep
The #image_rep method returns a copy of a
ImageRep
object representing the pixel data. -
#normal ⇒ Object
The normal method is used to retrieve the 3D Vector that is perpendicular to the plane of the image.
-
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
-
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
-
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
-
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
-
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
-
#zrotation ⇒ Object
The zrotation method is used to get the angle that the image is rotated about the normal vector from an arbitrary X axis.
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
#glued_to ⇒ Sketchup::Face, ... (rw)
The #glued_to
method is used to retrieve the entity that this image is glued to.
#glued_to=(drawing_element) ⇒ Sketchup::Face, ... (rw)
The glued_to=
method glues this image to a drawing element. When moving this other drawing elment with the Move tool, the image moves with it.
#height ⇒ Object
(rw)
The height method is used to retrieve the height of the image.
The height is given in inches.
#height=(height) ⇒ Object
(rw)
The height= method is used to set the height of the image.
The height is set in inches.
#origin ⇒ Object
(rw)
The origin method is used to retrieve the 3D point that defines the origin of the image.
#origin=(point) ⇒ Object
(rw)
The origin= method is used to set the 3D point as the origin of the image.
#transformation ⇒ Object
(rw)
The transformation method is used to retrieve the transformation for the image.
#transformation=(transform) ⇒ Object
(rw)
The transformation= method is used to set the transformation for the image.
#width ⇒ Object
(rw)
The width method is used to retrieve the width of the image.
The width is given in inches.
#width=(width) ⇒ Object
(rw)
The width= method is used to set the width of the image.
The width is set in inches.
Instance Method Details
#explode ⇒ Object
The explode method is used to explode an image into a face with a texture on it.
Note that current versions of SketchUp will return an empty array here. To work around this limitation you can iterate over your entities collection to determine which new entities were created.
Versions prior to SketchUp 2015 returned an empty array due to a bug.
#image_rep ⇒ Sketchup::ImageRep
The #image_rep
method returns a copy of a ImageRep
object representing the pixel data.
#normal ⇒ Object
The normal method is used to retrieve the 3D Vector that is perpendicular to the plane of the image.
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
#zrotation ⇒ Object
The zrotation method is used to get the angle that the image is rotated about the normal vector from an arbitrary X axis.