Class: Sketchup::Environment
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 Method Summary # collapse
-
#description ⇒ String
The #description method gets the description for an Environment.
-
#description=(description) ⇒ Object
The #description= method sets the description for an Environment.
-
#linked_sun=(linked_sun) ⇒ Object
The #linked_sun= method is used to set if the Environment is linked to the sun.
-
#linked_sun? ⇒ Boolean
The #linked_sun? method is used to determine if the Environment is linked to the sun.
-
#linked_sun_position ⇒ Geom::Point3d
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
The #linked_sun_position= method is used to set the position of the sun linked to the Environment.
-
#name ⇒ String
The #name method retrieves the name of the Environment.
-
#name=(name) ⇒ String
The #name= method sets the name for an Environment.
-
#path ⇒ String
The #path method is used to get the file name of the image used for the Environment.
-
#reflection_exposure ⇒ Float
The #reflection_exposure method is used to get the exposure of the Environment for reflections.
-
#reflection_exposure=(reflection_exposure) ⇒ Float
The #reflection_exposure= method is used to set the exposure of the Environment for reflections.
-
#rotation ⇒ Float
The #rotation method is used to get the vertical rotation angle in degrees to apply to the Environment.
-
#rotation=(rotation) ⇒ Float
The #rotation= method is used to set the the vertical rotation angle in degrees to apply to the Environment.
-
#skydome_exposure ⇒ Float
The #skydome_exposure method is used to get the exposure of the Environment.
-
#skydome_exposure=(skydome_exposure) ⇒ Float
The #skydome_exposure= method is used to set the exposure of the Environment.
-
#thumbnail ⇒ Sketchup::ImageRep
The #thumbnail method is used to get the thumbnail image of the Environment.
-
#use_as_skydome=(use_as_skydome) ⇒ Object
The #use_as_skydome= method is used to set if the Environment is used as a skydome.
-
#use_as_skydome? ⇒ Boolean
The #use_as_skydome? method is used to determine if the Environment is used as a skydome.
-
#use_for_reflections=(use_for_reflection) ⇒ Object
The #use_for_reflections= method is used to set if the Environment is used for reflections.
-
#use_for_reflections? ⇒ Boolean
The #use_for_reflections? method is used to determine if the Environment is used for reflections.
-
#write_hdr(path) ⇒ String
The #write_hdr method writes the HDR image of the environment to a file in its original file type.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
↑ #description ⇒ String
The #description method gets the description for an Sketchup::Environment.
↑ #description=(description) ⇒ Object
The #description= method sets the description for an Sketchup::Environment.
↑ #linked_sun=(linked_sun) ⇒ Object
The #linked_sun= method is used to set if the Sketchup::Environment is linked to the sun. Shadow lighting is used to create realistic shadows in the scene, enhancing the visual quality.
↑ #linked_sun? ⇒ Boolean
The #linked_sun? method is used to determine if the Sketchup::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
The #linked_sun_position method is used to get the position of the sun linked to the Sketchup::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
The #linked_sun_position= method is used to set the position of the sun linked to the Sketchup::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
The #name method retrieves the name of the Sketchup::Environment. This is the unique internal name of the object which should be used for retrieving the Sketchup::Environment from the model's Sketchup::Environments.
↑ #name=(name) ⇒ String
The #name= method sets the name for an Sketchup::Environment.
↑ #path ⇒ String
The #path method is used to get the file name of the image used for the Sketchup::Environment.
↑ #reflection_exposure ⇒ Float
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 Sketchup::Environment for reflections.
↑ #reflection_exposure=(reflection_exposure) ⇒ Float
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 Sketchup::Environment for reflections.
↑ #rotation ⇒ Float
The #rotation method is used to get the vertical rotation angle in degrees to apply to the Sketchup::Environment.
↑ #rotation=(rotation) ⇒ Float
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 Sketchup::Environment.
↑ #skydome_exposure ⇒ Float
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 Sketchup::Environment.
↑ #skydome_exposure=(skydome_exposure) ⇒ Float
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 Sketchup::Environment.
↑ #thumbnail ⇒ Sketchup::ImageRep
The #thumbnail method is used to get the thumbnail image of the Sketchup::Environment.
↑ #use_as_skydome=(use_as_skydome) ⇒ Object
The #use_as_skydome= method is used to set if the Sketchup::Environment is used as a skydome.
↑ #use_as_skydome? ⇒ Boolean
The #use_as_skydome? method is used to determine if the Sketchup::Environment is used as a skydome.
↑ #use_for_reflections=(use_for_reflection) ⇒ Object
The #use_for_reflections= method is used to set if the Sketchup::Environment is used for reflections.
↑ #use_for_reflections? ⇒ Boolean
The #use_for_reflections? method is used to determine if the Sketchup::Environment is used for reflections.
↑ #write_hdr(path) ⇒ String
The #write_hdr method writes the HDR image of the environment to a file in its original file type.