RhinoCommon API
Sun Class |
Represents the Sun on a little portion of Earth.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
The Sun type exposes the following members.
| Name | Description | |
|---|---|---|
| Altitude |
Get the altitude for the sun. To set use SetPosition(azimuth, altitude)
| |
| Azimuth |
Get the azimuth for the sun. To set use SetPosition(azimuth, altitude)
| |
| DaylightSaving | Daylight savings time | |
| DaylightSavingMinutes | Daylight saving minutes | |
| Enabled | Turn the sun on/off in this document. | |
| Latitude | ||
| Light |
Get a Light which represents the sun. If manual control is in effect, no sun calculation
is performed; the function uses the values last used in calls to Azimuth, Altitude
or Vector. If manual control is not in effect, the observer's position, date, time,
time zone and daylight saving values are used to calculate the position of the sun.
| |
| Longitude | ||
| ManualControl | Set angles directly or use place/date/time | |
| North |
Angle in degrees on world X-Y plane that should be considered north in the model. Angle is
measured starting at X-Axis and travels counterclockwise. Y-Axis would be a north angle of 90
degrees.
| |
| SkylightOn | Obsolete. Turn skylight on or off. | |
| TimeZone |
Measured in hours += UTC
| |
| Vector |
| Name | Description | |
|---|---|---|
| AltitudeFromValues | ||
| BeginChange |
Call this function before making any change to this object (calling a setter) otherwise undo will not work correctly. Calls to BeginChange must be paired with a call to EndChange.
(Inherited from DocumentOrFreeFloatingBase.) | |
| ColorFromAltitude | Get sun color based on altitude. | |
| CopyFrom | (Overrides FreeFloatingBaseCopyFrom(FreeFloatingBase).) | |
| Dispose | Releases all resources used by the Sun | |
| EndChange |
See BeginChange
(Inherited from DocumentOrFreeFloatingBase.) | |
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides FreeFloatingBaseFinalize.) | |
| GetDateTime | ||
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| Here | ||
| JulianDay | ||
| MemberwiseClone | (Inherited from Object.) | |
| SetDateTime | ||
| SetPosition(Double, Double) |
Sets position of the Sun based on azimuth and altitude values.
Using this function will also set sun to manual.
| |
| SetPosition(DateTime, Double, Double) |
Sets position of the sun based on physical location and time.
| |
| ShowDialog | Obsolete. Show the tabbed sun dialog. | |
| SunDirection | ||
| ToString | (Inherited from Object.) | |
| TwilightZone |