NASA World Wind

gov.nasa.worldwind.animation
Class RotateToAngleAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwind.animation.AngleAnimator
          extended by gov.nasa.worldwind.animation.RotateToAngleAnimator
All Implemented Interfaces:
Animator

public class RotateToAngleAnimator
extends AngleAnimator


Field Summary
 
Fields inherited from class gov.nasa.worldwind.animation.AngleAnimator
begin, end, propertyAccessor
 
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
 
Constructor Summary
RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
           
 
Method Summary
 void next()
          Calls the set method with the next interpolant as determined by the interpolator member.
 Angle nextAngle(double interpolant)
           
protected  void setImpl(double interpolant)
          Set the value being animated via the PropertyAccessor using the passed interpolant.
 
Methods inherited from class gov.nasa.worldwind.animation.AngleAnimator
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
 
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
 

Constructor Detail

RotateToAngleAnimator

public RotateToAngleAnimator(Angle begin,
                             Angle end,
                             double smoothing,
                             PropertyAccessor.AngleAccessor propertyAccessor)
Method Detail

next

public void next()
Description copied from class: BasicAnimator
Calls the set method with the next interpolant as determined by the interpolator member.

Specified by:
next in interface Animator
Overrides:
next in class BasicAnimator

nextAngle

public Angle nextAngle(double interpolant)

setImpl

protected void setImpl(double interpolant)
Description copied from class: AngleAnimator
Set the value being animated via the PropertyAccessor using the passed interpolant. This implementation just does a straight liner interpolation between the AngleAnimator.begin and AngleAnimator.end values.

Overrides:
setImpl in class AngleAnimator
Parameters:
interpolant - the interpolant used to generate the next value that will be set by the PropertyAccessor

NASA World Wind