SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
surfaceownership.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
12#ifndef OPENSWMMVIS_SURFACEOWNERSHIP_H
13#define OPENSWMMVIS_SURFACEOWNERSHIP_H
14#include <openswmm/engine/openswmm_surface_ownership.h>
15#include <QVector>
16#include <QString>
17#include <functional>
18class SWMM2DMeshLayer;
20{
22 QVector<int> before, after;
23 QVector<SWMM_SurfaceOwnerObject> objects;
24 QVector<SWMM_SurfaceOwnerShare> shares;
25 QVector<double> meshWeatherArea;
26 QString token, error;
27 bool valid = false;
28};
36bool readSurfaceOwners(SWMM_Engine engine, QVector<int> *rows, QString *error);
46 const std::function<bool(int, int)> &progress = {});
55bool replaceSurfaceOwners(SWMM_Engine engine, const QVector<int> &rows, const QString &token,
56 QString *error);
66}
67#endif
Definition swmm2dmeshlayer.h:69
const char * token
Definition diagramspec.cpp:24
Definition groundwaterassignment.h:22
bool readSurfaceOwners(SWMM_Engine engine, QVector< int > *rows, QString *error)
Read authored surface-owner records while the engine permits editing.
Definition surfaceownership.cpp:19
SurfaceOwnershipReview previewSurfaceOwners(SWMM_Engine engine, const QVector< int > &rows, const std::function< bool(int, int)> &progress={})
Ask the engine to validate proposed ownership and compute object-area shares.
Definition surfaceownership.cpp:33
bool replaceSurfaceOwners(SWMM_Engine engine, const QVector< int > &rows, const QString &token, QString *error)
Replace ownership records using the engine-issued preview token.
Definition surfaceownership.cpp:74
bool surfaceOwnershipMeshMatches(SWMM_Engine engine, const SWMM2DMeshLayer *layer, QString *error)
Check that the GUI mesh and engine mesh describe the same cells before ownership review.
Definition surfaceownership.cpp:88
void * SWMM_Engine
Definition objectdefaultsapplier.h:23
Definition surfaceownership.h:21
bool valid
Definition surfaceownership.h:27
QVector< double > meshWeatherArea
Definition surfaceownership.h:25
QString token
Definition surfaceownership.h:26
QVector< SWMM_SurfaceOwnerShare > shares
Definition surfaceownership.h:24
QVector< int > before
Definition surfaceownership.h:22
QString error
Definition surfaceownership.h:26
QVector< int > after
Definition surfaceownership.h:22
QVector< SWMM_SurfaceOwnerObject > objects
Definition surfaceownership.h:23
int rows
Definition terrainerrorfield.cpp:54
double error
Definition terrainerrorfield.cpp:42
TraceAnalysisLayer * layer
Definition traceanalysislayer.cpp:162
const ExportProgress * progress
Definition vectorexport.cpp:211