Package gov.nasa.worldwindx.examples
Class KeepingObjectsInView.ViewAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwindx.examples.KeepingObjectsInView.ViewAnimator
-
- All Implemented Interfaces:
Animator
- Enclosing class:
- KeepingObjectsInView
public static class KeepingObjectsInView.ViewAnimator extends BasicAnimator
-
-
Field Summary
Fields Modifier and Type Field Description protected static doubleALTITUDE_EPSILONprotected PositioncenterPositionprotected booleanhaveTargetsprotected static doubleLOCATION_EPSILONprotected OrbitViewviewprotected KeepingObjectsInView.ViewControllerviewControllerprotected doublezoom-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description ViewAnimator(double smoothing, OrbitView view, KeepingObjectsInView.ViewController viewController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetImpl(double interpolant)No-op intended to be overrided by deriving classes.voidstop()Stops theAnimator,hasNextwill now returnfalseprotected voidupdateTargetValues()protected booleanvaluesMeetCriteria(Position centerPos, double zoom)-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start
-
-
-
-
Field Detail
-
LOCATION_EPSILON
protected static final double LOCATION_EPSILON
- See Also:
- Constant Field Values
-
ALTITUDE_EPSILON
protected static final double ALTITUDE_EPSILON
- See Also:
- Constant Field Values
-
view
protected OrbitView view
-
viewController
protected KeepingObjectsInView.ViewController viewController
-
haveTargets
protected boolean haveTargets
-
centerPosition
protected Position centerPosition
-
zoom
protected double zoom
-
-
Constructor Detail
-
ViewAnimator
public ViewAnimator(double smoothing, OrbitView view, KeepingObjectsInView.ViewController viewController)
-
-
Method Detail
-
stop
public void stop()
Description copied from class:BasicAnimatorStops theAnimator,hasNextwill now returnfalse- Specified by:
stopin interfaceAnimator- Overrides:
stopin classBasicAnimator
-
setImpl
protected void setImpl(double interpolant)
Description copied from class:BasicAnimatorNo-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:
setImplin classBasicAnimator- Parameters:
interpolant- A value between 0 and 1.
-
updateTargetValues
protected void updateTargetValues()
-
valuesMeetCriteria
protected boolean valuesMeetCriteria(Position centerPos, double zoom)
-
-