32#ifndef OPENSWMM_SPATIAL_H
33#define OPENSWMM_SPATIAL_H
139 double* y_buf,
int count);
156 const double* y_buf,
int count);
218 const double*
y,
int count);
263 double*
y,
int max_count);
324 const double*
y,
int count);
359 double*
y,
int max_count);
412 double* x2,
double* y2);
430 double x2,
double y2);
476 int buflen,
int* required);
double * y
Definition odesolve.c:37
#define SWMM_ENGINE_API
Definition openswmm_2d.h:62
void * SWMM_Engine
Opaque handle to an OpenSWMM Engine instance.
Definition openswmm_callbacks.h:55
OpenSWMM Engine — primary transparent C API (master header).
SWMM_ENGINE_API int swmm_spatial_get_link_coord(SWMM_Engine engine, int idx, double *x, double *y)
Get the centroid/midpoint X/Y coordinate for a link.
Definition openswmm_spatial_impl.cpp:149
SWMM_ENGINE_API int swmm_spatial_get_subcatch_coord(SWMM_Engine engine, int idx, double *x, double *y)
Get the centroid X/Y coordinate for a subcatchment.
Definition openswmm_spatial_impl.cpp:245
SWMM_ENGINE_API int swmm_spatial_set_gage_coord(SWMM_Engine engine, int idx, double x, double y)
Set the X/Y coordinate for a rain gage.
Definition openswmm_spatial_impl.cpp:306
SWMM_ENGINE_API int swmm_spatial_get_subcatch_polygon_count(SWMM_Engine engine, int idx, int *count)
Get the number of polygon vertices for a subcatchment.
Definition openswmm_spatial_impl.cpp:275
SWMM_ENGINE_API int swmm_spatial_node_has_coord(SWMM_Engine engine, int idx, int *present)
Read coordinate provenance without confusing an authored origin with missing data.
Definition openswmm_spatial_impl.cpp:88
SWMM_ENGINE_API int swmm_spatial_get_link_vertex_count(SWMM_Engine engine, int idx, int *count)
Get the number of polyline vertices for a link.
Definition openswmm_spatial_impl.cpp:178
SWMM_ENGINE_API int swmm_spatial_get_subcatch_polygon(SWMM_Engine engine, int idx, double *x, double *y, int max_count)
Get all polygon boundary rings for a subcatchment.
Definition openswmm_spatial_impl.cpp:286
SWMM_ENGINE_API int swmm_spatial_get_link_vertices(SWMM_Engine engine, int idx, double *x, double *y, int max_count)
Get the polyline vertices for a link.
Definition openswmm_spatial_impl.cpp:193
SWMM_ENGINE_API int swmm_spatial_set_link_coord(SWMM_Engine engine, int idx, double x, double y)
Set the centroid/midpoint X/Y coordinate for a link.
Definition openswmm_spatial_impl.cpp:139
SWMM_ENGINE_API int swmm_spatial_get_node_coords_bulk(SWMM_Engine engine, double *x_buf, double *y_buf, int count)
Get X/Y coordinates for all nodes in a single call.
Definition openswmm_spatial_impl.cpp:111
SWMM_ENGINE_API int swmm_spatial_set_subcatch_polygon(SWMM_Engine engine, int idx, const double *x, const double *y, int count)
Set the polygon boundary vertices for a subcatchment.
Definition openswmm_spatial_impl.cpp:262
SWMM_ENGINE_API int swmm_spatial_set_annotation(SWMM_Engine engine, const char *section, const char *text)
Replace the passthrough lines of a supported annotation section.
Definition openswmm_spatial_impl.cpp:435
SWMM_ENGINE_API int swmm_spatial_set_map_dimensions(SWMM_Engine engine, double x1, double y1, double x2, double y2)
Replace the stored map display extent.
Definition openswmm_spatial_impl.cpp:374
SWMM_ENGINE_API int swmm_spatial_set_link_vertices(SWMM_Engine engine, int idx, const double *x, const double *y, int count)
Set the polyline vertices for a link.
Definition openswmm_spatial_impl.cpp:165
SWMM_ENGINE_API int swmm_spatial_get_gage_coord(SWMM_Engine engine, int idx, double *x, double *y)
Get the X/Y coordinate for a rain gage.
Definition openswmm_spatial_impl.cpp:316
SWMM_ENGINE_API int swmm_spatial_get_annotation(SWMM_Engine engine, const char *section, char *buf, int buflen, int *required)
Join stored annotation-section lines into text without a section header.
Definition openswmm_spatial_impl.cpp:409
SWMM_ENGINE_API int swmm_spatial_set_subcatch_coord(SWMM_Engine engine, int idx, double x, double y)
Set the centroid X/Y coordinate for a subcatchment.
Definition openswmm_spatial_impl.cpp:234
SWMM_ENGINE_API int swmm_spatial_set_map_units(SWMM_Engine engine, const char *units)
Copy and uppercase the map-unit label.
Definition openswmm_spatial_impl.cpp:398
SWMM_ENGINE_API int swmm_spatial_get_node_coord(SWMM_Engine engine, int idx, double *x, double *y)
Get the X/Y coordinates for a node.
Definition openswmm_spatial_impl.cpp:99
SWMM_ENGINE_API int swmm_spatial_get_map_dimensions(SWMM_Engine engine, double *x1, double *y1, double *x2, double *y2)
Read the stored map display extent.
Definition openswmm_spatial_impl.cpp:359
SWMM_ENGINE_API int swmm_spatial_set_node_coord(SWMM_Engine engine, int idx, double x, double y)
Set the X/Y coordinates for a node.
Definition openswmm_spatial_impl.cpp:75
SWMM_ENGINE_API int swmm_spatial_get_crs(SWMM_Engine engine, char *buf, int buflen)
Get the coordinate reference system string.
Definition openswmm_spatial_impl.cpp:59
SWMM_ENGINE_API int swmm_spatial_set_crs(SWMM_Engine engine, const char *crs)
Set the coordinate reference system string for the model.
Definition openswmm_spatial_impl.cpp:43
SWMM_ENGINE_API int swmm_spatial_set_node_coords_bulk(SWMM_Engine engine, const double *x_buf, const double *y_buf, int count)
Set X/Y coordinates for all nodes in a single call.
Definition openswmm_spatial_impl.cpp:123
SWMM_ENGINE_API int swmm_spatial_get_map_units(SWMM_Engine engine, char *buf, int buflen)
Copy the stored map-unit label.
Definition openswmm_spatial_impl.cpp:387