protected class KMLOrbitViewController.EyePositionAnimator extends PositionAnimator
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.Modifier and Type | Field and Description |
---|---|
protected Position |
endEyePosition |
protected int |
eyeAltitudeMode |
protected Vec4 |
forward |
protected Angle |
pitch |
protected boolean |
useMidZoom |
begin, end, propertyAccessor
interpolator
Constructor and Description |
---|
EyePositionAnimator(Interpolator interpolator,
Position beginCenter,
Position endCenter,
Position endEyePosition,
Vec4 forward,
Angle pitch,
PropertyAccessor.PositionAccessor propertyAccessor,
int altitudeMode)
Create a new animator.
|
Modifier and Type | Method and Description |
---|---|
protected Position |
nextPosition(double interpolant) |
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd, setImpl
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
protected Position endEyePosition
protected int eyeAltitudeMode
protected Vec4 forward
protected Angle pitch
protected boolean useMidZoom
public EyePositionAnimator(Interpolator interpolator, Position beginCenter, Position endCenter, Position endEyePosition, Vec4 forward, Angle pitch, PropertyAccessor.PositionAccessor propertyAccessor, int altitudeMode)
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
.protected Position nextPosition(double interpolant)
nextPosition
in class PositionAnimator