| 1589 | */ |
| 1590 | |
| 1591 | GMT_LOCAL int gmtplot_genper_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { |
| 1592 | uint64_t nr; |
| 1593 | gmt_M_unused(w); gmt_M_unused(e); gmt_M_unused(s); gmt_M_unused(n); |
| 1594 | |
| 1595 | if (GMT->common.R.oblique) { /* Draw rectangular boundary and return */ |
| 1596 | gmtplot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj.rect[YHI]); |
| 1597 | return 0; |
| 1598 | } |
| 1599 | |
| 1600 | gmt_setpen (GMT, &GMT->current.setting.map_frame_pen); |
| 1601 | |
| 1602 | nr = GMT->current.map.n_lon_nodes + GMT->current.map.n_lat_nodes; |
| 1603 | if (nr >= GMT->current.plot.n_alloc) gmt_get_plot_array (GMT); |
| 1604 | |
| 1605 | if (GMT->current.proj.g_debug > 1) GMT_Report (GMT->parent, GMT_MSG_DEBUG, "genper_map_boundary nr = %" PRIu64 "\n", nr); |
| 1606 | |
| 1607 | gmtlib_genper_map_clip_path (GMT, nr, GMT->current.plot.x, GMT->current.plot.y); |
| 1608 | |
| 1609 | PSL_plotline (PSL, GMT->current.plot.x, GMT->current.plot.y, (int)nr, PSL_MOVE|PSL_STROKE); |
| 1610 | |
| 1611 | return 0; |
| 1612 | } |
| 1613 | |
| 1614 | GMT_LOCAL void gmtplot_circle_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { |
| 1615 | gmt_M_unused(w); gmt_M_unused(e); gmt_M_unused(s); gmt_M_unused(n); |
no test coverage detected