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::MeshPage Class Reference

#include <meshpage.h>

Inheritance diagram for openswmmvis::ui::MeshPage:
Collaboration diagram for openswmmvis::ui::MeshPage:

Public Member Functions

 MeshPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
QString title () const override
 Sidebar row text, already tr()'d.
 
void read () override
 engine → widgets. Block signals while setting.
 
int write () override
 widgets → engine via ctx_.writeIfChanged; returns the sum.
 
void set2DModuleSetter (std::function< void(bool)> setter)
 How this page turns the 2D module on or off.
 
- Public Member Functions inherited from openswmmvis::ui::SimOptionsPage
 SimOptionsPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
virtual void refreshGates ()
 Intra-page widget gates (PLAN §4.3 "widget" rows).
 
virtual void applyCapabilities ()
 One-shot per-widget disable/tooltip from ctx_.caps().
 
virtual bool validate (QString *warn)
 Validation run before Apply/OK; false pops warn and stops.
 

Additional Inherited Members

- Signals inherited from openswmmvis::ui::SimOptionsPage
void gateInputsChanged ()
 Emit from any control that feeds a PageGate.
 
- Static Protected Member Functions inherited from openswmmvis::ui::SimOptionsPage
static void tagOption (QWidget *w, const char *key)
 Tag an option widget for the reachability test.
 
- Protected Attributes inherited from openswmmvis::ui::SimOptionsPage
SimOptionsContextctx_
 

Constructor & Destructor Documentation

◆ MeshPage()

openswmmvis::ui::MeshPage::MeshPage ( SimOptionsContext ctx,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ read()

void openswmmvis::ui::MeshPage::read ( )
overridevirtual

engine → widgets. Block signals while setting.

Implements openswmmvis::ui::SimOptionsPage.

◆ set2DModuleSetter()

void openswmmvis::ui::MeshPage::set2DModuleSetter ( std::function< void(bool)>  setter)

How this page turns the 2D module on or off.

Setting a mesh active implies the module is wanted, and clearing the last one implies it is not. The check box lives on Models / Processes, so the dialog supplies the setter rather than letting this page reach across into another page's widget.

◆ title()

QString openswmmvis::ui::MeshPage::title ( ) const
overridevirtual

Sidebar row text, already tr()'d.

Implements openswmmvis::ui::SimOptionsPage.

◆ write()

int openswmmvis::ui::MeshPage::write ( )
overridevirtual

widgets → engine via ctx_.writeIfChanged; returns the sum.

Implements openswmmvis::ui::SimOptionsPage.


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