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
swmmsubcatchpropertyadapter.cpp File Reference
#include "ui/properties/swmmsubcatchpropertyadapter.h"
#include "core/unitsystem.h"
#include "layers/swmmmodellayer.h"
#include "layers/swmmresultslayer.h"
#include "output/outputstatsregistry.h"
#include "ui/properties/groundwatersummary.h"
#include <openswmm/engine/openswmm_subcatchments.h>
#include <openswmm/engine/openswmm_nodes.h>
#include <openswmm/engine/openswmm_gages.h>
#include <openswmm/engine/openswmm_pollutants.h>
#include <openswmm/engine/openswmm_quality.h>
#include <openswmm/engine/openswmm_infrastructure.h>
Include dependency graph for swmmsubcatchpropertyadapter.cpp:

Macros

#define G(method, engineGet)
 
#define STAT_GETTER(METHOD, ENGINE_GET, LAYER_GET)
 
#define S(method, engineSet)
 

Functions

 G (area, swmm_subcatch_get_area) G(width
 
swmm_subcatch_get_width G (slope, swmm_subcatch_get_slope) G(impervPct
 
swmm_subcatch_get_width swmm_subcatch_get_imperv_pct G (pctZeroImperv, swmm_subcatch_get_zero_imperv_pct) G(nImperv
 
swmm_subcatch_get_width swmm_subcatch_get_imperv_pct swmm_subcatch_get_n_imperv G (nPerv, swmm_subcatch_get_n_perv) G(dsImperv
 
swmm_subcatch_get_width swmm_subcatch_get_imperv_pct swmm_subcatch_get_n_imperv swmm_subcatch_get_ds_imperv G (dsPerv, swmm_subcatch_get_ds_perv) void SWMMSubcatchPropertyAdapter
 
 S (setArea, swmm_subcatch_set_area) S(setWidth
 
swmm_subcatch_set_width S (setSlope, swmm_subcatch_set_slope) S(setImpervPct
 
swmm_subcatch_set_width swmm_subcatch_set_imperv_pct S (setPctZeroImperv, swmm_subcatch_set_zero_imperv_pct) S(setNImperv
 
swmm_subcatch_set_width swmm_subcatch_set_imperv_pct swmm_subcatch_set_n_imperv S (setNPerv, swmm_subcatch_set_n_perv) S(setDsImperv
 
swmm_subcatch_set_width swmm_subcatch_set_imperv_pct swmm_subcatch_set_n_imperv swmm_subcatch_set_ds_imperv S (setDsPerv, swmm_subcatch_set_ds_perv) double SWMMSubcatchPropertyAdapter
 

Detailed Description

Macro Definition Documentation

◆ G

#define G (   method,
  engineGet 
)
Value:
double SWMMSubcatchPropertyAdapter::method() const { \
const int i = idx(); \
if (i < 0) return 0.0; \
double v = 0.0; \
engineGet(m_engine, i, &v); \
return v; \
}
size_t i
Definition contourjob.cpp:27
QVector< int > v
pool vertex indices
Definition pslgminsize.cpp:159

◆ S

#define S (   method,
  engineSet 
)
Value:
void SWMMSubcatchPropertyAdapter::method(double v) { \
const int i = idx(); \
if (i < 0) return; \
if (engineSet(m_engine, i, v) == SWMM_OK) emit changed(); \
}

◆ STAT_GETTER

#define STAT_GETTER (   METHOD,
  ENGINE_GET,
  LAYER_GET 
)
Value:
double SWMMSubcatchPropertyAdapter::METHOD() const { \
if (m_statsSourceId.isNull() || !m_statsRegistry) { \
const int i = idx(); \
if (i < 0) return 0.0; \
double v = 0.0; \
ENGINE_GET(m_engine, i, &v); \
return v; \
} \
const auto id = m_statsRegistry->identityFor(m_statsSourceId); \
if (!id.layer) return 0.0; /* layer destroyed since combo set */ \
return id.layer->LAYER_GET(m_name); \
}

Function Documentation

◆ G() [1/5]

G ( area  ,
swmm_subcatch_get_area   
)

◆ G() [2/5]

swmm_subcatch_get_width swmm_subcatch_get_imperv_pct swmm_subcatch_get_n_imperv swmm_subcatch_get_ds_imperv G ( dsPerv  ,
swmm_subcatch_get_ds_perv   
)

◆ G() [3/5]

swmm_subcatch_get_width swmm_subcatch_get_imperv_pct swmm_subcatch_get_n_imperv G ( nPerv  ,
swmm_subcatch_get_n_perv   
)

◆ G() [4/5]

swmm_subcatch_get_width swmm_subcatch_get_imperv_pct G ( pctZeroImperv  ,
swmm_subcatch_get_zero_imperv_pct   
)

◆ G() [5/5]

swmm_subcatch_get_width G ( slope  ,
swmm_subcatch_get_slope   
)

◆ S() [1/5]

S ( setArea  ,
swmm_subcatch_set_area   
)

◆ S() [2/5]

swmm_subcatch_set_width swmm_subcatch_set_imperv_pct swmm_subcatch_set_n_imperv swmm_subcatch_set_ds_imperv S ( setDsPerv  ,
swmm_subcatch_set_ds_perv   
)

◆ S() [3/5]

swmm_subcatch_set_width swmm_subcatch_set_imperv_pct swmm_subcatch_set_n_imperv S ( setNPerv  ,
swmm_subcatch_set_n_perv   
)

◆ S() [4/5]

swmm_subcatch_set_width swmm_subcatch_set_imperv_pct S ( setPctZeroImperv  ,
swmm_subcatch_set_zero_imperv_pct   
)

◆ S() [5/5]

swmm_subcatch_set_width S ( setSlope  ,
swmm_subcatch_set_slope   
)