Class: Sketchup::Environments
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Enumerable,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
An Environments object is a collection of Environment objects. It is used to manage the environments in a model.
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 skyboxes, for reflections, and to link the sun to the environment.
Instance Attribute Summary
-
#current ⇒ Sketchup::Environment?
rw
The #current method is used to get the current environment in the
Environments. -
#current=(environment) ⇒ Sketchup::Environment?
rw
The #current= method is used to set the current environment in the
Environments.
Entity - Inherited
Instance Method Summary
-
#[](name) ⇒ Sketchup::Environment?
The #[] method is used to retrieve an
Environmentby name. -
#add(name, path) ⇒ Sketchup::Environment
The #add method adds an
Environmentto theEnvironments. -
#add_observer(arg) ⇒ Boolean
The #add_observer method is used to add an observer to the environments collection.
-
#each {|environment| ... } ⇒ Sketchup::Environments
The #each method is used to iterate over all the environments in the
Environments. -
#length
Alias for #size.
-
#purge_unused ⇒ Sketchup::Environments
The #purge_unused method is used to remove unused environments.
-
#remove(environment) ⇒ Boolean
The #remove method removes an
Environmentfrom theEnvironments. -
#remove_observer(arg) ⇒ Boolean
The #remove_observer method is used to remove an observer from the current object.
-
#size ⇒ Integer
(also: #length)
The #size method retrieves the number of environments in the
Environments.
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
#current ⇒ Sketchup::Environment? (rw)
The #current method is used to get the current environment in the Environments.
#current=(environment) ⇒ Sketchup::Environment? (rw)
The #current= method is used to set the current environment in the Environments.
Instance Method Details
#[](name) ⇒ Sketchup::Environment?
The #[] method is used to retrieve an Environment by name.
#add(name, path) ⇒ Sketchup::Environment
#add(path) ⇒ Sketchup::Environment
The supported file formats are HDR, EXR and SKE.
The #add method adds an Environment to the Environments.
#add_observer(arg) ⇒ Boolean
The #add_observer method is used to add an observer to the environments collection.
#each {|environment| ... } ⇒ Environments
The #each method is used to iterate over all the environments in the Environments.
#length
Alias for #size.
#purge_unused ⇒ Environments
The #purge_unused method is used to remove unused environments.
#remove(environment) ⇒ Boolean
The #remove method removes an Environment from the Environments.
#remove_observer(arg) ⇒ Boolean
The #remove_observer method is used to remove an observer from the current object.
#size ⇒ Integer
Also known as: #length
The #size method retrieves the number of environments in the Environments.