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
openswmmvis::ui::FeatureStyleEditorBase Class Referenceabstract

#include <featurestyleeditor.h>

Inheritance diagram for openswmmvis::ui::FeatureStyleEditorBase:
Collaboration diagram for openswmmvis::ui::FeatureStyleEditorBase:

Public Member Functions

 FeatureStyleEditorBase (OpenSWMM::Render::FeatureSublayerStyle *style, QWidget *parent=nullptr)
 
void refreshFromModel () override
 
- Public Member Functions inherited from openswmmvis::ui::IStyleEditorWidget
 ~IStyleEditorWidget () override=default
 

Protected Member Functions

void buildCommonRows ()
 
void addPreviewRow ()
 
virtual void updatePreview ()=0
 

Protected Attributes

OpenSWMM::Render::FeatureSublayerStylem_style = nullptr
 
QComboBox * m_attributeCombo = nullptr
 
ColorButtonm_singleColorBtn = nullptr
 
QCheckBox * m_useRampBox = nullptr
 
StylePreviewSwatchm_preview = nullptr
 
LabelConfigEditorm_labelEditor = nullptr
 

Detailed Description

Base — handles the attribute / color / useColorRamp row + preview.

Constructor & Destructor Documentation

◆ FeatureStyleEditorBase()

openswmmvis::ui::FeatureStyleEditorBase::FeatureStyleEditorBase ( OpenSWMM::Render::FeatureSublayerStyle style,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addPreviewRow()

void openswmmvis::ui::FeatureStyleEditorBase::addPreviewRow ( )
protected
Here is the caller graph for this function:

◆ buildCommonRows()

void openswmmvis::ui::FeatureStyleEditorBase::buildCommonRows ( )
protected

Subclasses build their archetype-specific rows then call addPreviewRow() at the bottom so the swatch follows live edits.

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

◆ refreshFromModel()

void openswmmvis::ui::FeatureStyleEditorBase::refreshFromModel ( )
overridevirtual

Re-read the property object's current values and update the widget's controls. Called after an external mutation (Cancel rollback, .oswp load) so the open dialog stays in sync.

Implements openswmmvis::ui::IStyleEditorWidget.

Reimplemented in openswmmvis::ui::PointFeatureStyleEditor, openswmmvis::ui::LineFeatureStyleEditor, and openswmmvis::ui::PolygonFeatureStyleEditor.

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

◆ updatePreview()

virtual void openswmmvis::ui::FeatureStyleEditorBase::updatePreview ( )
protectedpure virtual

Subclass hook — repaint the preview swatch with whatever the archetype-specific state should look like.

Implemented in openswmmvis::ui::PointFeatureStyleEditor, openswmmvis::ui::LineFeatureStyleEditor, and openswmmvis::ui::PolygonFeatureStyleEditor.

Here is the caller graph for this function:

Member Data Documentation

◆ m_attributeCombo

QComboBox* openswmmvis::ui::FeatureStyleEditorBase::m_attributeCombo = nullptr
protected

◆ m_labelEditor

LabelConfigEditor* openswmmvis::ui::FeatureStyleEditorBase::m_labelEditor = nullptr
protected

◆ m_preview

StylePreviewSwatch* openswmmvis::ui::FeatureStyleEditorBase::m_preview = nullptr
protected

◆ m_singleColorBtn

ColorButton* openswmmvis::ui::FeatureStyleEditorBase::m_singleColorBtn = nullptr
protected

◆ m_style

OpenSWMM::Render::FeatureSublayerStyle* openswmmvis::ui::FeatureStyleEditorBase::m_style = nullptr
protected

◆ m_useRampBox

QCheckBox* openswmmvis::ui::FeatureStyleEditorBase::m_useRampBox = nullptr
protected

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