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

#include <swmmelementsymboladapter.h>

Inheritance diagram for SwmmElementSymbolAdapter:
Collaboration diagram for SwmmElementSymbolAdapter:

Public Types

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

Signals

void symbolChanged ()
 

Public Member Functions

 SwmmElementSymbolAdapter (SWMMElementSymbol initial, Writer writer, QObject *parent=nullptr)
 
QColor fillColor () const
 
QColor outlineColor () const
 
double outlineWidth () const
 
double size () const
 
OpenSWMM::Render::MarkerShape markerShape () const
 
bool showLabel () const
 
QFont labelFont () const
 
QColor labelColor () const
 
bool showArrows () const
 
double arrowSize () const
 
double arrowWidth () const
 
QColor arrowColor () const
 
bool arrowOnlyWhenFlowPos () const
 
void setFillColor (const QColor &v)
 
void setOutlineColor (const QColor &v)
 
void setOutlineWidth (double v)
 
void setSize (double v)
 
void setMarkerShape (OpenSWMM::Render::MarkerShape v)
 
void setShowLabel (bool v)
 
void setLabelFont (const QFont &v)
 
void setLabelColor (const QColor &v)
 
void setShowArrows (bool v)
 
void setArrowSize (double v)
 
void setArrowWidth (double v)
 
void setArrowColor (const QColor &v)
 
void setArrowOnlyWhenFlowPos (bool v)
 
const SWMMElementSymbolsnapshot () const
 
void restore (const SWMMElementSymbol &s)
 
void resyncFrom (const SWMMElementSymbol &s)
 

Properties

QColor fillColor
 
QColor outlineColor
 
double outlineWidth
 
double size
 
OpenSWMM::Render::MarkerShape markerShape
 
bool showLabel
 
QFont labelFont
 
QColor labelColor
 
bool showArrows
 
double arrowSize
 
double arrowWidth
 
QColor arrowColor
 
bool arrowOnlyWhenFlowPos
 

Member Typedef Documentation

◆ Writer

using SwmmElementSymbolAdapter::Writer = std::function<void(const SWMMElementSymbol &)>

Constructor & Destructor Documentation

◆ SwmmElementSymbolAdapter()

SwmmElementSymbolAdapter::SwmmElementSymbolAdapter ( SWMMElementSymbol  initial,
Writer  writer,
QObject *  parent = nullptr 
)
inlineexplicit

Member Function Documentation

◆ arrowColor()

QColor SwmmElementSymbolAdapter::arrowColor ( ) const
inline

◆ arrowOnlyWhenFlowPos()

bool SwmmElementSymbolAdapter::arrowOnlyWhenFlowPos ( ) const
inline

◆ arrowSize()

double SwmmElementSymbolAdapter::arrowSize ( ) const
inline

◆ arrowWidth()

double SwmmElementSymbolAdapter::arrowWidth ( ) const
inline

◆ fillColor()

QColor SwmmElementSymbolAdapter::fillColor ( ) const
inline

◆ labelColor()

QColor SwmmElementSymbolAdapter::labelColor ( ) const
inline

◆ labelFont()

QFont SwmmElementSymbolAdapter::labelFont ( ) const
inline

◆ markerShape()

OpenSWMM::Render::MarkerShape SwmmElementSymbolAdapter::markerShape ( ) const
inline

◆ outlineColor()

QColor SwmmElementSymbolAdapter::outlineColor ( ) const
inline

◆ outlineWidth()

double SwmmElementSymbolAdapter::outlineWidth ( ) const
inline

◆ restore()

void SwmmElementSymbolAdapter::restore ( const SWMMElementSymbol s)
inline

◆ resyncFrom()

void SwmmElementSymbolAdapter::resyncFrom ( const SWMMElementSymbol s)
inline

Refresh the adapter's cached struct from the layer WITHOUT invoking the writer (no write-back loop). Emits symbolChanged so mounted editors re-read. The layer uses this to keep its persistent adapter set truthful when a symbol changes through another path (setKindRenderer back-write, style import, Cancel rollback).

Here is the call graph for this function:

◆ setArrowColor()

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

◆ setArrowOnlyWhenFlowPos()

void SwmmElementSymbolAdapter::setArrowOnlyWhenFlowPos ( bool  v)
inline
Here is the caller graph for this function:

◆ setArrowSize()

void SwmmElementSymbolAdapter::setArrowSize ( double  v)
inline
Here is the caller graph for this function:

◆ setArrowWidth()

void SwmmElementSymbolAdapter::setArrowWidth ( double  v)
inline
Here is the caller graph for this function:

◆ setFillColor()

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

◆ setLabelColor()

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

◆ setLabelFont()

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

◆ setMarkerShape()

void SwmmElementSymbolAdapter::setMarkerShape ( OpenSWMM::Render::MarkerShape  v)
inline

◆ setOutlineColor()

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

◆ setOutlineWidth()

void SwmmElementSymbolAdapter::setOutlineWidth ( double  v)
inline
Here is the caller graph for this function:

◆ setShowArrows()

void SwmmElementSymbolAdapter::setShowArrows ( bool  v)
inline
Here is the caller graph for this function:

◆ setShowLabel()

void SwmmElementSymbolAdapter::setShowLabel ( bool  v)
inline
Here is the caller graph for this function:

◆ setSize()

void SwmmElementSymbolAdapter::setSize ( double  v)
inline
Here is the caller graph for this function:

◆ showArrows()

bool SwmmElementSymbolAdapter::showArrows ( ) const
inline

◆ showLabel()

bool SwmmElementSymbolAdapter::showLabel ( ) const
inline

◆ size()

double SwmmElementSymbolAdapter::size ( ) const
inline

◆ snapshot()

const SWMMElementSymbol & SwmmElementSymbolAdapter::snapshot ( ) const
inline

◆ symbolChanged

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

Property Documentation

◆ arrowColor

QColor SwmmElementSymbolAdapter::arrowColor
readwrite

◆ arrowOnlyWhenFlowPos

bool SwmmElementSymbolAdapter::arrowOnlyWhenFlowPos
readwrite

◆ arrowSize

double SwmmElementSymbolAdapter::arrowSize
readwrite

◆ arrowWidth

double SwmmElementSymbolAdapter::arrowWidth
readwrite

◆ fillColor

QColor SwmmElementSymbolAdapter::fillColor
readwrite

◆ labelColor

QColor SwmmElementSymbolAdapter::labelColor
readwrite

◆ labelFont

QFont SwmmElementSymbolAdapter::labelFont
readwrite

◆ markerShape

OpenSWMM::Render::MarkerShape SwmmElementSymbolAdapter::markerShape
readwrite

◆ outlineColor

QColor SwmmElementSymbolAdapter::outlineColor
readwrite

◆ outlineWidth

double SwmmElementSymbolAdapter::outlineWidth
readwrite

◆ showArrows

bool SwmmElementSymbolAdapter::showArrows
readwrite

◆ showLabel

bool SwmmElementSymbolAdapter::showLabel
readwrite

◆ size

double SwmmElementSymbolAdapter::size
readwrite

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