| 4008 | } |
| 4009 | |
| 4010 | GMT_LOCAL void gmtplot_contlabel_debug (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_CONTOUR *G) { |
| 4011 | uint64_t row; |
| 4012 | double size[1] = {0.025}; |
| 4013 | |
| 4014 | /* If called we simply draw the helper lines or points to assist in debug */ |
| 4015 | |
| 4016 | gmt_setpen (GMT, &G->debug_pen); |
| 4017 | if (G->fixed) { /* Place a small open circle at each fixed point */ |
| 4018 | PSL_setfill (PSL, GMT->session.no_rgb, PSL_OUTLINE); |
| 4019 | for (row = 0; row < (uint64_t)G->f_n; row++) |
| 4020 | PSL_plotsymbol (PSL, G->f_xy[0][row], G->f_xy[1][row], size, PSL_CIRCLE); |
| 4021 | } |
| 4022 | else if (G->crossing) { /* Draw a thin line */ |
| 4023 | uint64_t seg; |
| 4024 | unsigned int *pen = NULL; |
| 4025 | struct GMT_DATASEGMENT *S = NULL; |
| 4026 | for (seg = 0; seg < G->X->n_segments; seg++) { |
| 4027 | S = G->X->table[0]->segment[seg]; /* Current segment */ |
| 4028 | pen = gmt_M_memory (GMT, NULL, S->n_rows, unsigned int); |
| 4029 | for (row = 1, pen[0] = PSL_MOVE; row < S->n_rows; row++) pen[row] = PSL_DRAW; |
| 4030 | gmt_plot_line (GMT, S->data[GMT_X], S->data[GMT_Y], pen, S->n_rows, PSL_LINEAR); |
| 4031 | gmt_M_free (GMT, pen); |
| 4032 | } |
| 4033 | } |
| 4034 | } |
| 4035 | |
| 4036 | GMT_LOCAL void gmtplot_contlabel_drawlines (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_CONTOUR *G, unsigned int mode) { |
| 4037 | uint64_t seg, k; |
no test coverage detected