Transform() public method

public Transform ( double screenX, double screenY, double previousScreenX, double previousScreenY, double deltaScale = 1 ) : void
screenX double
screenY double
previousScreenX double
previousScreenY double
deltaScale double
return void
Exemplo n.º 1
0
        public void Transform(MPoint position, MPoint previousPosition, double deltaResolution = 1, double deltaRotation = 0)
        {
            if (Map == null || Limiter == null)
            {
                return;
            }

            if (Map.ZoomLock)
            {
                deltaResolution = 1;
            }
            if (Map.PanLock)
            {
                position = previousPosition;
            }
            _viewport.Transform(position, previousPosition, deltaResolution, deltaRotation);
            Limiter.Limit(_viewport, Map.Resolutions, Map.Extent);
        }
Exemplo n.º 2
0
 public void Transform(double screenX, double screenY, double previousScreenX, double previousScreenY, double deltaScale = 1)
 {
     _viewport.Transform(screenX, screenY, previousScreenX, previousScreenY, deltaScale);
 }