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
GISVectorSymbol Struct Reference

Rendering symbology for a vector layer. More...

#include <gisvectorlayer.h>

Collaboration diagram for GISVectorSymbol:

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
 

Detailed Description

Rendering symbology for a vector layer.

Supports point (marker), line, and polygon rendering styles.

Member Enumeration Documentation

◆ MarkerShape

Enumerator
Circle 
Square 
Triangle 
Diamond 
Star 
Cross 

Member Function Documentation

◆ fromJson()

void GISVectorSymbol::fromJson ( const QJsonObject &  j)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toJson()

QJsonObject GISVectorSymbol::toJson ( ) const
Here is the call graph for this function:

Member Data Documentation

◆ labelColor

QColor GISVectorSymbol::labelColor = Qt::black

◆ labelConfig

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.

◆ labelField

QString GISVectorSymbol::labelField

OGR field name used for labels.

◆ labelFont

QFont GISVectorSymbol::labelFont

◆ linePen

QPen GISVectorSymbol::linePen = QPen(QColor(Qt::blue), 2.0)

◆ markerFill

QColor GISVectorSymbol::markerFill = QColor(Qt::red)

◆ markerOutline

QColor GISVectorSymbol::markerOutline = QColor(Qt::darkRed)

◆ markerOutlineW

double GISVectorSymbol::markerOutlineW = 1.0

◆ markerShape

MarkerShape GISVectorSymbol::markerShape = Circle

◆ markerSize

double GISVectorSymbol::markerSize = 6.0

Marker diameter in pixels.

◆ polygonFill

QBrush GISVectorSymbol::polygonFill = QBrush(QColor(100, 149, 237, 160))

◆ polygonOutline

QPen GISVectorSymbol::polygonOutline = QPen(QColor(Qt::darkBlue), 2.0)

◆ showLabels

bool GISVectorSymbol::showLabels = false

The documentation for this struct was generated from the following files: