|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
org.xith3d.utility.math.TimedInterpolator
public class TimedInterpolator
A timed interpolator uses an Interpolator (e.g. LinearFloatInterpolator) but it adjust it automatically so that it interpolates precisely between two instants you define. Don't worry about memory or what : when a TimedInterpolator is finished (the "end time" is reached), it is destroyed automatically.
| Constructor Summary | |
|---|---|
TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time beginTime,
double length,
OperationScheduler opSched)
Create a new TimedInterpolator |
|
TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time length,
OperationScheduler opSched)
Create a new TimedInterpolator |
|
TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time beginTime,
org.jagatoo.util.timing.Time endTime,
OperationScheduler opSched)
Create a new TimedInterpolator |
|
| Method Summary | |
|---|---|
org.jagatoo.util.timing.Time |
getBeginTime()
|
org.jagatoo.util.timing.Time |
getEndTime()
|
Interpolator |
getInterpolator()
|
void |
setBeginTime(org.jagatoo.util.timing.Time beginTime)
|
void |
setEndTime(org.jagatoo.util.timing.Time endTime)
|
void |
setInterpolator(Interpolator interpolator)
|
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl |
|---|
isAlive, isPersistent, setAlive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time beginTime,
org.jagatoo.util.timing.Time endTime,
OperationScheduler opSched)
interpolator - The interpolator on which to actbeginTime - The time the interpolator should beginendTime - The time the interpolator should endopSched - The OperationScheduled we should schedule to
public TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time beginTime,
double length,
OperationScheduler opSched)
interpolator - The interpolator on which to actbeginTime - The time the interpolator should beginlength - The length the interpolator should lastopSched - The OperationScheduled we should schedule to
public TimedInterpolator(Interpolator interpolator,
org.jagatoo.util.timing.Time length,
OperationScheduler opSched)
interpolator - The interpolator on which to actlength - The length the interpolator should lastopSched - The OperationScheduled we should schedule to| Method Detail |
|---|
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updatable
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.public org.jagatoo.util.timing.Time getBeginTime()
public void setBeginTime(org.jagatoo.util.timing.Time beginTime)
beginTime - the beginTime to setpublic org.jagatoo.util.timing.Time getEndTime()
public void setEndTime(org.jagatoo.util.timing.Time endTime)
endTime - the endTime to setpublic Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
interpolator - the interpolator to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||