![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <profileplotoptions.h>
Public Types | |
| enum | LabelOrientation { Vertical = 0 , Horizontal = 1 , Diagonal = 2 } |
| enum | LabelFormatMode { Decimals = 0 , SignificantFigures = 1 , Scientific = 2 , Engineering = 3 , Thousands = 4 } |
| Axis label number mode; values mirror openswmmvis::plot::NumberFormatMode (0=Decimals, 1=SignificantFigures, 2=Scientific, 3=Engineering, 4=Thousands). More... | |
| enum | AxisNumberFormat { Integer = 0 , Decimals1 = 1 , Decimals2 = 2 , Decimals3 = 3 , Decimals4 = 4 , Decimals6 = 5 , SigFigs3 = 6 , SigFigs4 = 7 , SigFigs6 = 8 , Scientific2 = 9 , Scientific3 = 10 , Scientific4 = 11 , Engineering2 = 12 , Engineering3 = 13 , ThousandsInteger = 14 , Thousands1 = 15 , Thousands2 = 16 } |
| enum | LegendPosition { TopRight = 0 , TopLeft = 1 , BottomLeft = 2 , BottomRight = 3 } |
| enum | TimeLabelPosition { TimeTopRight = 0 , TimeTopLeft = 1 , TimeBottomLeft = 2 , TimeBottomRight = 3 } |
| enum | GroundSource { Auto = 0 , NodeRims = 1 , Mesh2D = 2 , TerrainDEM = 3 } |
Ground-line source. Auto resolves to Mesh2D when the project has a 2D mesh layer, else NodeRims. More... | |
Public Slots | |
| void | setCurrentHglLine (bool v) |
| void | setCurrentHglFill (bool v) |
| void | setCurrentEgl (bool v) |
| void | setMaxHglBand (bool v) |
| void | setMaxHglLine (bool v) |
| void | setMaxEglLine (bool v) |
| void | setShowNodeLabels (bool v) |
| void | setShowLinkLabels (bool v) |
| void | setInlineNodeLabels (bool v) |
| void | setLabelOrientation (LabelOrientation o) |
| void | setLabelAngleDeg (int deg) |
| void | setXAxisNumberFormat (AxisNumberFormat f) |
| void | setYAxisNumberFormat (AxisNumberFormat f) |
| void | setXLabelFormatMode (LabelFormatMode m) |
| void | setXLabelPrecision (int count) |
| void | setXLabelFormat (const QString &spec) |
| void | setYLabelFormatMode (LabelFormatMode m) |
| void | setYLabelPrecision (int count) |
| void | setYLabelFormat (const QString &spec) |
| void | setGroundSource (GroundSource s) |
| void | setShow2DInundation (bool v) |
| void | setInundation2DLinePen (const QPen &p) |
| void | setInundation2DFillBrush (const QBrush &b) |
| void | setShowBranchStubs (bool v) |
| void | setShowNodeRoses (bool v) |
| void | setFloodRadiusPx (double r) |
| void | setFloodSweepDeg (int deg) |
| void | setFloodColor (const QColor &c) |
| void | setJunctionFill (const QColor &c) |
| void | setJunctionOutline (const QColor &c) |
| void | setOutfallFill (const QColor &c) |
| void | setOutfallOutline (const QColor &c) |
| void | setStorageFill (const QColor &c) |
| void | setStorageOutline (const QColor &c) |
| void | setDividerFill (const QColor &c) |
| void | setDividerOutline (const QColor &c) |
| void | setVirtualJunctionOutlinePen (const QPen &p) |
| void | setConduitFill (const QColor &c) |
| void | setConduitOutline (const QColor &c) |
| void | setPumpFill (const QColor &c) |
| void | setPumpOutline (const QColor &c) |
| void | setWeirFill (const QColor &c) |
| void | setWeirOutline (const QColor &c) |
| void | setOrificeFill (const QColor &c) |
| void | setOrificeOutline (const QColor &c) |
| void | setOutletFill (const QColor &c) |
| void | setOutletOutline (const QColor &c) |
| void | setSoilFill (const QColor &c) |
| void | setBeddingFill (const QColor &c) |
| void | setHglLinePen (const QPen &p) |
| void | setHglFillBrush (const QBrush &b) |
| void | setEglLinePen (const QPen &p) |
| void | setMaxHglLinePen (const QPen &p) |
| void | setMaxHglFillBrush (const QBrush &b) |
| void | setMaxEglLinePen (const QPen &p) |
| void | setConduitOutlinePen (const QPen &p) |
| void | setOrificeOutlinePen (const QPen &p) |
| void | setWeirOutlinePen (const QPen &p) |
| void | setPumpOutlinePen (const QPen &p) |
| void | setOutletOutlinePen (const QPen &p) |
| void | setStreetInvertBrush (const QBrush &b) |
| void | setLegendVisible (bool v) |
| void | setLegendPosition (LegendPosition p) |
| void | setLegendFont (const QFont &f) |
| void | setLegendOpacity (double a) |
| void | setLegendOffset (const QPointF &p) |
| void | setShowTimeLabel (bool v) |
| void | setTimeLabelPosition (TimeLabelPosition p) |
| void | setTimeLabelColor (const QColor &c) |
| void | setTimeLabelFont (const QFont &f) |
| void | setTimeLabelFormat (const QString &fmt) |
| void | setTimeLabelOffset (const QPointF &p) |
Signals | |
| void | changed () |
Public Member Functions | |
| ProfilePlotOptions (QObject *parent=nullptr) | |
| Q_INVOKABLE QString | displayLabelFor (const QString &propertyName) const |
| Human-readable label QPropertyModel uses in the row header instead of the raw Q_PROPERTY name. Falls back to the property name when no mapping is registered. | |
| bool | currentHglLine () const |
| bool | currentHglFill () const |
| bool | currentEgl () const |
| bool | maxHglBand () const |
| bool | maxHglLine () const |
| bool | maxEglLine () const |
| bool | showNodeLabels () const |
| bool | showLinkLabels () const |
| bool | inlineNodeLabels () const |
| LabelOrientation | labelOrientation () const |
| int | labelAngleDeg () const |
| AxisNumberFormat | xAxisNumberFormat () const |
| AxisNumberFormat | yAxisNumberFormat () const |
| LabelFormatMode | xLabelFormatMode () const |
| int | xLabelPrecision () const |
| QString | xLabelFormat () const |
| LabelFormatMode | yLabelFormatMode () const |
| int | yLabelPrecision () const |
| QString | yLabelFormat () const |
| openswmmvis::plot::NumberFormat | xFormat () const |
| Current X/Y axis label format as the shared value type. | |
| openswmmvis::plot::NumberFormat | yFormat () const |
| GroundSource | groundSource () const |
| bool | show2DInundation () const |
| QPen | inundation2DLinePen () const |
| QBrush | inundation2DFillBrush () const |
| bool | showBranchStubs () const |
| bool | showNodeRoses () const |
| double | floodRadiusPx () const |
| int | floodSweepDeg () const |
| QColor | floodColor () const |
| QColor | junctionFill () const |
| QColor | junctionOutline () const |
| QColor | outfallFill () const |
| QColor | outfallOutline () const |
| QColor | storageFill () const |
| QColor | storageOutline () const |
| QColor | dividerFill () const |
| QColor | dividerOutline () const |
| QPen | virtualJunctionOutlinePen () const |
| QColor | conduitFill () const |
| QColor | conduitOutline () const |
| QColor | pumpFill () const |
| QColor | pumpOutline () const |
| QColor | weirFill () const |
| QColor | weirOutline () const |
| QColor | orificeFill () const |
| QColor | orificeOutline () const |
| QColor | outletFill () const |
| QColor | outletOutline () const |
| QColor | soilFill () const |
| QColor | beddingFill () const |
| QPen | hglLinePen () const |
| QBrush | hglFillBrush () const |
| QPen | eglLinePen () const |
| QPen | maxHglLinePen () const |
| QBrush | maxHglFillBrush () const |
| QPen | maxEglLinePen () const |
| QPen | conduitOutlinePen () const |
| QPen | orificeOutlinePen () const |
| QPen | weirOutlinePen () const |
| QPen | pumpOutlinePen () const |
| QPen | outletOutlinePen () const |
| QBrush | streetInvertBrush () const |
| bool | legendVisible () const |
| LegendPosition | legendPosition () const |
| QFont | legendFont () const |
| double | legendOpacity () const |
| QPointF | legendOffset () const |
| bool | showTimeLabel () const |
| TimeLabelPosition | timeLabelPosition () const |
| QColor | timeLabelColor () const |
| QFont | timeLabelFont () const |
| QString | timeLabelFormat () const |
| QPointF | timeLabelOffset () const |
Combined axis number format offered to the user as ONE dropdown. Mirrors openswmmvis::plot::AxisNumberFormatPreset value-for-value — QPropertyModel resolves a property's enumerator list through the declaring class's meta-object, so the list has to be declared here, and it labels each row with the enumerator's own name. The mapping to a real mode + digit count lives in numberformat.h.
| Enumerator | |
|---|---|
| Integer | |
| Decimals1 | |
| Decimals2 | |
| Decimals3 | |
| Decimals4 | |
| Decimals6 | |
| SigFigs3 | |
| SigFigs4 | |
| SigFigs6 | |
| Scientific2 | |
| Scientific3 | |
| Scientific4 | |
| Engineering2 | |
| Engineering3 | |
| ThousandsInteger | |
| Thousands1 | |
| Thousands2 | |
Axis label number mode; values mirror openswmmvis::plot::NumberFormatMode (0=Decimals, 1=SignificantFigures, 2=Scientific, 3=Engineering, 4=Thousands).
| Enumerator | |
|---|---|
| Decimals | |
| SignificantFigures | |
| Scientific | |
| Engineering | |
| Thousands | |
|
explicit |
|
inline |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| QString ProfilePlotOptions::displayLabelFor | ( | const QString & | propertyName | ) | const |
Human-readable label QPropertyModel uses in the row header instead of the raw Q_PROPERTY name. Falls back to the property name when no mapping is registered.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Pavement band drawn under a STREET conduit's gutter line, so a street reads as a road rather than as any other open channel.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| ProfilePlotOptions::AxisNumberFormat ProfilePlotOptions::xAxisNumberFormat | ( | ) | const |
Combined format of each axis, derived from the mode + digit count the rest of the code still works in.
|
inline |
Current X/Y axis label format as the shared value type.
|
inline |
|
inline |
|
inline |
| ProfilePlotOptions::AxisNumberFormat ProfilePlotOptions::yAxisNumberFormat | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |