コード例 #1
0
ファイル: View.cs プロジェクト: radtek/HeuristicLabPlay
        public override void PaintGhostLine(Point ltPoint, Point rbPoint)
        {
            // Refresh the old ghost area if needed.
            this.InvalidateGhostArea();

            Ghost = GhostsFactory.GetGhost(
                new Point[] { ltPoint, rbPoint },
                GhostTypes.Line, this);
        }
コード例 #2
0
ファイル: View.cs プロジェクト: radtek/HeuristicLabPlay
        public override void PaintGhostLine(
            MultiPointType curveType,
            Point[] points)
        {
            // Refresh the old ghost area if needed.
            this.InvalidateGhostArea();

            switch (curveType)
            {
            case MultiPointType.Straight:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.MultiLine, this);
                break;

            case MultiPointType.Polygon:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.Polygon, this);
                break;

            case MultiPointType.Curve:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.CurvedLine, this);
                break;
            }
        }