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 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
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 void
setImpl(double interpolant)
No-op intended to be overrided by deriving classes.void
stop()
Stops theAnimator
,hasNext
will now returnfalse
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
-
-
-
-
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:BasicAnimator
Stops theAnimator
,hasNext
will now returnfalse
- Specified by:
stop
in interfaceAnimator
- Overrides:
stop
in classBasicAnimator
-
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 classBasicAnimator
- Parameters:
interpolant
- A value between 0 and 1.
-
updateTargetValues
protected void updateTargetValues()
-
valuesMeetCriteria
protected boolean valuesMeetCriteria(Position centerPos, double zoom)
-
-