NASA World Wind

gov.nasa.worldwindx.examples.kml
Class KMLFlyViewController.FlyToLookAtAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwind.animation.CompoundAnimator
          extended by gov.nasa.worldwind.view.firstperson.FlyToFlyViewAnimator
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.view.firstperson.FlyToFlyViewAnimator
FlyToFlyViewAnimator.FlyToElevationAnimator, FlyToFlyViewAnimator.OnSurfacePositionAnimator
 
Field Summary
protected  int altitudeMode
           
protected  DoubleAnimator elevationAnimator
           
protected  PositionAnimator eyePositionAnimator
           
protected  Position lookAtPosition
           
protected  OrbitView targetView
           
 
Fields inherited from class gov.nasa.worldwind.animation.CompoundAnimator
animators
 
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
 
Constructor Summary
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.
 
Method Summary
protected  void setImpl(double interpolant)
          Set the values attached to each of the Animators using the given interpolant.
 
Methods inherited from class gov.nasa.worldwind.view.firstperson.FlyToFlyViewAnimator
createFlyToFlyViewAnimator, createFlyToFlyViewAnimator
 
Methods inherited from class gov.nasa.worldwind.animation.CompoundAnimator
getAnimators, setAnimators
 
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

altitudeMode

protected int altitudeMode

elevationAnimator

protected DoubleAnimator elevationAnimator

eyePositionAnimator

protected PositionAnimator eyePositionAnimator

lookAtPosition

protected Position lookAtPosition

targetView

protected OrbitView targetView
Constructor Detail

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.
Method Detail

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.

NASA World Wind