1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #include "sys-defines.h"
- #include "extern.h"
- #define P_OPEN 1
- #define P_BOX 2
- #define P_CLOSED 3
- void
- _pl_f_paint_point (S___(Plotter *_plotter))
- {
- double x, y;
-
- if (_plotter->drawstate->pen_type != 0)
-
- {
-
- _pl_f_set_pen_color (S___(_plotter));
- _pl_f_set_fill_color (S___(_plotter));
-
-
- if (_plotter->fig_drawing_depth > 0)
- (_plotter->fig_drawing_depth)--;
-
-
- x = _plotter->drawstate->pos.x;
- y = _plotter->drawstate->pos.x;
- sprintf(_plotter->data->page->point,
- "#POLYLINE [OPEN]\n%d %d %d %d %d %d %d %d %d %.3f %d %d %d %d %d %d\n\t%d %d\n",
- 2,
- P_OPEN,
- FIG_L_SOLID,
- 1,
- _plotter->drawstate->fig_fgcolor,
- _plotter->drawstate->fig_fgcolor,
- _plotter->fig_drawing_depth,
- 0,
- 20,
- 0.0,
- FIG_JOIN_ROUND,
- FIG_CAP_ROUND,
- 0,
- 0,
- 0,
- 1,
- IROUND(XD(x,y)),
- IROUND(YD(x,y))
- );
-
- _update_buffer (_plotter->data->page);
- }
- }
|