Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Static Public Attributes | List of all members
lib-server.SceneManager.DayAnimationUpdate Class Reference

Helper class to create a rotation matrix with resepect to the current time. More...

Inheritance diagram for lib-server.SceneManager.DayAnimationUpdate:

Public Member Functions

def lerp_color
 Linearly interpolates between two colors according to a given ratio. More...
 
def update
 Called whenever TimeIn changes. More...
 

Static Public Attributes

tuple TimeIn = avango.SFFloat()
 Field containting the current time in seconds. More...
 
tuple sf_sun_mat = avango.gua.SFMatrix4()
 Field containing the calculated rotation matrix for the sun. More...
 
int day_time = 5
 The length of one day in seconds. More...
 
tuple morning_sun_color = avango.gua.Color(0.9, 0.65, 0.65)
 The color of the sun at sunrise. More...
 
tuple noon_sun_color = avango.gua.Color(1.0, 0.8, 0.8)
 The color of the sun at noon. More...
 
 evening_sun_color = morning_sun_color
 The color of the sun at sunset. More...
 
tuple sf_sun_color = avango.gua.SFColor()
 The color of the sun. More...
 

Detailed Description

Helper class to create a rotation matrix with resepect to the current time.

Member Function Documentation

def lib-server.SceneManager.DayAnimationUpdate.lerp_color (   self,
  START_COLOR,
  TARGET_COLOR,
  RATIO 
)

Linearly interpolates between two colors according to a given ratio.

Parameters
START_COLORThe starting value for a ratio of 0.
TARGET_COLORThe final value for a ratio of 1.
RATIOA value between 0 and 1 that determines the interpolated result.
def lib-server.SceneManager.DayAnimationUpdate.update (   self)

Called whenever TimeIn changes.

Member Data Documentation

lib-server.SceneManager.DayAnimationUpdate.day_time = 5
static

The length of one day in seconds.

lib-server.SceneManager.DayAnimationUpdate.evening_sun_color = morning_sun_color
static

The color of the sun at sunset.

lib-server.SceneManager.DayAnimationUpdate.morning_sun_color = avango.gua.Color(0.9, 0.65, 0.65)
static

The color of the sun at sunrise.

lib-server.SceneManager.DayAnimationUpdate.noon_sun_color = avango.gua.Color(1.0, 0.8, 0.8)
static

The color of the sun at noon.

lib-server.SceneManager.DayAnimationUpdate.sf_sun_color = avango.gua.SFColor()
static

The color of the sun.

lib-server.SceneManager.DayAnimationUpdate.sf_sun_mat = avango.gua.SFMatrix4()
static

Field containing the calculated rotation matrix for the sun.

lib-server.SceneManager.DayAnimationUpdate.TimeIn = avango.SFFloat()
static

Field containting the current time in seconds.


The documentation for this class was generated from the following file: