Package 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 anOrbitView
. 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setImpl(double interpolant)
Set the values attached to each of theAnimator
s 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
-
-
-
-
Field Detail
-
altitudeMode
protected int altitudeMode
-
targetView
protected OrbitView targetView
-
lookAtPosition
protected Position lookAtPosition
-
eyePositionAnimator
protected PositionAnimator eyePositionAnimator
-
elevationAnimator
protected DoubleAnimator elevationAnimator
-
-
Constructor Detail
-
FlyToLookAtAnimator
public 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 oflookAtPosition
.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 theAnimator
s using the given interpolant.- Overrides:
setImpl
in classCompoundAnimator
- Parameters:
interpolant
- A value between 0 and 1.
-
-