OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWWorld::TimeOfDayInterpolator< T > Class Template Reference

#include <weather.hpp>

Collaboration diagram for MWWorld::TimeOfDayInterpolator< T >:

Public Member Functions

 TimeOfDayInterpolator (const T &sunrise, const T &day, const T &sunset, const T &night)
 
getValue (const float gameHour, const TimeOfDaySettings &timeSettings) const
 

Private Attributes

mSunriseValue
 
mDayValue
 
mSunsetValue
 
mNightValue
 

Detailed Description

template<typename T>
class MWWorld::TimeOfDayInterpolator< T >

Interpolates between 4 data points (sunrise, day, sunset, night) based on the time of day. The template value could be a floating point number, or a color.

Constructor & Destructor Documentation

template<typename T>
MWWorld::TimeOfDayInterpolator< T >::TimeOfDayInterpolator ( const T &  sunrise,
const T &  day,
const T &  sunset,
const T &  night 
)
inline

Member Function Documentation

template<typename T >
T TimeOfDayInterpolator::getValue ( const float  gameHour,
const TimeOfDaySettings timeSettings 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

template<typename T>
T MWWorld::TimeOfDayInterpolator< T >::mDayValue
private
template<typename T>
T MWWorld::TimeOfDayInterpolator< T >::mNightValue
private
template<typename T>
T MWWorld::TimeOfDayInterpolator< T >::mSunriseValue
private
template<typename T>
T MWWorld::TimeOfDayInterpolator< T >::mSunsetValue
private

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