Ejemplo n.º 1
0
 /// <summary>
 /// Generates a pan action. If one sets the coordinate type to world both, new and old d, have to be that type
 /// </summary>
 /// <param name="oldD"></param>
 /// <param name="d"></param>
 /// <param name="scale"></param>
 /// <param name="mapPanel"></param>
 /// <param name="coordinatType"></param>
 public PanAction(PointD oldD, PointD newD, double scale, MapPanel mapPanel, CoordinateType coordinatType)
 {
     this.cType = coordinatType;
     this.oldD = oldD;
     this.d = newD;
     this.scale = scale;
     this.mapPanel = mapPanel;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="oldAbsoluteZoom"></param>
 /// <param name="oldD">old dx and dy</param>
 /// <param name="d">new dx and dy</param>
 /// <param name="dpiX">number of display pixels horizontically</param>
 /// <param name="dpiY">number of display pixels vertically</param>
 /// <param name="absoluteZoom"></param>
 /// <param name="unscaledP">actual click point in GK coordinates</param>
 /// <param name="mainControler"></param>
 public ZoomAction(double oldAbsoluteZoom, PointD oldD, PointD d,
     double absoluteZoom,
     PointD unscaledP, double maxAbsoluteZoom, MainControler mainControler)
 {
     this.oldAbsoluteZoom = oldAbsoluteZoom;
     this.oldD = oldD;
     this.mainControler = mainControler;
     this.absoluteZoom = absoluteZoom;
     this.d = d;
     this.firstScale = mainControler.LayerManager.FirstScale;
     this.unscaledP = unscaledP;
     this.maxAbsZoom = maxAbsoluteZoom;
 }