MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtplot_genper_map_boundary

Function gmtplot_genper_map_boundary

src/gmt_plot.c:1591–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1589 */
1590
1591GMT_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
1614GMT_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);

Callers 1

gmtplot_map_boundaryFunction · 0.85

Calls 6

gmt_setpenFunction · 0.85
gmt_get_plot_arrayFunction · 0.85
GMT_ReportFunction · 0.85
PSL_plotlineFunction · 0.85

Tested by

no test coverage detected