NASA World Wind

gov.nasa.worldwindx.examples
Class KeepingObjectsInView.ViewAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwindx.examples.KeepingObjectsInView.ViewAnimator
All Implemented Interfaces:
Animator
Enclosing class:
KeepingObjectsInView

public static class KeepingObjectsInView.ViewAnimator
extends BasicAnimator


Field Summary
protected static double ALTITUDE_EPSILON
           
protected  Position centerPosition
           
protected  boolean haveTargets
           
protected static double LOCATION_EPSILON
           
protected  OrbitView view
           
protected  KeepingObjectsInView.ViewController viewController
           
protected  double zoom
           
 
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
 
Constructor Summary
KeepingObjectsInView.ViewAnimator(double smoothing, OrbitView view, KeepingObjectsInView.ViewController viewController)
           
 
Method Summary
protected  void setImpl(double interpolant)
          No-op intended to be overrided by deriving classes.
 void stop()
          Stops the Animator, hasNext will now return false
protected  void updateTargetValues()
           
protected  boolean valuesMeetCriteria(Position centerPos, double zoom)
           
 
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALTITUDE_EPSILON

protected static final double ALTITUDE_EPSILON
See Also:
Constant Field Values

centerPosition

protected Position centerPosition

haveTargets

protected boolean haveTargets

LOCATION_EPSILON

protected static final double LOCATION_EPSILON
See Also:
Constant Field Values

view

protected OrbitView view

viewController

protected KeepingObjectsInView.ViewController viewController

zoom

protected double zoom
Constructor Detail

KeepingObjectsInView.ViewAnimator

public KeepingObjectsInView.ViewAnimator(double smoothing,
                                         OrbitView view,
                                         KeepingObjectsInView.ViewController viewController)
Method Detail

setImpl

protected void setImpl(double interpolant)
Description copied from class: BasicAnimator
No-op intended to be overrided by deriving classes. Deriving classes are expected to implement the desired action of a set operation in this method.

Overrides:
setImpl in class BasicAnimator
Parameters:
interpolant - A value between 0 and 1.

stop

public void stop()
Description copied from class: BasicAnimator
Stops the Animator, hasNext will now return false

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

updateTargetValues

protected void updateTargetValues()

valuesMeetCriteria

protected boolean valuesMeetCriteria(Position centerPos,
                                     double zoom)

NASA World Wind