Class 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 Detail

      • endEyePosition

        protected Position endEyePosition
      • eyeAltitudeMode

        protected int eyeAltitudeMode
      • useMidZoom

        protected boolean useMidZoom
      • forward

        protected Vec4 forward
      • pitch

        protected Angle pitch
    • Constructor Detail

      • EyePositionAnimator

        public 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.