![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <outputstatsregistry.h>
Signals | |
| void | identitiesChanged () |
Public Member Functions | |
| OutputStatsRegistry (QObject *parent=nullptr) | |
| ~OutputStatsRegistry () override | |
| void | registerLayer (SWMMResultsLayer *layer, const QString &resultsFilePath) |
| void | unregisterLayer (SWMMResultsLayer *layer) |
| QList< OutputIdentity > | identities () const |
| OutputIdentity | identityFor (const QUuid &id) const |
Per-project registry of loaded output layers.
|
explicit |
|
overridedefault |
| QList< OutputIdentity > openswmmvis::OutputStatsRegistry::identities | ( | ) | const |
Snapshot of every currently-registered identity, in registration order.
|
signal |
Emitted after registerLayer / unregisterLayer mutates the set.
| OutputIdentity openswmmvis::OutputStatsRegistry::identityFor | ( | const QUuid & | id | ) | const |
Look up an identity by its stableId. Returns a default-constructed OutputIdentity (null UUID, empty label) when id is the null UUID or no match is found.
| void openswmmvis::OutputStatsRegistry::registerLayer | ( | SWMMResultsLayer * | layer, |
| const QString & | resultsFilePath | ||
| ) |
Add layer to the registry. No-op if layer is already registered (looked up by pointer identity, not stableId). Emits identitiesChanged() on a real change.
resultsFilePath is captured at registration time and used to derive the short label and tooltip. The registry never calls methods on layer directly — that keeps the registry's .cpp free of any swmmresultslayer.h dependency, which in turn makes unit tests linkable without pulling in the full GUI graph.
| void openswmmvis::OutputStatsRegistry::unregisterLayer | ( | SWMMResultsLayer * | layer | ) |
Remove layer from the registry. No-op if layer is not registered. Emits identitiesChanged() on a real change.