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; } }
void LayerManager_FirstLayerAdded(Layer newShapeObject) { Visible = true; mainControler.HasActiveDisplay = true; }
public void layerAdded(Layer newLayer) { this.Invalidate(); this.Update(); ScreenChanged = true; RequestChangeDelegate aDelegate = new RequestChangeDelegate(newLayer.Refresh); this.RequestChange += aDelegate; }
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); //} }
private void addLayerPostProcessing(Layer newLayer) { if (LayerCount == 1 && FirstLayerAdded != null) FirstLayerAdded(newLayer); if (LayerAdded != null) LayerAdded(newLayer); }