Class: Sketchup::HatchPatternData
- Inherits:
-
Object
- Object
- Sketchup::HatchPatternData
Overview
A HatchPatternData object holds the appearance settings of a hatch pattern detached from any named HatchPattern in the model. It is used to read and write the default section fill style stored in RenderingOptions#hatch_pattern.
The object returned by RenderingOptions#hatch_pattern is frozen, since it is a snapshot detached from the model. Mutate a dup of it (or a new instance) and assign it back to apply a change.
Instance Method Summary # collapse
-
#==(other) ⇒ Boolean
Two HatchPatternData objects are equal when all their settings match.
- #clear_fill_pattern ⇒ Sketchup::HatchPatternData
- #clear_fill_texture ⇒ Sketchup::HatchPatternData
-
#dup ⇒ Sketchup::HatchPatternData
The #dup method creates a copy of the HatchPatternData with all its properties.
- #fill_color ⇒ Sketchup::Color
- #fill_color=(color) ⇒ Object
- #fill_pattern_file_name ⇒ String
- #fill_texture_file_name ⇒ String
- #fill_texture_image ⇒ Sketchup::ImageRep?
- #initialize ⇒ Sketchup::HatchPatternData constructor
-
#rotation_angle ⇒ Float
The rotation angle is in degrees.
-
#rotation_angle=(angle) ⇒ Object
The rotation angle is in degrees.
- #save_fill_pattern_to_file(file_name) ⇒ Sketchup::HatchPatternData
-
#set_fill_pattern_from_file(file_name) ⇒ Sketchup::HatchPatternData
the file is loaded; any others are ignored.
-
#set_fill_texture_image_and_file_name(image, file_name) ⇒ Sketchup::HatchPatternData
The image and the file path it came from are set together, as a unit.
-
#set_uv_scale(u_scale, v_scale) ⇒ Sketchup::HatchPatternData
Both values must be positive.
-
#uv_scale ⇒ Array(Float, Float)
The scale is a factor applied to the pattern’s repeat; it is not a percentage.
Constructor Details
↑ #initialize ⇒ Sketchup::HatchPatternData
Instance Method Details
↑ #==(other) ⇒ Boolean
Two Sketchup::HatchPatternData objects are equal when all their settings match.
↑ #clear_fill_pattern ⇒ Sketchup::HatchPatternData
↑ #clear_fill_texture ⇒ Sketchup::HatchPatternData
↑ #dup ⇒ Sketchup::HatchPatternData
The #dup method creates a copy of the Sketchup::HatchPatternData with all its properties.
↑ #fill_color ⇒ Sketchup::Color
↑ #fill_color=(color) ⇒ Object
↑ #fill_texture_image ⇒ Sketchup::ImageRep?
↑ #rotation_angle ⇒ Float
The rotation angle is in degrees.
↑ #rotation_angle=(angle) ⇒ Object
The rotation angle is in degrees.
↑ #save_fill_pattern_to_file(file_name) ⇒ Sketchup::HatchPatternData
↑ #set_fill_pattern_from_file(file_name) ⇒ Sketchup::HatchPatternData
A .pat file may hold more than one pattern definition. Only the first definition in
the file is loaded; any others are ignored.
↑ #set_fill_texture_image_and_file_name(image, file_name) ⇒ Sketchup::HatchPatternData
The image and the file path it came from are set together, as a unit.
↑ #set_uv_scale(u_scale, v_scale) ⇒ Sketchup::HatchPatternData
Both values must be positive.