#include <swmmraingagepropertyadapter.h>
◆ DataSource
| Enumerator |
|---|
| Timeseries | |
| File | |
◆ RainFileFormat
Rain-file grammar. Values are engine RainFileFormat codes, and these three are the only ones the engine ever assigns: the parser sets USER_CSV for a "path:col" token and STAN_PRCP for a plain path (CatchmentHandler), the resolver promotes STAN_PRCP → USER_CSV on detection, and a gage that has never had a file stays UNKNOWN. The NWS/DSI/HLY codes 0..4 are declared in the engine but never written, so offering them here would be offering states the model cannot reach.
| Enumerator |
|---|
| AutoDetect | |
| StandardRainFile | |
| MultiColumn | |
◆ RainType
Type-safe enums declared with Q_ENUM so QPropertyModel renders the key name (e.g. "INTENSITY", "FILE", "MM") instead of a raw integer. Values mirror the engine codes and the Attribute Table value lists.
| Enumerator |
|---|
| Intensity | |
| Volume | |
| Cumulative | |
◆ RainUnits
| Enumerator |
|---|
| Inches | |
| Millimeters | |
◆ coordChangeRequested
| void SWMMRainGagePropertyAdapter::coordChangeRequested |
( |
double |
newX, |
|
|
double |
newY |
|
) |
| |
|
signal |
◆ currentRainfall()
| double SWMMRainGagePropertyAdapter::currentRainfall |
( |
| ) |
const |
◆ dataSource()
◆ displayLabelFor()
| QString SWMMRainGagePropertyAdapter::displayLabelFor |
( |
const QString & |
property | ) |
const |
◆ fileColumn()
| QString SWMMRainGagePropertyAdapter::fileColumn |
( |
| ) |
const |
◆ fileFormat()
| int SWMMRainGagePropertyAdapter::fileFormat |
( |
| ) |
const |
Raw RainFileFormat code: -1 UNKNOWN, 5 STAN_PRCP (standard SWMM rain file), 6 USER_CSV (multi-column CSV/TSV/TSF). The panel reads it to gate Station ID; the fileFormat property exposes it as an enum.
◆ fileFormatEnum()
The same value as a Q_ENUM, for the fileFormat property's combo. A code outside the three reachable ones reports StandardRainFile: every such code is station-based, which is the distinction that decides both the written grammar and the Station ID row.
◆ filePath()
| QString SWMMRainGagePropertyAdapter::filePath |
( |
| ) |
const |
◆ rainIntervalRef()
◆ rainType()
◆ rainUnits()
◆ resolvedFilePath()
| QString SWMMRainGagePropertyAdapter::resolvedFilePath |
( |
| ) |
const |
◆ scaleFactor()
| double SWMMRainGagePropertyAdapter::scaleFactor |
( |
| ) |
const |
◆ seriesNameRef()
| DataObjectRef SWMMRainGagePropertyAdapter::seriesNameRef |
( |
| ) |
const |
◆ setDataSource
| void SWMMRainGagePropertyAdapter::setDataSource |
( |
int |
v | ) |
|
|
slot |
◆ setFileColumn
| void SWMMRainGagePropertyAdapter::setFileColumn |
( |
const QString & |
c | ) |
|
|
slot |
◆ setFileFormat
| void SWMMRainGagePropertyAdapter::setFileFormat |
( |
int |
v | ) |
|
|
slot |
◆ setFilePath
| void SWMMRainGagePropertyAdapter::setFilePath |
( |
const QString & |
p | ) |
|
|
slot |
◆ setRainIntervalRef
| void SWMMRainGagePropertyAdapter::setRainIntervalRef |
( |
const RainIntervalRef & |
r | ) |
|
|
slot |
◆ setRainType
| void SWMMRainGagePropertyAdapter::setRainType |
( |
int |
v | ) |
|
|
slot |
◆ setRainUnits
| void SWMMRainGagePropertyAdapter::setRainUnits |
( |
int |
v | ) |
|
|
slot |
◆ setScaleFactor
| void SWMMRainGagePropertyAdapter::setScaleFactor |
( |
double |
v | ) |
|
|
slot |
◆ setSeriesNameRef
| void SWMMRainGagePropertyAdapter::setSeriesNameRef |
( |
const DataObjectRef & |
r | ) |
|
|
slot |
◆ setSnowFactor
| void SWMMRainGagePropertyAdapter::setSnowFactor |
( |
double |
v | ) |
|
|
slot |
◆ setStationId
| void SWMMRainGagePropertyAdapter::setStationId |
( |
const QString & |
s | ) |
|
|
slot |
◆ setUserFlagsRef
◆ setXCoord
| void SWMMRainGagePropertyAdapter::setXCoord |
( |
double |
v | ) |
|
|
slot |
Emit coordChangeRequested rather than writing the engine, so the panel can route the move through the layer (scene cache + extent).
◆ setYCoord
| void SWMMRainGagePropertyAdapter::setYCoord |
( |
double |
v | ) |
|
|
slot |
◆ snowFactor()
| double SWMMRainGagePropertyAdapter::snowFactor |
( |
| ) |
const |
◆ stationId()
| QString SWMMRainGagePropertyAdapter::stationId |
( |
| ) |
const |
◆ SWMMDataObjectPropertyAdapter()
| SWMMDataObjectPropertyAdapter::SWMMDataObjectPropertyAdapter |
( |
SWMM_Engine |
engine, |
|
|
QString |
name, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ userFlagsRef()
◆ xCoord()
| double SWMMRainGagePropertyAdapter::xCoord |
( |
| ) |
const |
◆ yCoord()
| double SWMMRainGagePropertyAdapter::yCoord |
( |
| ) |
const |
◆ currentRainfall
| double SWMMRainGagePropertyAdapter::currentRainfall |
|
read |
Current rainfall rate in project units — read-only display.
◆ dataSource
◆ fileColumn
| QString SWMMRainGagePropertyAdapter::fileColumn |
|
readwrite |
Multi-column rain file (spec §4 task 4) — the data column selected inside a CSV/TSV/TSF file. Setting a non-empty column switches the engine gage to the USER_CSV file format ("FILE path:col"); the colon composition is the engine writer's job, never the user's. Only meaningful when dataSource == FILE.
◆ fileFormat
Rain-file grammar, and the only way back out of USER_CSV: both setFileColumn() and setFilePath() preserve it by design (engine contract), so without this row a gage that ever had a column could never return to a standard FILE "path" Station Units rain file and its Station ID would stay greyed out for good. Selecting MULTI_COLUMN clears the station id; selecting STANDARD clears the file column — the two grammars' row selectors are mutually exclusive engine-side. Only meaningful when dataSource == FILE.
◆ filePath
| QString SWMMRainGagePropertyAdapter::filePath |
|
readwrite |
Slice IO-11e — external rain-file path for this gage. The string is the original token (relative or absolute) as known to the engine; reads also surface the resolved absolute via resolvedFilePath() for tooltip / status display.
◆ rainInterval
Recording interval. Legacy [RAINGAGES] token 2, edited as an H:MM clock combo (RainIntervalComboBox). The ref carries seconds; the engine stores GageData.interval_sec.
◆ rainType
◆ rainUnits
◆ resolvedFilePath
| QString SWMMRainGagePropertyAdapter::resolvedFilePath |
|
read |
◆ scaleFactor
| double SWMMRainGagePropertyAdapter::scaleFactor |
|
readwrite |
Rainfall scale factor — the optional trailing token of [RAINGAGES] (token 6 for TIMESERIES, token 9 for FILE). Multiplies all rainfall from this gage. Distinct from snowFactor above: this scales rainfall, SCF corrects snow catch. Must be > 0; default 1.0.
◆ seriesName
DA.2 parity — TIME SERIES source: the in-model series id. Renders as a TimeSeries-filtered picker (DataObjectPickerEditor). Only meaningful when dataSource == TIMESERIES (panel greys it otherwise).
◆ snowFactor
| double SWMMRainGagePropertyAdapter::snowFactor |
|
readwrite |
Snow-catch deficiency correction factor (legacy SCF, token 3). Distinct from the rainfall scale factor.
◆ stationId
| QString SWMMRainGagePropertyAdapter::stationId |
|
readwrite |
DA.2 parity — DATA FILE source: station id (standard SWMM rain file grammar Fname Station Units) and rain-depth units (0=IN, 1=MM). Only meaningful when dataSource == FILE.
◆ userFlags
Phase 4 of docs/USER_FLAGS_UI_PLAN_2026-06-03.md — per-object user-flag assignments row (see SWMMNodePropertyAdapter).
◆ xCoord
| double SWMMRainGagePropertyAdapter::xCoord |
|
readwrite |
Map position, [SYMBOLS] X / Y in the project's map units. A rain gage IS a spatial object — the original DA.2 adapter set omitted these because it derives from the non-spatial data-object base, so the gage was the one placed object whose location could not be typed in. Writes are deferred to PropertiesPanel → SWMMModelLayer::applyGageMove (the same contract SWMMNodePropertyAdapter::setXCoord uses) so the cached scene point moves with the engine value.
◆ yCoord
| double SWMMRainGagePropertyAdapter::yCoord |
|
readwrite |
The documentation for this class was generated from the following files: