![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <markershapecombo.h>
Public Types | |
| enum | BuiltinShape { Circle = 0 , Square , Triangle , Diamond , Star , Cross } |
Signals | |
| void | shapeValueChanged (int v) |
Public Member Functions | |
| MarkerShapeCombo (QWidget *parent=nullptr) | |
| void | addShape (int value, BuiltinShape shape, const QString &label) |
| void | addShape (int value, const QString &label) |
| void | populateDefault (bool includeCross=false) |
| void | populateCanonical () |
| int | shapeValue () const |
| void | setShapeValue (int v) |
|
explicit |
| void openswmmvis::ui::MarkerShapeCombo::addShape | ( | int | value, |
| BuiltinShape | shape, | ||
| const QString & | label | ||
| ) |
Legacy overload — the BuiltinShape arg is ignored; the preview icon is rendered from value via the canonical drawMarkerShape so every MarkerShape draws correctly. Kept for source compatibility.
| void openswmmvis::ui::MarkerShapeCombo::addShape | ( | int | value, |
| const QString & | label | ||
| ) |
Add a row whose value is a canonical OpenSWMM::Render::MarkerShape integer; the preview icon is rendered via drawMarkerShape.
| void openswmmvis::ui::MarkerShapeCombo::populateCanonical | ( | ) |
Fill with the full canonical OpenSWMM::Render::MarkerShape set (all 19 shapes). For editors bound to that enum (Single Symbol point / mesh node, etc.).
| void openswmmvis::ui::MarkerShapeCombo::populateDefault | ( | bool | includeCross = false | ) |
Legacy 5/6-shape mix for consumers backed by a small per-class shape enum (e.g. PointFeatureSublayerStyle::MarkerShape, values 0–4). Do NOT use for canonical OpenSWMM::Render::MarkerShape editors — use populateCanonical() so the extra shapes' values stay valid.
| void openswmmvis::ui::MarkerShapeCombo::setShapeValue | ( | int | v | ) |
Select the row whose integer value matches v. No-op if none.
| int openswmmvis::ui::MarkerShapeCombo::shapeValue | ( | ) | const |
Current shape integer value (-1 if nothing selected).
|
signal |