vrdSkylightLocation¶
-
class
vrdSkylightLocation
¶
(Inherits vrdSceneObject
)
This class is used for location and time zone properties of vrdSkylightMaterial.
Summary¶
Functions¶
-
vrdSkylightLocation.
calculateSunPosition
(date, time)¶ Calulcate the sun position at a given time for this location.
Parameters: - date (QDate) – Date Determines the sun path. The sun position is computed from Local Time, Date, and Location. Sets the date.
- time (QTime) – Time Determines the sun path. The sun position is computed from Local Time, Date, and Location. Sets the time.
Returns: A vector (sunZenithAngle 0 to 180 where >90 is below horizon, sunAzimuthAngle 0 to 360 where 0 is south)
Return type: QVector2D
-
vrdSkylightLocation.
getClosestCity
()¶ Gets the name the city closest to the given geographic coordinates and uses this city’s current time zone.
Returns: Name the city closest to the given geographic coordinates Return type: string
-
vrdSkylightLocation.
getLatitude
()¶ Returns: The current geographic latitudinal coordinate in decimal degrees. Return type: float
-
vrdSkylightLocation.
getLongitude
()¶ Returns: The current geographic longitudinal coordinate in decimal degrees. Return type: float
-
vrdSkylightLocation.
getTimeZone
()¶ Gets the time zone as time difference to UTC (Coordinated Universal Time) in decimal hours. It is estimated automatically from the given geographic coordinates.
Returns: Current time zone. Return type: float
-
vrdSkylightLocation.
getUseDaylightSavingTime
()¶ Queries daylight saving time state.
Returns: Current state of daylight saving time. Return type: bool
-
vrdSkylightLocation.
setLatitude
(value)¶ Sets the location to the geographic latitudinal coordinate in decimal degrees.
Parameters: value (float) – Latitude in decimal degrees, from -90 to +90.
-
vrdSkylightLocation.
setLongitude
(value)¶ Sets the location to the geographic longitudinal coordinate in decimal degrees.
Parameters: value (float) – Longitude in decimal degrees, from -180 to +180.
-
vrdSkylightLocation.
setTimeZone
(value)¶ Sets the time zone using the time difference to UTC (Coordinated Universal Time) in decimal hours. Please note, changing longitude, latitude or daylight saving flag will update the time zone with an estimated time zone value.
Parameters: value (float) – New time zone.
-
vrdSkylightLocation.
setUseDaylightSavingTime
(value)¶ Enables/disables daylight saving time. Specify whether there is daylight saving time at the current location on the current date because this information is not retrieved automatically.
Parameters: value (bool) – New state of daylight saving time.