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

Shared base: pollutant rows + one bound (engine, land use) target. More...

#include <qualityfunctiontablemodels.h>

Inheritance diagram for openswmmvis::ui::QualityFunctionTableModel:
Collaboration diagram for openswmmvis::ui::QualityFunctionTableModel:

Public Member Functions

 QualityFunctionTableModel (QObject *parent=nullptr)
 
void bind (void *engineHandle, int luIndex)
 
void refresh ()
 re-query pollutant rows (after add/remove/rename)
 
int rowCount (const QModelIndex &parent={}) const override
 
void * engineHandle () const
 
int landUseIndex () const
 

Protected Member Functions

QString pollutantName (int row) const
 

Protected Attributes

void * m_engine = nullptr
 
int m_luIndex = -1
 
int m_rows = 0
 

Detailed Description

Shared base: pollutant rows + one bound (engine, land use) target.

Constructor & Destructor Documentation

◆ QualityFunctionTableModel()

openswmmvis::ui::QualityFunctionTableModel::QualityFunctionTableModel ( QObject *  parent = nullptr)
inlineexplicit

Member Function Documentation

◆ bind()

void openswmmvis::ui::QualityFunctionTableModel::bind ( void *  engineHandle,
int  luIndex 
)

Bind the engine handle and land use index this table edits. luIndex < 0 unbinds (empty table).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ engineHandle()

void * openswmmvis::ui::QualityFunctionTableModel::engineHandle ( ) const
inline
Here is the caller graph for this function:

◆ landUseIndex()

int openswmmvis::ui::QualityFunctionTableModel::landUseIndex ( ) const
inline

◆ pollutantName()

QString openswmmvis::ui::QualityFunctionTableModel::pollutantName ( int  row) const
protected
Here is the caller graph for this function:

◆ refresh()

void openswmmvis::ui::QualityFunctionTableModel::refresh ( )

re-query pollutant rows (after add/remove/rename)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount()

int openswmmvis::ui::QualityFunctionTableModel::rowCount ( const QModelIndex &  parent = {}) const
override

Member Data Documentation

◆ m_engine

void* openswmmvis::ui::QualityFunctionTableModel::m_engine = nullptr
protected

◆ m_luIndex

int openswmmvis::ui::QualityFunctionTableModel::m_luIndex = -1
protected

◆ m_rows

int openswmmvis::ui::QualityFunctionTableModel::m_rows = 0
protected

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