NASA World Wind

gov.nasa.worldwindx.examples.kml
Class KMLOrbitViewController.EyePositionAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwind.animation.PositionAnimator
          extended by 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.


Field Summary
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
KMLOrbitViewController.EyePositionAnimator(Interpolator interpolator, Position beginCenter, Position endCenter, Position endEyePosition, Vec4 forward, Angle pitch, PropertyAccessor.PositionAccessor propertyAccessor, int altitudeMode)
          Create a new animator.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endEyePosition

protected Position endEyePosition

eyeAltitudeMode

protected int eyeAltitudeMode

forward

protected Vec4 forward

pitch

protected Angle pitch

useMidZoom

protected boolean useMidZoom
Constructor Detail

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

nextPosition

protected Position nextPosition(double interpolant)

Overrides:
nextPosition in class PositionAnimator

NASA World Wind