public void Point(SolverPoint p1, int color, string layer) { var l = GetLayer(mDxf, layer); var p = new Point(p1.X, p1.Y, 0); p.Layer = l; mDxf.AddEntity(p); }
public void Line(SolverPoint p1, SolverPoint p2, int color, string layer) { var l = GetLayer(mDxf, layer); var e = new Line(new Vector2(p1.X, p1.Y), new Vector2(p2.X, p2.Y)); e.Layer = l; mDxf.AddEntity(e); }
public void Circle(SolverPoint center, double radius, int color, string layer) { var l = GetLayer(mDxf, layer); var e = new Circle(new Vector2(center.X, center.Y), radius); e.Layer = l; mDxf.AddEntity(e); }
public void Line(SolverPoint p1, SolverPoint p2, int color, string layer) { if (mCurrentGraphics == null) { return; } mCurrentGraphics.DrawLine(mPens[color], GetPointF(p1), GetPointF(p2)); }
public void Circle(SolverPoint center, double radius, int color, string layer) { if (mCurrentGraphics == null) { return; } mCurrentGraphics.DrawEllipse(mPens[color], new RectangleF((float)(center.X - radius), (float)(center.Y - radius), (float)(radius * 2), (float)(radius * 2))); }
public void Point(SolverPoint p, int color, string layer) { if (mCurrentGraphics == null) { return; } const float radius = 0.3f; var rect = new RectangleF((float)p.X - radius, (float)p.Y - radius, radius * 2, radius * 2); mCurrentGraphics.DrawEllipse(mPens[color], rect); }
private PointF GetPointF(SolverPoint p) { return(new PointF((float)p.X, (float)p.Y)); }