gov.nasa.worldwindx.examples.kml
Class KMLOrbitViewController.EyePositionAnimator
java.lang.Object
gov.nasa.worldwind.animation.BasicAnimator
gov.nasa.worldwind.animation.PositionAnimator
gov.nasa.worldwindx.examples.kml.KMLOrbitViewController.EyePositionAnimator
- All Implemented Interfaces:
- Animator
- Enclosing class:
- KMLOrbitViewController
protected class KMLOrbitViewController.EyePositionAnimator
- extends PositionAnimator
A position animator that will compute an OrbitView center position based on an eye position and
orientation. The animator has an altitude mode that applies to the eye position. If the altitude mode is relative
to the surface elevation, then the center position will be re-computed on each iteration to ensure that the
animation uses the most accurate elevation data available.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endEyePosition
protected Position endEyePosition
eyeAltitudeMode
protected int eyeAltitudeMode
forward
protected Vec4 forward
pitch
protected Angle pitch
useMidZoom
protected boolean useMidZoom
KMLOrbitViewController.EyePositionAnimator
public KMLOrbitViewController.EyePositionAnimator(Interpolator interpolator,
Position beginCenter,
Position endCenter,
Position endEyePosition,
Vec4 forward,
Angle pitch,
PropertyAccessor.PositionAccessor propertyAccessor,
int altitudeMode)
- Create a new animator.
- Parameters:
interpolator - Interpolator to control the animation.beginCenter - Center position at the start.endCenter - Center position at the end. (This position will be re-evaluated based on endEyePosition as the animation runs.endEyePosition - Eye position at the end.forward - Eye forward vector at the end.pitch - View pitch at the end.propertyAccessor - Accessor to change the center position.altitudeMode - Altitude mode of endEyePosition.
nextPosition
protected Position nextPosition(double interpolant)
-
- Overrides:
nextPosition in class PositionAnimator