![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Classes | |
| struct | GageSite |
| A located, distinct rain gage usable as a site. More... | |
| struct | GeneratedGage |
| struct | Input |
| struct | NewGroup |
| A unit-hydrograph group to create as a copy of source. More... | |
| struct | Options |
| struct | Plan |
| struct | Progress |
| Shared progress / cancellation for computePlan(). More... | |
| struct | RdiiInput |
| One [RDII] entry. More... | |
| struct | RowPlan |
| struct | SubcatchInput |
| struct | UhGroup |
| A unit-hydrograph group: its gage and every row a copy needs. More... | |
Enumerations | |
| enum class | Method { Nearest , Interpolated } |
Functions | |
| QVector< GageSite > | eligibleGages (SWMMModelLayer *layer, QStringList *unlocated, QStringList *coincident) |
Located, distinct gages; fills unlocated / coincident. *. | |
| Input | gatherInput (SWMMModelLayer *layer, const Options &options) |
| Step 1 (GUI thread). Also refreshes rain files, as before. *. | |
| Plan | 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 * | 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. *. | |
|
strong |
| 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. *.
| [in] | input | Immutable snapshot produced by gatherInput(); no live model access occurs. |
| [in,out] | progress | Optional shared atomic counters/cancel flag; must outlive this call. |
Suitable for a worker thread; internal chunks may run concurrently. No engine inputs are changed.
| QVector< GageSite > openswmmvis::assignment::raingage::eligibleGages | ( | SWMMModelLayer * | layer, |
| QStringList * | unlocated, | ||
| QStringList * | coincident | ||
| ) |
Located, distinct gages; fills unlocated / coincident. *.
| [in] | layer | Borrowed GUI model layer; unavailable layer/engine returns no sites. |
| [out] | unlocated | Optional list of excluded gages located at the origin. |
| [out] | coincident | Optional list of later gages sharing a quantized site with an earlier one. |
| Input openswmmvis::assignment::raingage::gatherInput | ( | SWMMModelLayer * | layer, |
| const Options & | options | ||
| ) |
Step 1 (GUI thread). Also refreshes rain files, as before. *.
| [in] | layer | Borrowed live model layer; call on the GUI thread before launching computation. |
| [in] | options | Method, interpolation tolerance and selected object scopes. |
Refreshes external rain files and reads engine geometry, source series and prior generated-output claims. Returned values own all worker data.
| 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. *.
| [in] | layer | Borrowed target model layer; must remain valid while the command is used. |
| [in] | canvas | Borrowed canvas used by the bulk edit to refresh affected views. |
| [in] | plan | Successful plan whose engine names and source records still describe the target model. |
| [in] | text | User-facing undo-stack label. |
Construct and execute on the GUI thread. Pushing onto QUndoStack transfers ownership and executes redo().