com.planeth.common.timing
Class RealTimeControl

java.lang.Object
  extended bycom.planeth.common.timing.RealTimeControl
All Implemented Interfaces:
ITimeControllable

public class RealTimeControl
extends java.lang.Object
implements ITimeControllable

Encapsulates the logic to control realtime step calculation for animations.

Author:
Andreas Grässer, gal@planet-h.com.
created May 6, 2005

Constructor Summary
RealTimeControl()
           
 
Method Summary
 double calculateStep(double step)
          Calculates a step value dependent of the used step time.
 void pause(boolean pauseState)
          Pauses the ITimeControllable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealTimeControl

public RealTimeControl()
Method Detail

pause

public void pause(boolean pauseState)
Description copied from interface: ITimeControllable
Pauses the ITimeControllable

Specified by:
pause in interface ITimeControllable
Parameters:
pauseState -
See Also:
ITimeControllable.pause(boolean)

calculateStep

public double calculateStep(double step)
Calculates a step value dependent of the used step time.
The step time for the calculation is directly taken

Parameters:
step - base value of the step to be calculated
Returns:
the calculated step value