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
GisVectorSymbolAdapter Class Reference

#include <gisvectorsymboladapter.h>

Inheritance diagram for GisVectorSymbolAdapter:
Collaboration diagram for GisVectorSymbolAdapter:

Public Types

enum  MarkerShape {
  Circle = GISVectorSymbol::Circle ,
  Square = GISVectorSymbol::Square ,
  Triangle = GISVectorSymbol::Triangle ,
  Diamond = GISVectorSymbol::Diamond ,
  Star = GISVectorSymbol::Star ,
  Cross = GISVectorSymbol::Cross
}
 
using Writer = std::function< void(const GISVectorSymbol &)>
 

Signals

void symbolChanged ()
 

Public Member Functions

 GisVectorSymbolAdapter (GISVectorSymbol initial, Writer writer, QObject *parent=nullptr)
 
MarkerShape markerShape () const
 
double markerSize () const
 
QColor markerFill () const
 
QColor markerOutline () const
 
double markerOutlineW () const
 
void setMarkerShape (MarkerShape v)
 
void setMarkerSize (double v)
 
void setMarkerFill (const QColor &v)
 
void setMarkerOutline (const QColor &v)
 
void setMarkerOutlineW (double v)
 
QColor lineColor () const
 
double lineWidth () const
 
Qt::PenStyle lineDash () const
 
void setLineColor (const QColor &v)
 
void setLineWidth (double v)
 
void setLineDash (Qt::PenStyle v)
 
QColor polygonFill () const
 
QColor polygonOutlineColor () const
 
double polygonOutlineWidth () const
 
void setPolygonFill (const QColor &v)
 
void setPolygonOutlineColor (const QColor &v)
 
void setPolygonOutlineWidth (double v)
 
bool showLabels () const
 
QString labelField () const
 
QFont labelFont () const
 
QColor labelColor () const
 
void setShowLabels (bool v)
 
void setLabelField (const QString &v)
 
void setLabelFont (const QFont &v)
 
void setLabelColor (const QColor &v)
 
void resyncFrom (const GISVectorSymbol &s)
 

Properties

MarkerShape markerShape
 
double markerSize
 
QColor markerFill
 
QColor markerOutline
 
double markerOutlineW
 
QColor lineColor
 
double lineWidth
 
Qt::PenStyle lineDash
 
QColor polygonFill
 
QColor polygonOutlineColor
 
double polygonOutlineWidth
 
bool showLabels
 
QString labelField
 
QFont labelFont
 
QColor labelColor
 

Member Typedef Documentation

◆ Writer

using GisVectorSymbolAdapter::Writer = std::function<void(const GISVectorSymbol &)>

Member Enumeration Documentation

◆ MarkerShape

Re-export the marker shape enum so QPropertyModel can offer a combo.

Enumerator
Circle 
Square 
Triangle 
Diamond 
Star 
Cross 

Constructor & Destructor Documentation

◆ GisVectorSymbolAdapter()

GisVectorSymbolAdapter::GisVectorSymbolAdapter ( GISVectorSymbol  initial,
Writer  writer,
QObject *  parent = nullptr 
)
inlineexplicit

Member Function Documentation

◆ labelColor()

QColor GisVectorSymbolAdapter::labelColor ( ) const
inline

◆ labelField()

QString GisVectorSymbolAdapter::labelField ( ) const
inline

◆ labelFont()

QFont GisVectorSymbolAdapter::labelFont ( ) const
inline

◆ lineColor()

QColor GisVectorSymbolAdapter::lineColor ( ) const
inline

◆ lineDash()

Qt::PenStyle GisVectorSymbolAdapter::lineDash ( ) const
inline

◆ lineWidth()

double GisVectorSymbolAdapter::lineWidth ( ) const
inline

◆ markerFill()

QColor GisVectorSymbolAdapter::markerFill ( ) const
inline

◆ markerOutline()

QColor GisVectorSymbolAdapter::markerOutline ( ) const
inline

◆ markerOutlineW()

double GisVectorSymbolAdapter::markerOutlineW ( ) const
inline

◆ markerShape()

MarkerShape GisVectorSymbolAdapter::markerShape ( ) const
inline

◆ markerSize()

double GisVectorSymbolAdapter::markerSize ( ) const
inline

◆ polygonFill()

QColor GisVectorSymbolAdapter::polygonFill ( ) const
inline

◆ polygonOutlineColor()

QColor GisVectorSymbolAdapter::polygonOutlineColor ( ) const
inline

◆ polygonOutlineWidth()

double GisVectorSymbolAdapter::polygonOutlineWidth ( ) const
inline

◆ resyncFrom()

void GisVectorSymbolAdapter::resyncFrom ( const GISVectorSymbol s)
inline

Refresh the cached symbol from the layer WITHOUT invoking the writer (no write-back loop). Emits symbolChanged so mounted editors re-read. Used by GISVectorLayer to keep its persistent adapter truthful.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLabelColor()

void GisVectorSymbolAdapter::setLabelColor ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setLabelField()

void GisVectorSymbolAdapter::setLabelField ( const QString &  v)
inline
Here is the caller graph for this function:

◆ setLabelFont()

void GisVectorSymbolAdapter::setLabelFont ( const QFont &  v)
inline
Here is the caller graph for this function:

◆ setLineColor()

void GisVectorSymbolAdapter::setLineColor ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setLineDash()

void GisVectorSymbolAdapter::setLineDash ( Qt::PenStyle  v)
inline
Here is the caller graph for this function:

◆ setLineWidth()

void GisVectorSymbolAdapter::setLineWidth ( double  v)
inline
Here is the caller graph for this function:

◆ setMarkerFill()

void GisVectorSymbolAdapter::setMarkerFill ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setMarkerOutline()

void GisVectorSymbolAdapter::setMarkerOutline ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setMarkerOutlineW()

void GisVectorSymbolAdapter::setMarkerOutlineW ( double  v)
inline
Here is the caller graph for this function:

◆ setMarkerShape()

void GisVectorSymbolAdapter::setMarkerShape ( MarkerShape  v)
inline
Here is the caller graph for this function:

◆ setMarkerSize()

void GisVectorSymbolAdapter::setMarkerSize ( double  v)
inline
Here is the caller graph for this function:

◆ setPolygonFill()

void GisVectorSymbolAdapter::setPolygonFill ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setPolygonOutlineColor()

void GisVectorSymbolAdapter::setPolygonOutlineColor ( const QColor &  v)
inline
Here is the caller graph for this function:

◆ setPolygonOutlineWidth()

void GisVectorSymbolAdapter::setPolygonOutlineWidth ( double  v)
inline
Here is the caller graph for this function:

◆ setShowLabels()

void GisVectorSymbolAdapter::setShowLabels ( bool  v)
inline
Here is the caller graph for this function:

◆ showLabels()

bool GisVectorSymbolAdapter::showLabels ( ) const
inline

◆ symbolChanged

void GisVectorSymbolAdapter::symbolChanged ( )
signal
Here is the caller graph for this function:

Property Documentation

◆ labelColor

QColor GisVectorSymbolAdapter::labelColor
readwrite

◆ labelField

QString GisVectorSymbolAdapter::labelField
readwrite

◆ labelFont

QFont GisVectorSymbolAdapter::labelFont
readwrite

◆ lineColor

QColor GisVectorSymbolAdapter::lineColor
readwrite

◆ lineDash

Qt::PenStyle GisVectorSymbolAdapter::lineDash
readwrite

◆ lineWidth

double GisVectorSymbolAdapter::lineWidth
readwrite

◆ markerFill

QColor GisVectorSymbolAdapter::markerFill
readwrite

◆ markerOutline

QColor GisVectorSymbolAdapter::markerOutline
readwrite

◆ markerOutlineW

double GisVectorSymbolAdapter::markerOutlineW
readwrite

◆ markerShape

MarkerShape GisVectorSymbolAdapter::markerShape
readwrite

◆ markerSize

double GisVectorSymbolAdapter::markerSize
readwrite

◆ polygonFill

QColor GisVectorSymbolAdapter::polygonFill
readwrite

◆ polygonOutlineColor

QColor GisVectorSymbolAdapter::polygonOutlineColor
readwrite

◆ polygonOutlineWidth

double GisVectorSymbolAdapter::polygonOutlineWidth
readwrite

◆ showLabels

bool GisVectorSymbolAdapter::showLabels
readwrite

The documentation for this class was generated from the following file: