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
openswmmvis::ui::MeshAttributeAssignDialog Class Reference

#include <meshattributeassigndialog.h>

Inheritance diagram for openswmmvis::ui::MeshAttributeAssignDialog:
Collaboration diagram for openswmmvis::ui::MeshAttributeAssignDialog:

Classes

struct  Job
 Everything one sampling pass needs. More...
 
struct  SampleResult
 Outcome of one sampling pass over the in-scope cells. More...
 

Public Types

enum class  Source {
  Raster ,
  Vector
}
 Which source the dialog opens on. More...
 
enum class  Mode {
  SingleNumeric ,
  MultiNumeric ,
  ClassifiedInfil
}
 What the assignment writes. More...
 
enum class  Sampling {
  Centroid ,
  OverlayAuto ,
  AreaWeightedMean ,
  Majority ,
  NaturalNeighbour
}
 How one cell's source value is obtained. More...
 
enum class  WriteTarget {
  CellOverrides ,
  RegionDefaults
}
 Where the assignment lands (GUI plan §3.4 "Write as", engine D-I3). More...
 

Public Slots

void reject () override
 Esc / Close / the window button. While a sampling pass is running this cancels it instead of closing, so the dialog never disappears with a worker still writing into its watcher.
 

Public Member Functions

 MeshAttributeAssignDialog (SWMM2DMeshLayer *meshLayer, MapCanvas *canvas, SelectionManager *selection, Source initialSource, const QString &depthUnitLabel, QWidget *parent=nullptr)
 

Member Enumeration Documentation

◆ Mode

What the assignment writes.

Enumerator
SingleNumeric 

One source value → one numeric cell parameter.

MultiNumeric 

N source values → N numeric cell parameters.

ClassifiedInfil 

Key (or key pair) → a whole mesh::InfilRow.

◆ Sampling

How one cell's source value is obtained.

Enumerator
Centroid 

Point sample at the cell centroid (original).

OverlayAuto 

Majority or area-weighted mean, by source type.

AreaWeightedMean 

Mean over the cell's footprint (continuous).

Majority 

Largest covering share wins (categorical).

NaturalNeighbour 

Sibson / Laplace over scattered points.

◆ Source

Which source the dialog opens on.

Enumerator
Raster 
Vector 

◆ WriteTarget

Where the assignment lands (GUI plan §3.4 "Write as", engine D-I3).

Enumerator
CellOverrides 

Per-cell [2D_INFILTRATION] override rows.

RegionDefaults 

One [2D_INFILTRATION_DEFAULTS] row per region tag.

Constructor & Destructor Documentation

◆ MeshAttributeAssignDialog()

openswmmvis::ui::MeshAttributeAssignDialog::MeshAttributeAssignDialog ( SWMM2DMeshLayer meshLayer,
MapCanvas canvas,
SelectionManager selection,
Source  initialSource,
const QString &  depthUnitLabel,
QWidget *  parent = nullptr 
)

Member Function Documentation

◆ reject

void openswmmvis::ui::MeshAttributeAssignDialog::reject ( )
overrideslot

Esc / Close / the window button. While a sampling pass is running this cancels it instead of closing, so the dialog never disappears with a worker still writing into its watcher.


The documentation for this class was generated from the following files: