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
MeshRegionDefaultsWidget Class Reference

#include <meshregiondefaultswidget.h>

Inheritance diagram for MeshRegionDefaultsWidget:
Collaboration diagram for MeshRegionDefaultsWidget:

Classes

struct  RegionRow
 One table row, as collectInputs() reads it back. More...
 

Public Member Functions

 MeshRegionDefaultsWidget (QWidget *parent=nullptr)
 
void setDepthUnit (const QString &unit)
 
void setStarHydraulics (double manningsN, double initDepth)
 
void setRegionTags (const QStringList &tags)
 
QVector< RegionRowrows () const
 
QVector< mesh::InfilDefaultRowinfilDefaults () const
 
bool validate (QString *errOut) const
 

Constructor & Destructor Documentation

◆ MeshRegionDefaultsWidget()

MeshRegionDefaultsWidget::MeshRegionDefaultsWidget ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ infilDefaults()

QVector< mesh::InfilDefaultRow > MeshRegionDefaultsWidget::infilDefaults ( ) const

The rows that name a method, as [2D_INFILTRATION_DEFAULTS] rows. Empty when no row names one.

Here is the call graph for this function:

◆ rows()

QVector< MeshRegionDefaultsWidget::RegionRow > MeshRegionDefaultsWidget::rows ( ) const

The * row first, then the region rows in table order.

Here is the caller graph for this function:

◆ setDepthUnit()

void MeshRegionDefaultsWidget::setDepthUnit ( const QString &  unit)

Unit label shown in the "Initial depth" column header ("m", "ft").

◆ setRegionTags()

void MeshRegionDefaultsWidget::setRegionTags ( const QStringList &  tags)

Replace the region rows with tags, keeping whatever the user already entered for a tag that survives. The * row is never touched.

◆ setStarHydraulics()

void MeshRegionDefaultsWidget::setStarHydraulics ( double  manningsN,
double  initDepth 
)

Mirror the dialog's roughness / initial-depth fields onto the * row and re-render every region row that is still inheriting them.

◆ validate()

bool MeshRegionDefaultsWidget::validate ( QString *  errOut) const

False, with errOut set to a message naming the region, when a row names a method but leaves one of that method's parameters blank.

Here is the call graph for this function:

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