ui::util::TimeBasedInterpolator Class Reference

Inheritance diagram for ui::util::TimeBasedInterpolator:

Inheritance graph
[legend]
Collaboration diagram for ui::util::TimeBasedInterpolator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Interpolate values over a fixed period of time.


Public Member Functions

 TimeBasedInterpolator (float totalTime)
void reset ()
void update (float deltaTime)

Protected Member Functions

virtual void calculate ()=0

Protected Attributes

float elapsedTime
float totalTime


Constructor & Destructor Documentation

ui::util::TimeBasedInterpolator::TimeBasedInterpolator float  totalTime  ) 
 

Create a new TimeBasedInterpolator.

Parameters:
t target value to interpolate.
totalTime the totalTime to keep interpolating.


Member Function Documentation

void ui::util::TimeBasedInterpolator::reset  ) 
 

Reset the timer, this causes the Interpolator to start over.

void ui::util::TimeBasedInterpolator::update float  deltaTime  )  [virtual]
 

Update the Timer.

Parameters:
deltaTime the deltaTime to use for the update.

Implements ui::util::Interpolator.

virtual void ui::util::TimeBasedInterpolator::calculate  )  [protected, pure virtual]
 

Calculate the interpolation.

Implemented in ui::util::LinearTimeInterpolator.


Generated on Mon Jun 20 19:42:08 2005 for UI by doxygen 1.3.1 using KingsTools