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

            EditorState edState = new NewPolygon();
            State = edState;
        }
Exemple #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;
        }
Exemple #4
0
 public void EditingOff()
 {
     EditorState edState = new NoEditing();
     State = edState;
 }
Exemple #5
0
 public void DeletePoint(EventArgs e)
 {
     EditorState edState = new DeletingPoints();
     State = edState;
     CurContour = null;
 }