![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Mode-aware link offset accessors for the editing surfaces. More...
#include <openswmm/engine/openswmm_engine.h>#include <openswmm/engine/openswmm_links.h>#include <openswmm/engine/openswmm_model.h>#include <openswmm/engine/openswmm_nodes.h>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | linkoffsetdisplay |
Functions | |
| bool | linkoffsetdisplay::elevationMode (SWMM_Engine e) |
| double | linkoffsetdisplay::endInvert (SWMM_Engine e, int idx, bool upstream) |
| int | linkoffsetdisplay::getDisplay (SWMM_Engine e, int idx, double *v, bool upstream, int(*rawGet)(SWMM_Engine, int, double *)) |
| int | linkoffsetdisplay::setDisplay (SWMM_Engine e, int idx, double v, bool upstream, int(*rawSet)(SWMM_Engine, int, double)) |
| int | linkoffsetdisplay::getOffsetUp (SWMM_Engine e, int i, double *v) |
| int | linkoffsetdisplay::setOffsetUp (SWMM_Engine e, int i, double v) |
| int | linkoffsetdisplay::getOffsetDn (SWMM_Engine e, int i, double *v) |
| int | linkoffsetdisplay::setOffsetDn (SWMM_Engine e, int i, double v) |
| int | linkoffsetdisplay::getCrestHeight (SWMM_Engine e, int i, double *v) |
| int | linkoffsetdisplay::setCrestHeight (SWMM_Engine e, int i, double v) |
Mode-aware link offset accessors for the editing surfaces.
The engine stores every link offset / crest as a DEPTH above the node invert regardless of LINK_OFFSETS (the parser normalises elevations at open and the .inp writer re-adds the invert on save). Legacy SWMM-GUI shows the user the value as it appears in the file, so in ELEVATION mode the property editor and attribute table must present depth + invert and accept an elevation back. These wrappers share the C API signatures so they drop into the same function-pointer slots as the raw swmm_link_*_offset_* calls.