![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Rendering symbology for a vector layer. More...
#include <gisvectorlayer.h>
Public Types | |
| enum | MarkerShape { Circle , Square , Triangle , Diamond , Star , Cross } |
Public Member Functions | |
| QJsonObject | toJson () const |
| void | fromJson (const QJsonObject &j) |
Public Attributes | |
| MarkerShape | markerShape = Circle |
| double | markerSize = 6.0 |
| QColor | markerFill = QColor(Qt::red) |
| QColor | markerOutline = QColor(Qt::darkRed) |
| double | markerOutlineW = 1.0 |
| QPen | linePen = QPen(QColor(Qt::blue), 2.0) |
| QBrush | polygonFill = QBrush(QColor(100, 149, 237, 160)) |
| QPen | polygonOutline = QPen(QColor(Qt::darkBlue), 2.0) |
| bool | showLabels = false |
| QString | labelField |
| QFont | labelFont |
| QColor | labelColor = Qt::black |
| OpenSWMM::Render::LabelConfig | labelConfig |
Rendering symbology for a vector layer.
Supports point (marker), line, and polygon rendering styles.
| void GISVectorSymbol::fromJson | ( | const QJsonObject & | j | ) |
| QJsonObject GISVectorSymbol::toJson | ( | ) | const |
| QColor GISVectorSymbol::labelColor = Qt::black |
| OpenSWMM::Render::LabelConfig GISVectorSymbol::labelConfig |
Slice X.19 — full LabelConfig (halo, placement, scale-range). Mirrors the legacy showLabels/labelField/labelFont/labelColor via GISVectorLayer::setLabelConfig; preserved here so when / if the GIS-vector .oswp persistence path lands, the richer fields ride along through the same symbol JSON.
| QString GISVectorSymbol::labelField |
OGR field name used for labels.
| QFont GISVectorSymbol::labelFont |
| QPen GISVectorSymbol::linePen = QPen(QColor(Qt::blue), 2.0) |
| QColor GISVectorSymbol::markerFill = QColor(Qt::red) |
| QColor GISVectorSymbol::markerOutline = QColor(Qt::darkRed) |
| double GISVectorSymbol::markerOutlineW = 1.0 |
| MarkerShape GISVectorSymbol::markerShape = Circle |
| double GISVectorSymbol::markerSize = 6.0 |
Marker diameter in pixels.
| QBrush GISVectorSymbol::polygonFill = QBrush(QColor(100, 149, 237, 160)) |
| QPen GISVectorSymbol::polygonOutline = QPen(QColor(Qt::darkBlue), 2.0) |
| bool GISVectorSymbol::showLabels = false |