gov.nasa.worldwindx.examples.kml
Class KMLFlyViewController.FlyToLookAtAnimator
java.lang.Object
gov.nasa.worldwind.animation.BasicAnimator
gov.nasa.worldwind.animation.CompoundAnimator
gov.nasa.worldwind.view.firstperson.FlyToFlyViewAnimator
gov.nasa.worldwindx.examples.kml.KMLFlyViewController.FlyToLookAtAnimator
- All Implemented Interfaces:
- Animator
- Enclosing class:
- KMLFlyViewController
protected class KMLFlyViewController.FlyToLookAtAnimator
- extends FlyToFlyViewAnimator
A compound animator to animates a FlyView to look from the same orientation as an OrbitView. The animator
also takes an altitude mode that applies to the orbit view center position (the LookAt position). If the altitude
mode is relative to the surface elevation, the animator will re-compute the final eye position on each iteration
to ensure that the animation ends using the most accurate elevation data available.
|
Method Summary |
protected void |
setImpl(double interpolant)
Set the values attached to each of the Animators using the given interpolant. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
altitudeMode
protected int altitudeMode
elevationAnimator
protected DoubleAnimator elevationAnimator
eyePositionAnimator
protected PositionAnimator eyePositionAnimator
lookAtPosition
protected Position lookAtPosition
targetView
protected OrbitView targetView
KMLFlyViewController.FlyToLookAtAnimator
public KMLFlyViewController.FlyToLookAtAnimator(Interpolator interpolator,
OrbitView targetView,
Position lookAtPosition,
int altitudeMode,
PositionAnimator eyePositionAnimator,
DoubleAnimator elevationAnimator,
AngleAnimator headingAnimator,
AngleAnimator pitchAnimator,
AngleAnimator rollAnimator)
- Create an animator to animate the view to look at a position.
- Parameters:
interpolator - Interpolator to control the rate of animation.targetView - OrbitView that specifies desired heading, pitch, and zoom. The animator may modify
this view as the animation proceeds, and the center position is re-calculated with
new elevation data.lookAtPosition - Position to look at.altitudeMode - Altitude mode of lookAtPosition.eyePositionAnimator - Animator for eye position.elevationAnimator - Animator for eye elevation.headingAnimator - Animator for heading.pitchAnimator - Animator for pitch.rollAnimator - Animator for roll.
setImpl
protected void setImpl(double interpolant)
- Set the values attached to each of the
Animators using the given interpolant.
- Overrides:
setImpl in class CompoundAnimator
- Parameters:
interpolant - A value between 0 and 1.