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

Function gmtapi_set_method

src/gmt_api.c:2676–2687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2674}
2675
2676GMT_LOCAL unsigned int gmtapi_set_method (struct GMTAPI_DATA_OBJECT *S) {
2677 /* Most objects have a one-to-one path but for vectors and matrices
2678 * we need to set the bit that correspond to their type */
2679 unsigned int m;
2680 if (S->method < GMT_IS_DUPLICATE) return S->method;
2681 switch (S->actual_family) {
2682 case GMT_IS_VECTOR: m = S->method | GMT_VIA_VECTOR; break;
2683 case GMT_IS_MATRIX: m = S->method | GMT_VIA_MATRIX; break;
2684 default: m = S->method;
2685 }
2686 return m;
2687}
2688
2689/*! . */
2690GMT_LOCAL int gmtapi_next_io_source (struct GMTAPI_CTRL *API, unsigned int direction) {

Callers 10

gmtapi_next_io_sourceFunction · 0.85
gmtapi_import_datasetFunction · 0.85
gmtapi_export_datasetFunction · 0.85
gmtapi_import_gridFunction · 0.85
gmtapi_export_gridFunction · 0.85
gmtapi_import_cubeFunction · 0.85
gmtapi_export_cubeFunction · 0.85
GMT_Set_GeometryFunction · 0.85
gmtapi_get_record_initFunction · 0.85
gmtapi_put_record_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected