![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Live-model glue for ProfileNetworkAdapter — pulls per-node and per-link static data from a SWMMModelLayer's engine handle and forwards to the pure-logic builders in profilenetworkadapter.cpp. More...
#include "plot/profilenetworkadapter.h"#include "layers/swmmmodellayer.h"#include <openswmm/engine/openswmm_links.h>#include <openswmm/engine/openswmm_model.h>#include <openswmm/engine/openswmm_nodes.h>#include <cmath>#include <QByteArray>#include <QHash>#include <QSet>#include <QString>#include "ui/sectionview/xsectsampler.h"#include "core/unitsystem.h"Namespaces | |
| namespace | ProfileNetworkAdapter |
Functions | |
| ProfileRouter::Graph | ProfileNetworkAdapter::buildGraphFromModel (SWMMModelLayer *model, double nonConduitWeight=1.0) |
Convenience overload — pulls links from a live SWMMModelLayer and forwards to buildGraph(). | |
| void | ProfileNetworkAdapter::collectNodeBranches (SWMMModelLayer *model, const ProfileRouter::Path &routerPath, ProfileBuilder::PathStatic &path) |
Fills PathStatic::nodes[i].branches with every link incident to each path node, path links included (marked onPath). | |
| ProfileBuilder::PathStatic | ProfileNetworkAdapter::buildPathStaticFromModel (SWMMModelLayer *model, const ProfileRouter::Path &routerPath) |
Convenience overload — materializes a PathStatic by querying the engine for each node's invert/maxDepth and each link's offsets/ cross-section. Path orientation is derived from routerPath.nodes. | |
| int | ProfileNetworkAdapter::findNodeIndex (SWMMModelLayer *model, const QString &name) |
Resolves an engine node index by name; returns -1 if not found. Wrapper around swmm_node_index for the rare callers that don't want to pull <openswmm_nodes.h> themselves. | |
| int | ProfileNetworkAdapter::findLinkIndex (SWMMModelLayer *model, const QString &name) |
| Resolves an engine link index by name; returns -1 if not found. | |
Live-model glue for ProfileNetworkAdapter — pulls per-node and per-link static data from a SWMMModelLayer's engine handle and forwards to the pure-logic builders in profilenetworkadapter.cpp.
This translation unit links the SWMM engine; the pure-logic translation unit does not. Unit tests that need only the pure-logic surface link profilenetworkadapter.cpp alone.