Class: Sketchup::ShadowInfoObserver
- Inherits:
-
Object
- Object
- Sketchup::ShadowInfoObserver
Overview
This observer interface is implemented to react to changes to the shadow settings. To implement this observer, create a Ruby class of this type, override the desired methods, and add an instance of the observer to the ShadowInfo object.
Instance Method Summary # collapse
-
#onShadowInfoChanged(shadow_info, type) ⇒ nil
The #onShadowInfoChanged method is invoked whenever the user alters a setting inside the Shadows and Model Info dialogs.
Instance Method Details
↑ #onShadowInfoChanged(shadow_info, type) ⇒ nil
The #onShadowInfoChanged method is invoked whenever the user alters a setting inside the Shadows and Model Info dialogs. The type parameter contains a number identifying which option was altered. Here are the types to expect:
-
0 = Time/Date sliders
-
1 = Display Shadows checkbox
-
2 = Light/Dark sliders
-
3 = Geographic Location (in Model Info > Location)
-
4 = Solar Orientation (in Model Info > Location)
-
7 = Use Sun for Shading checkbox
-
8 = Display from Edges checkbox
-
9 = Display on Ground checkbox
-
10 = Display on Faces checkbox