Package gov.nasa.worldwind.animation
Class RotateToAngleAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwind.animation.AngleAnimator
-
- gov.nasa.worldwind.animation.RotateToAngleAnimator
-
- All Implemented Interfaces:
Animator
public class RotateToAngleAnimator extends AngleAnimator
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.animation.AngleAnimator
begin, end, propertyAccessor
-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
next()
Calls theset
method with the nextinterpolant
as determined by theinterpolator
member.Angle
nextAngle(double interpolant)
protected void
setImpl(double interpolant)
Set the value being animated via thePropertyAccessor
using the passed interpolant.-
Methods inherited from class gov.nasa.worldwind.animation.AngleAnimator
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start, stop
-
-
-
-
Constructor Detail
-
RotateToAngleAnimator
public RotateToAngleAnimator(Angle begin, Angle end, double smoothing, PropertyAccessor.AngleAccessor propertyAccessor)
-
-
Method Detail
-
next
public void next()
Description copied from class:BasicAnimator
Calls theset
method with the nextinterpolant
as determined by theinterpolator
member.- Specified by:
next
in interfaceAnimator
- Overrides:
next
in classBasicAnimator
-
setImpl
protected void setImpl(double interpolant)
Description copied from class:AngleAnimator
Set the value being animated via thePropertyAccessor
using the passed interpolant. This implementation just does a straight liner interpolation between theAngleAnimator.begin
andAngleAnimator.end
values.- Overrides:
setImpl
in classAngleAnimator
- Parameters:
interpolant
- the interpolant used to generate the next value that will be set by thePropertyAccessor
-
nextAngle
public Angle nextAngle(double interpolant)
-
-