Exemple #1
0
 public void DoCalculation(double xOff,double yOff,double absoluteZoom,double new_scale)
 {
     for (int i = mainControler.LayerManager.LayerCount - 1; i >= 0; i--)
     {
         layer = mainControler.LayerManager.LayerArray[i];
         layer.recalculateData(absoluteZoom, new_scale, xOff, yOff);
         layer.Changed = true;
         layer.reset();
         mainControler.MapPanel.ScreenChanged = true;
     }
 }
Exemple #2
0
 void LayerManager_FirstLayerAdded(Layer newShapeObject)
 {
     Visible = true;
     mainControler.HasActiveDisplay = true;
 }
Exemple #3
0
        public void layerAdded(Layer newLayer)
        {
            this.Invalidate();
            this.Update();
            ScreenChanged = true;

            RequestChangeDelegate aDelegate = new RequestChangeDelegate(newLayer.Refresh);
            this.RequestChange += aDelegate;
        }
Exemple #4
0
 void extendWorldBBox(Layer newLayer)
 {
     //if (wordBBox == null)
     //    wordBBox = newLayer.BoundingBox;
     //else{
     //    DRect newLayerBBox = newLayer.BoundingBox;
     //    wordBBox.Left   = Math.Min(wordBBox.Left,   newLayerBBox.Left);
     //    wordBBox.Bottom = Math.Min(wordBBox.Bottom, newLayerBBox.Bottom);
     //    wordBBox.Right  = Math.Min(wordBBox.Right,  newLayerBBox.Right);
     //    wordBBox.Top    = Math.Min(wordBBox.Top,    newLayerBBox.Top);
     //}
 }
Exemple #5
0
 private void addLayerPostProcessing(Layer newLayer)
 {
     if (LayerCount == 1 && FirstLayerAdded != null) FirstLayerAdded(newLayer);
     if (LayerAdded != null) LayerAdded(newLayer);
 }