Class: Sketchup::ShadowInfo
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Enumerable,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
The ShadowInfo class contains method to extract the shadow information for a model. The majority of the shadow information returned exists in the Model Info > Location and Model Info > Shadows dialogs inside SketchUp.
The following shadow information keys are maintained in SketchUp:
-
City(inModelInfo > Geo-location >SetManual Location…) Note that ‘City’ is called ‘Location’ in the UI -
Country(inModelInfo > Geo-location >SetManual Location…) -
Dark(in Window > Shadows) -
DayOfYear -
DaylightSavings -
DisplayNorth -
DisplayOnAllFaces(in Window > Shadows) -
DisplayOnGroundPlane(in Window > Shadows) -
DisplayShadows(in Window > Shadows) -
EdgesCastShadows(in Window > Shadows) -
Latitude(inModelInfo > Geo-location >SetManual Location…) -
Light(in Window > Shadows) -
Longitude(inModelInfo > Geo-location >SetManual Location…) -
NorthAngle -
ShadowTime(in Window > Shadows) -
ShadowTime_time_t(ShadowTime in Epoch time) -
SunDirection(Generated based on ShadowTime) -
SunRise(Generated based on ShadowTime) -
SunRise_time_t(SunRise in Epoch time) -
SunSet(Generated based on ShadowTime) -
SunSet_time_t(SunSet in Epoch time) -
TZOffset(in Window > Shadows) -
UseSunForAllShading(in Window > Shadows)
You access the ShadowInfo object by calling Model#shadow_info:
Class Method Summary
-
.each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the shadow information keys.
-
.keys ⇒ Array<String>
The keys method is a class method that returns an array with all of the attribute keys.
Instance Attribute Summary
Entity - Inherited
Instance Method Summary
-
#[](key) ⇒ Object?
The [] method retrieves a value from the array of keys.
-
#[]=(key, value) ⇒ Object
The set value []= method is used to set the value in the array of shadow info options.
-
#add_observer(observer) ⇒ Boolean
The add_observer method is used to add an observer to the current object.
-
#count ⇒ Integer
The count method is inherited from the Enumerable mix-in module.
-
#each {|key, value| ... } ⇒ nil
The #each method iterates through all of the shadow information key/value pairs.
-
#each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the shadow information keys.
-
#each_pair {|key, value| ... } ⇒ nil
The #each_pair method is an alias for #each.
-
#keys ⇒ Array<String>
The keys method is a class method that returns an array with all of the attribute keys.
-
#length ⇒ Integer
The #length method returns the number of options in the shadow options collection.
-
#remove_observer(observer) ⇒ Boolean
The remove_observer method is used to remove an observer from the current object.
- #size ⇒ Integer
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”. |
Class Method Details
.each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the shadow information keys.
.keys ⇒ Array<String>
The keys method is a class method that returns an array with all of the attribute keys
Instance Method Details
#[](key) ⇒ Object?
The [] method retrieves a value from the array of keys
#[]=(key, value) ⇒ Object
The set value []= method is used to set the value in the array of shadow info options.
#add_observer(observer) ⇒ Boolean
The add_observer method is used to add an observer to the current object.
#count ⇒ Integer
The count method is inherited from the Enumerable mix-in module.
#each {|key, value| ... } ⇒ nil
The #each method iterates through all of the shadow information key/value pairs.
#each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the shadow information keys.
#each_pair {|key, value| ... } ⇒ nil
The #each_pair method is an alias for #each.
#keys ⇒ Array<String>
The keys method is a class method that returns an array with all of the attribute keys
#length ⇒ Integer
The #length method returns the number of options in the shadow options collection
#remove_observer(observer) ⇒ Boolean
The remove_observer method is used to remove an observer from the current object.
#size ⇒ Integer
The #size method is an alias for #length.