public bool Execute() { this.shpInfo = layerManager.getDrawShapeInformation(); double scale = layerManager.Scale; if (layerType == LayerType.PolygonCanvas) { this.shpInfo.iShapeInf.AddPoint( this.shpInfo.iShapeInf.RootX, this.shpInfo.iShapeInf.RootY, scale); } ShapeInformation temp; temp.iShapeInf = null; temp.quadTreePosItemInf = null; layerManager.setDrawShapeInformation(DrawShapeInformation.EditStopped,temp,layerType); return true; }
public bool Execute() { this.shpInfo = layerManager.getDrawShapeInformation(); double scale = layerManager.Scale; if (layerType == LayerType.PolygonCanvas) { this.shpInfo.iShapeInf.AddPoint( this.shpInfo.iShapeInf.RootX, this.shpInfo.iShapeInf.RootY, scale); } ShapeInformation temp; temp.iShapeInf = null; temp.quadTreePosItemInf = null; layerManager.setDrawShapeInformation(DrawShapeInformation.EditStopped, temp, layerType); return(true); }
public FinishDrawingAction(LayerType layerType, LayerManager layerManager) { this.layerType = layerType; this.layerManager = layerManager; this.shpInfo = layerManager.getDrawShapeInformation(); }
public FinishDrawingAction(LayerType layerType,LayerManager layerManager) { this.layerType = layerType; this.layerManager = layerManager; this.shpInfo = layerManager.getDrawShapeInformation(); }