Exemplo n.º 1
0
 public void AddPoint(EventArgs e)
 {
     EditorState edState = new AddingPoints();
     State = edState;
     CurPoints.Clear();
     CurContour = null;
 }
Exemplo n.º 2
0
        public void AddOuterContour()
        {
            Polygon polyg = new Polygon();
            Polygs.Add(polyg);
            CurPolygon = polyg;

            EditorState edState = new NewPolygon();
            State = edState;
        }
Exemplo n.º 3
0
        public void AddInnerContour()
        {
            if (CurPolygon == null)
            {
                MessageBox.Show("Внешний контур не задан!");
                return;
            }
            Polygon polyg = new Polygon();
            CurContour = polyg;
               // Polygs.Add(polyg);
            CurPolygon.AddSubPolygon(polyg);

            EditorState edState = new NewContour();
            State = edState;
        }
Exemplo n.º 4
0
 public void EditingOff()
 {
     EditorState edState = new NoEditing();
     State = edState;
 }
Exemplo n.º 5
0
 public void DeletePoint(EventArgs e)
 {
     EditorState edState = new DeletingPoints();
     State = edState;
     CurContour = null;
 }