NASA World Wind

gov.nasa.worldwind.animation
Class MoveToPositionAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwind.animation.PositionAnimator
          extended by gov.nasa.worldwind.animation.MoveToPositionAnimator
All Implemented Interfaces:
Animator
Direct Known Subclasses:
OrbitViewCenterAnimator

public class MoveToPositionAnimator
extends PositionAnimator


Field Summary
protected  double positionMinEpsilon
           
protected  double smoothing
           
protected  boolean useSmoothing
           
 
Fields inherited from class gov.nasa.worldwind.animation.PositionAnimator
begin, end, propertyAccessor
 
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
 
Constructor Summary
MoveToPositionAnimator(Position begin, Position end, double smoothing, PropertyAccessor.PositionAccessor propertyAccessor)
           
 
Method Summary
 void next()
          Calls the set method with the next interpolant as determined by the interpolator member.
 Position nextPosition(double interpolant)
           
 
Methods inherited from class gov.nasa.worldwind.animation.PositionAnimator
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

positionMinEpsilon

protected double positionMinEpsilon

smoothing

protected double smoothing

useSmoothing

protected boolean useSmoothing
Constructor Detail

MoveToPositionAnimator

public MoveToPositionAnimator(Position begin,
                              Position end,
                              double smoothing,
                              PropertyAccessor.PositionAccessor 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

nextPosition

public Position nextPosition(double interpolant)
Overrides:
nextPosition in class PositionAnimator

NASA World Wind