public OrbitViewCenterAnimator(BasicOrbitView orbitView, Position startPosition, Position endPosition,
                                double smoothing, PropertyAccessor.PositionAccessor propertyAccessor, bool endCenterOnSurface)
     : base(startPosition, endPosition, smoothing, propertyAccessor)
 {
     this.endCenterOnSurface = endCenterOnSurface;
     this.orbitView          = orbitView;
 }
Ejemplo n.º 2
0
        public PositionAnimator(
            Interpolator interpolator,
            Position begin,
            Position end,
            PropertyAccessor.PositionAccessor propertyAccessor) : base(interpolator)
        {
            if (interpolator == null)
            {
                this.interpolator = new ScheduledInterpolator(10000);
            }
            if (begin == null || end == null)
            {
                string message = Logging.getMessage("nullValue.PositionIsNull");
                Logging.logger().severe(message);
                throw new ArgumentException(message);
            }
            if (propertyAccessor == null)
            {
                string message = Logging.getMessage("nullValue.ViewPropertyAccessorIsNull");
                Logging.logger().severe(message);
                throw new ArgumentException(message);
            }

            this.begin            = begin;
            this.end              = end;
            this.propertyAccessor = propertyAccessor;
        }
 public MoveToPositionAnimator(
     Position begin,
     Position end,
     double smoothing,
     PropertyAccessor.PositionAccessor propertyAccessor) : base(null, begin, end, propertyAccessor)
 {
     this.interpolator = null;
     this.smoothing    = smoothing;
 }
Ejemplo n.º 4
0
 public OnSurfacePositionAnimator(Globe globe, Interpolator interpolator,
                                  Position begin,
                                  Position end,
                                  PropertyAccessor.PositionAccessor propertyAccessor, int altitudeMode) :
     base(interpolator, begin, end, propertyAccessor)
 {
     this.globe        = globe;
     this.altitudeMode = altitudeMode;
 }