|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.animation.BasicAnimator
gov.nasa.worldwind.animation.DoubleAnimator
gov.nasa.worldwind.animation.MoveToDoubleAnimator
public class MoveToDoubleAnimator
Animates the value to the specified end position, using the specified smoothing, until the value is within
the specified minEpsilon of the end value. For each frame the animator interpolates between the current
value and the target(end) value using (1.0-smoothing) as the interpolant, until the
difference between the current value and the target(end) value is less than the minEpsilon
value.
| Field Summary | |
|---|---|
protected double |
minEpsilon
The amount of delta between the end value and the current value that is required to stop the animation. |
protected double |
smoothing
The amount of smoothing. |
| Fields inherited from class gov.nasa.worldwind.animation.DoubleAnimator |
|---|
begin, end, propertyAccessor |
| Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator |
|---|
interpolator |
| Constructor Summary | |
|---|---|
MoveToDoubleAnimator(java.lang.Double end,
double smoothing,
double minEpsilon,
PropertyAccessor.DoubleAccessor propertyAccessor)
Construct a MoveToDoubleAnimator |
|
MoveToDoubleAnimator(java.lang.Double end,
double smoothing,
PropertyAccessor.DoubleAccessor propertyAccessor)
Construct a MoveToDoubleAnimator |
|
| Method Summary | |
|---|---|
void |
next()
Set the value to the next value in the animation. |
java.lang.Double |
nextDouble(double interpolant)
Get the next value using the given interpolantto perform a linear interplation. |
| Methods inherited from class gov.nasa.worldwind.animation.DoubleAnimator |
|---|
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd, setImpl |
| Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator |
|---|
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double minEpsilon
protected double smoothing
| Constructor Detail |
|---|
public MoveToDoubleAnimator(java.lang.Double end,
double smoothing,
double minEpsilon,
PropertyAccessor.DoubleAccessor propertyAccessor)
MoveToDoubleAnimator
end - The target value, the value to animate to.smoothing - smoothing The smoothing factor. A number between 0 and 1. The higher the number the greater
the smoothing.minEpsilon - The minimum difference between the current value and the target value
that triggers the end of the animation. Defaults to .001.propertyAccessor - The PropertyAccessor.DoubleAccessor to be used the access the
value to be animated.
public MoveToDoubleAnimator(java.lang.Double end,
double smoothing,
PropertyAccessor.DoubleAccessor propertyAccessor)
MoveToDoubleAnimator
end - The target value, the value to animate to.smoothing - The smoothing factor. A number between 0 and 1. The higher the number the greater
the smoothing.propertyAccessor - The PropertyAccessor.DoubleAccessor to be used the access the
value to be animated.| Method Detail |
|---|
public void next()
1.0-smoothing as the
interpolant.
next in interface Animatornext in class BasicAnimatorpublic java.lang.Double nextDouble(double interpolant)
nextDouble in class DoubleAnimatorinterpolant - The inerpolant to be used to perform the interpolation. A number
between 0 and 1.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||