Пример #1
0
        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;
        }
Пример #2
0
        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);
        }
Пример #3
0
 public FinishDrawingAction(LayerType layerType, LayerManager layerManager)
 {
     this.layerType    = layerType;
     this.layerManager = layerManager;
     this.shpInfo      = layerManager.getDrawShapeInformation();
 }
Пример #4
0
 public FinishDrawingAction(LayerType layerType,LayerManager layerManager)
 {
     this.layerType = layerType;
     this.layerManager = layerManager;
     this.shpInfo = layerManager.getDrawShapeInformation();
 }