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
raingageassignment.cpp File Reference

Spatial rain-gage assignment for subcatchments and RDII inflows, split into three steps so the expensive middle one can run off the GUI thread. More...

#include "assignment/raingageassignment.h"
#include "core/gageassignment.h"
#include "core/swmmdatetime.h"
#include "layers/swmmmodellayer.h"
#include "map/mapcanvas.h"
#include "map/mapundostack.h"
#include "mesh/naturalnbinterpolator.h"
#include "timeseries/timeseriesseriescommands.h"
#include <QCoreApplication>
#include <QHash>
#include <QPointer>
#include <QRegularExpression>
#include <QTimeZone>
#include <QUndoCommand>
#include <QtConcurrent/QtConcurrentMap>
#include <openswmm/engine/openswmm_engine.h>
#include <openswmm/engine/openswmm_gages.h>
#include <openswmm/engine/openswmm_inflows.h>
#include <openswmm/engine/openswmm_nodes.h>
#include <openswmm/engine/openswmm_subcatchments.h>
#include <openswmm/engine/openswmm_tables.h>
#include <algorithm>
#include <cmath>
#include <tuple>
Include dependency graph for raingageassignment.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::assignment
 
namespace  openswmmvis::assignment::raingage
 

Functions

QVector< GageSite > openswmmvis::assignment::raingage::eligibleGages (SWMMModelLayer *layer, QStringList *unlocated, QStringList *coincident)
 Located, distinct gages; fills unlocated / coincident. *.
 
Input openswmmvis::assignment::raingage::gatherInput (SWMMModelLayer *layer, const Options &options)
 Step 1 (GUI thread). Also refreshes rain files, as before. *.
 
Plan openswmmvis::assignment::raingage::computePlan (const Input &input, Progress *progress=nullptr)
 Step 2 (any thread). progress may be null. A cancelled run returns a plan whose error says so. *.
 
QUndoCommand * openswmmvis::assignment::raingage::makeApplyCommand (SWMMModelLayer *layer, MapCanvas *canvas, const Plan &plan, const QString &text)
 Step 3 (GUI thread). The returned command has NOT been run: push it onto an undo stack (which runs it), or call redo() and delete it. Null when the plan changes nothing. *.
 

Detailed Description

Spatial rain-gage assignment for subcatchments and RDII inflows, split into three steps so the expensive middle one can run off the GUI thread.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
GPL-3.0-or-later

Variable Documentation

◆ area

double area = 0.0

◆ from

QString from

◆ node

QString node

◆ to

QString to