Package gov.nasa.worldwind.view.orbit
Class OrbitViewCenterAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwind.animation.PositionAnimator
-
- gov.nasa.worldwind.animation.MoveToPositionAnimator
-
- gov.nasa.worldwind.view.orbit.OrbitViewCenterAnimator
-
- All Implemented Interfaces:
Animator
public class OrbitViewCenterAnimator extends MoveToPositionAnimator
A position animator that has the ability to adjust the view to focus on the terrain when it is stopped.
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.animation.MoveToPositionAnimator
positionMinEpsilon, smoothing, 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
Constructors Constructor Description OrbitViewCenterAnimator(BasicOrbitView orbitView, Position startPosition, Position endPosition, double smoothing, PropertyAccessor.PositionAccessor propertyAccessor, boolean endCenterOnSurface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position
nextPosition(double interpolant)
protected void
setImpl(double interpolant)
No-op intended to be overrided by deriving classes.void
stop()
Stops theAnimator
,hasNext
will now returnfalse
-
Methods inherited from class gov.nasa.worldwind.animation.MoveToPositionAnimator
next
-
Methods inherited from class gov.nasa.worldwind.animation.PositionAnimator
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start
-
-
-
-
Constructor Detail
-
OrbitViewCenterAnimator
public OrbitViewCenterAnimator(BasicOrbitView orbitView, Position startPosition, Position endPosition, double smoothing, PropertyAccessor.PositionAccessor propertyAccessor, boolean endCenterOnSurface)
-
-
Method Detail
-
nextPosition
public Position nextPosition(double interpolant)
- Overrides:
nextPosition
in classMoveToPositionAnimator
-
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 classPositionAnimator
- Parameters:
interpolant
- A value between 0 and 1.
-
stop
public void stop()
Description copied from class:BasicAnimator
Stops theAnimator
,hasNext
will now returnfalse
- Specified by:
stop
in interfaceAnimator
- Overrides:
stop
in classBasicAnimator
-
-