Class: Sketchup::Environment
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
An Environment object represents an environment in the model. Environments are used to control the background and lighting of the model. Environments can be used as skydomes, for reflections, and to link the sun to the environment.
Instance Attribute Summary
-
#description ⇒ String
rw
The #description method gets the description for an
Environment. -
#description=(description)
rw
The #description= method sets the description for an
Environment. -
#linked_sun=(linked_sun)
rw
The #linked_sun= method is used to set if the
Environmentis linked to the sun. -
#linked_sun? ⇒ Boolean
rw
The #linked_sun? method is used to determine if the
Environmentis linked to the sun. -
#linked_sun_position ⇒ Geom::Point3d
rw
The #linked_sun_position method is used to get the position of the sun linked to the
Environment. -
#linked_sun_position=(sun_position) ⇒ Geom::Point3d
rw
The #linked_sun_position= method is used to set the position of the sun linked to the
Environment. -
#name ⇒ String
rw
The #name method retrieves the name of the
Environment. -
#name=(name) ⇒ String
rw
The #name= method sets the name for an
Environment. -
#reflection_exposure ⇒ Float
rw
The #reflection_exposure method is used to get the exposure of the
Environmentfor reflections. -
#reflection_exposure=(reflection_exposure) ⇒ Float
rw
The #reflection_exposure= method is used to set the exposure of the
Environmentfor reflections. -
#rotation ⇒ Float
rw
The #rotation method is used to get the vertical rotation angle in degrees to apply to the
Environment. -
#rotation=(rotation) ⇒ Float
rw
The #rotation= method is used to set the the vertical rotation angle in degrees to apply to the
Environment. -
#skydome_exposure ⇒ Float
rw
The #skydome_exposure method is used to get the exposure of the
Environment. -
#skydome_exposure=(skydome_exposure) ⇒ Float
rw
The #skydome_exposure= method is used to set the exposure of the
Environment. -
#use_as_skydome=(use_as_skydome)
rw
The #use_as_skydome= method is used to set if the
Environmentis used as a skydome. -
#use_as_skydome? ⇒ Boolean
rw
The #use_as_skydome? method is used to determine if the
Environmentis used as a skydome. -
#use_for_reflections=(use_for_reflection)
rw
The #use_for_reflections= method is used to set if the
Environmentis used for reflections. -
#use_for_reflections? ⇒ Boolean
rw
The #use_for_reflections? method is used to determine if the
Environmentis used for reflections.
Entity - Inherited
Instance Method Summary
-
#path ⇒ String
The #path method is used to get the file name of the image or SKE file used for the
Environment. -
#thumbnail ⇒ Sketchup::ImageRep
The #thumbnail method is used to get the thumbnail image of the
Environment. -
#write_hdr(path) ⇒ String
The #write_hdr method writes the HDR, EXR or SKE image of the environment to a file in its original file type.
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
#description ⇒ String (rw)
The #description method gets the description for an Environment.
#description=(description) (rw)
The #description= method sets the description for an Environment.
#linked_sun=(linked_sun) (rw)
The #linked_sun= method is used to set if the Environment is linked to the sun. Shadow lighting is used to create realistic shadows in the scene, enhancing the visual quality.
#linked_sun? ⇒ Boolean (rw)
The #linked_sun? method is used to determine if the Environment is linked to the sun. This function returns a boolean value indicating whether the shadow light feature is currently enabled in the environment. Shadow lighting is used to create realistic shadows in the scene, enhancing the visual quality.
#linked_sun_position ⇒ Geom::Point3d (rw)
The #linked_sun_position method is used to get the position of the sun linked to the Environment. The position is a ::Geom::Point3d where the x must be in range [0.0, 1.0] and y must be in range [-1.0, 1.0].
#linked_sun_position=(sun_position) ⇒ Geom::Point3d (rw)
The #linked_sun_position= method is used to set the position of the sun linked to the Environment. The position is a ::Geom::Point3d where the x must be in range [0.0, 1.0] and y must be in range [-1.0, 1.0].
#name ⇒ String (rw)
The #name method retrieves the name of the Environment. This is the unique internal name of the object which should be used for retrieving the Environment from the model’s Environments.
#name=(name) ⇒ String (rw)
The #name= method sets the name for an Environment.
#reflection_exposure ⇒ Float (rw)
Reflection exposure is a value between 0.0 and 10.0, where 0.0 is no exposure and 10.0 is full exposure.
The #reflection_exposure method is used to get the exposure of the Environment for reflections.
#reflection_exposure=(reflection_exposure) ⇒ Float (rw)
Reflection exposure is a value between 0.0 and 10.0, where 0.0 is no exposure and 10.0 is full exposure.
The #reflection_exposure= method is used to set the exposure of the Environment for reflections.
#rotation ⇒ Float (rw)
The #rotation method is used to get the vertical rotation angle in degrees to apply to the Environment.
#rotation=(rotation) ⇒ Float (rw)
Rotation is a value between 0.0 and 360.0 degrees.
The #rotation= method is used to set the the vertical rotation angle in degrees to apply to the Environment.
#skydome_exposure ⇒ Float (rw)
Skydome exposure is a value between 0.0 and 20.0, where 0.0 is no exposure and 20.0 is full exposure.
The #skydome_exposure method is used to get the exposure of the Environment.
#skydome_exposure=(skydome_exposure) ⇒ Float (rw)
Skydome exposure is a value between 0.0 and 20.0, where 0.0 is no exposure and 20.0 is full exposure.
The #skydome_exposure= method is used to set the exposure of the Environment.
#use_as_skydome=(use_as_skydome) (rw)
The #use_as_skydome= method is used to set if the Environment is used as a skydome.
#use_as_skydome? ⇒ Boolean (rw)
The #use_as_skydome? method is used to determine if the Environment is used as a skydome.
#use_for_reflections=(use_for_reflection) (rw)
The #use_for_reflections= method is used to set if the Environment is used for reflections.
#use_for_reflections? ⇒ Boolean (rw)
The #use_for_reflections? method is used to determine if the Environment is used for reflections.
Instance Method Details
#path ⇒ String
The #path method is used to get the file name of the image or SKE file used for the Environment.
#thumbnail ⇒ Sketchup::ImageRep
The #thumbnail method is used to get the thumbnail image of the Environment.
#write_hdr(path) ⇒ String
The #write_hdr method writes the HDR, EXR or SKE image of the environment to a file in its original file type.