Class: Sketchup::HatchPattern
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
An HatchPattern object represents an hatch pattern in the model.
Instance Attribute Summary
-
#fill_color ⇒ Sketchup::Color
rw
The #fill_color method retrieves the solid fill color of the
HatchPattern. -
#fill_color=(color)
rw
The #fill_color= method sets the solid fill color of the
HatchPattern. -
#name ⇒ String
rw
The #name method retrieves the name of the
HatchPattern. -
#name=(name)
rw
The #name= method sets the name for an
HatchPattern. -
#rotation_angle ⇒ Float
rw
The #rotation_angle method retrieves the rotation angle applied to the
HatchPattern, in degrees. -
#rotation_angle=(angle)
rw
The #rotation_angle= method sets the rotation angle applied to the
HatchPattern, in degrees.
Entity - Inherited
Instance Method Summary
-
#clear_fill_pattern ⇒ Sketchup::HatchPattern
The #clear_fill_pattern method removes the .pat line-pattern definition from the
HatchPattern. -
#clear_fill_texture ⇒ Sketchup::HatchPattern
The #clear_fill_texture method removes the texture fill from the
HatchPattern. -
#fill_pattern_file_name ⇒ String
The #fill_pattern_file_name method retrieves the file path the .pat line-pattern definition was loaded from.
-
#fill_texture_file_name ⇒ String
The #fill_texture_file_name method retrieves the file path the fill texture image was loaded from.
-
#fill_texture_image ⇒ Sketchup::ImageRep?
The #fill_texture_image method retrieves the fill texture image of the
HatchPattern, ornilif the pattern has no texture fill. -
#save_fill_pattern_to_file(file_name) ⇒ Sketchup::HatchPattern
The #save_fill_pattern_to_file method writes the .pat line-pattern definition to a file.
-
#set_fill_pattern_from_file(file_name) ⇒ Sketchup::HatchPattern
The #set_fill_pattern_from_file method loads a .pat line-pattern definition from a file.
-
#set_fill_texture_image_and_file_name(image, file_name) ⇒ Sketchup::HatchPattern
The #set_fill_texture_image_and_file_name method sets the fill texture image and the file path it came from together, as a unit.
-
#set_uv_scale(u_scale, v_scale) ⇒ Sketchup::HatchPattern
The #set_uv_scale method sets the UV scale of the
HatchPattern. -
#thumbnail_image ⇒ Sketchup::ImageRep
The #thumbnail_image method retrieves the cached preview image of the
HatchPattern. -
#uv_scale ⇒ Array(Float, Float)
The #uv_scale method retrieves the UV scale of the
HatchPatternas auandvpair. -
#write(path) ⇒ Boolean
Writes the hatch pattern to file as a .skh file.
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
#fill_color ⇒ Sketchup::Color (rw)
The #fill_color method retrieves the solid fill color of the HatchPattern.
#fill_color=(color) (rw)
The #fill_color= method sets the solid fill color of the HatchPattern.
#name ⇒ String (rw)
The #name method retrieves the name of the HatchPattern.
#name=(name) (rw)
The #name= method sets the name for an HatchPattern. The name must be non-empty and
unique within the model.
#rotation_angle ⇒ Float (rw)
The #rotation_angle method retrieves the rotation angle applied to the
HatchPattern, in degrees.
#rotation_angle=(angle) (rw)
The #rotation_angle= method sets the rotation angle applied to the HatchPattern,
in degrees.
Instance Method Details
#clear_fill_pattern ⇒ HatchPattern
The #clear_fill_pattern method removes the .pat line-pattern definition from the
HatchPattern.
#clear_fill_texture ⇒ HatchPattern
The #clear_fill_texture method removes the texture fill from the HatchPattern.
#fill_pattern_file_name ⇒ String
The #fill_pattern_file_name method retrieves the file path the .pat line-pattern definition
was loaded from.
#fill_texture_file_name ⇒ String
The #fill_texture_file_name method retrieves the file path the fill texture image was loaded
from.
#fill_texture_image ⇒ Sketchup::ImageRep?
The #fill_texture_image method retrieves the fill texture image of the
HatchPattern, or nil if the pattern has no texture fill.
#save_fill_pattern_to_file(file_name) ⇒ HatchPattern
The #save_fill_pattern_to_file method writes the .pat line-pattern definition to a file. This
writes only the pattern definition, not the whole hatch pattern; use #write for the latter.
#set_fill_pattern_from_file(file_name) ⇒ HatchPattern
A .pat file may hold more than one pattern definition. Only the first definition in
The #set_fill_pattern_from_file method loads a .pat line-pattern definition from a file.
the file is loaded; any others are ignored.
#set_fill_texture_image_and_file_name(image, file_name) ⇒ HatchPattern
The #set_fill_texture_image_and_file_name method sets the fill texture image and the file path
it came from together, as a unit.
#set_uv_scale(u_scale, v_scale) ⇒ HatchPattern
The #set_uv_scale method sets the UV scale of the HatchPattern. Both values must be
positive. The scale is a factor applied to the pattern's repeat; it is not a percentage.
#thumbnail_image ⇒ Sketchup::ImageRep
The #thumbnail_image method retrieves the cached preview image of the HatchPattern.
#uv_scale ⇒ Array(Float, Float)
The #uv_scale method retrieves the UV scale of the HatchPattern as a
u and v pair. The scale is a positive factor applied to the pattern's repeat; it is not
a percentage.
#write(path) ⇒ Boolean
Writes the hatch pattern to file as a .skh file.