protected class KMLFlyViewController.FlyToLookAtAnimator extends FlyToFlyViewAnimator
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.FlyToFlyViewAnimator.FlyToElevationAnimator, FlyToFlyViewAnimator.OnSurfacePositionAnimator
Modifier and Type | Field and Description |
---|---|
protected int |
altitudeMode |
protected DoubleAnimator |
elevationAnimator |
protected PositionAnimator |
eyePositionAnimator |
protected Position |
lookAtPosition |
protected OrbitView |
targetView |
animators
interpolator
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
setImpl(double interpolant)
Set the values attached to each of the
Animator s using the given interpolant. |
createFlyToFlyViewAnimator, createFlyToFlyViewAnimator
getAnimators, setAnimators
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
protected int altitudeMode
protected DoubleAnimator elevationAnimator
protected PositionAnimator eyePositionAnimator
protected Position lookAtPosition
protected OrbitView targetView
public FlyToLookAtAnimator(Interpolator interpolator, OrbitView targetView, Position lookAtPosition, int altitudeMode, PositionAnimator eyePositionAnimator, DoubleAnimator elevationAnimator, AngleAnimator headingAnimator, AngleAnimator pitchAnimator, AngleAnimator rollAnimator)
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.protected void setImpl(double interpolant)
Animator
s using the given interpolant.setImpl
in class CompoundAnimator
interpolant
- A value between 0 and 1.