Exemple #1
0
        public void DrawMovingCutter(Point cur, bool isVertHor)
        {
            PbCanvas.Refresh();

            if (isVertHor)
            {
                cur = ManagerMath.GetPointHorVertLine(cur, Cutter.Points.Last());
            }

            gMove.DrawLine(Cutter.Pen, cur, Cutter.Points.Last());
        }
Exemple #2
0
        public void InputCutter(Point cur, bool isVertHor)
        {
            IsInputPolygon = false;

            if (isVertHor && Cutter.Points.Count() > 0)
            {
                cur = ManagerMath.GetPointHorVertLine(cur, Cutter.Points.Last());
            }

            if (IsInputCutter)
            {
                g.DrawLine(Cutter.Pen, cur, Cutter.Points.Last());
            }

            else
            {
                ClearCutter();
            }

            Cutter.Points.Add(cur);
            IsInputCutter = true;
        }
Exemple #3
0
 public void SetHorVertLine(Point cur)
 {
     B = ManagerMath.GetPointHorVertLine(cur, A);
 }