Package 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 anOrbitView
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected Position
endEyePosition
protected int
eyeAltitudeMode
protected Vec4
forward
protected Angle
pitch
protected boolean
useMidZoom
-
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 EyePositionAnimator(Interpolator interpolator, Position beginCenter, Position endCenter, Position endEyePosition, Vec4 forward, Angle pitch, PropertyAccessor.PositionAccessor propertyAccessor, int altitudeMode)
Create a new animator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Position
nextPosition(double interpolant)
-
Methods inherited from class gov.nasa.worldwind.animation.PositionAnimator
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd, setImpl
-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
-
-
-
-
Constructor Detail
-
EyePositionAnimator
public 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 onendEyePosition
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 ofendEyePosition
.
-
-
Method Detail
-
nextPosition
protected Position nextPosition(double interpolant)
- Overrides:
nextPosition
in classPositionAnimator
-
-