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::MarkerShapeCombo Class Reference

#include <markershapecombo.h>

Inheritance diagram for openswmmvis::ui::MarkerShapeCombo:
Collaboration diagram for openswmmvis::ui::MarkerShapeCombo:

Public Types

enum  BuiltinShape {
  Circle = 0 ,
  Square ,
  Triangle ,
  Diamond ,
  Star ,
  Cross
}
 

Signals

void shapeValueChanged (int v)
 

Public Member Functions

 MarkerShapeCombo (QWidget *parent=nullptr)
 
void addShape (int value, BuiltinShape shape, const QString &label)
 
void addShape (int value, const QString &label)
 
void populateDefault (bool includeCross=false)
 
void populateCanonical ()
 
int shapeValue () const
 
void setShapeValue (int v)
 

Member Enumeration Documentation

◆ BuiltinShape

Enumerator
Circle 
Square 
Triangle 
Diamond 
Star 
Cross 

Constructor & Destructor Documentation

◆ MarkerShapeCombo()

openswmmvis::ui::MarkerShapeCombo::MarkerShapeCombo ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addShape() [1/2]

void openswmmvis::ui::MarkerShapeCombo::addShape ( int  value,
BuiltinShape  shape,
const QString &  label 
)

Legacy overload — the BuiltinShape arg is ignored; the preview icon is rendered from value via the canonical drawMarkerShape so every MarkerShape draws correctly. Kept for source compatibility.

Here is the caller graph for this function:

◆ addShape() [2/2]

void openswmmvis::ui::MarkerShapeCombo::addShape ( int  value,
const QString &  label 
)

Add a row whose value is a canonical OpenSWMM::Render::MarkerShape integer; the preview icon is rendered via drawMarkerShape.

◆ populateCanonical()

void openswmmvis::ui::MarkerShapeCombo::populateCanonical ( )

Fill with the full canonical OpenSWMM::Render::MarkerShape set (all 19 shapes). For editors bound to that enum (Single Symbol point / mesh node, etc.).

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

◆ populateDefault()

void openswmmvis::ui::MarkerShapeCombo::populateDefault ( bool  includeCross = false)

Legacy 5/6-shape mix for consumers backed by a small per-class shape enum (e.g. PointFeatureSublayerStyle::MarkerShape, values 0–4). Do NOT use for canonical OpenSWMM::Render::MarkerShape editors — use populateCanonical() so the extra shapes' values stay valid.

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

◆ setShapeValue()

void openswmmvis::ui::MarkerShapeCombo::setShapeValue ( int  v)

Select the row whose integer value matches v. No-op if none.

Here is the caller graph for this function:

◆ shapeValue()

int openswmmvis::ui::MarkerShapeCombo::shapeValue ( ) const

Current shape integer value (-1 if nothing selected).

Here is the caller graph for this function:

◆ shapeValueChanged

void openswmmvis::ui::MarkerShapeCombo::shapeValueChanged ( int  v)
signal
Here is the caller graph for this function:

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