66ee7c172964fe9665479973fa7c7536afe03fa2 kate Tue Apr 10 22:05:33 2018 -0700 Add Postscript for bezier curve. Fix ellipse. refs #21109 diff --git src/inc/psGfx.h src/inc/psGfx.h index 780acfe..49b5b05 100644 --- src/inc/psGfx.h +++ src/inc/psGfx.h @@ -93,26 +93,31 @@ /* Set gray value (between 0.0 and 1.0. */ void psPushG(struct psGfx *ps); /* Save graphics state on stack. */ void psPopG(struct psGfx *ps); /* Pop off saved graphics state. */ void psDrawPoly(struct psGfx *ps, struct psPoly *poly, boolean filled); /* Draw a possibly filled polygon */ void psDrawEllipse(struct psGfx *ps, double x, double y, double xrad, double yrad, double startAngle, double endAngle); /* Draw an ellipse outline */ +void psDrawCurve(struct psGfx *ps, double x1, double y1, double x2, double y2, + double x3, double y3, double x4, double y4); +/* Draw Bezier curve specified by 4 points: first (p1) and last (p4) + * and 2 control points (p2, p3) */ + void psSetDash(struct psGfx *ps, boolean on); /* Set dashed line mode on or off. If set on, show two points marked, with one point of space */ char * convertEpsToPdf(char *epsFile); /* Convert EPS to PDF and return filename, or NULL if failure. */ void psLineTo(struct psGfx *ps, double x, double y); /* Draw line from current point to given point, * and make given point new current point. */ #endif /* PSGFX_H */