![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Functions | |
| QColor | at (int index) |
| Returns the i-th color from the default categorical palette. | |
| int | size () |
| Number of colors in one full cycle before the palette wraps. | |
| QList< QColor > | palette () |
| Returns the full palette as an ordered list. | |
| QList< QColor > | byName (const QString &name) |
Returns the named palette as an ordered list. Falls back to the default (Tab10) when name doesn't match any built-in. | |
| QStringList | builtinNames () |
Names of all built-in palettes, in catalogue order. Used by the Categorized tab's m_catScheme combo to populate its dropdown. | |
| QColor CategoricalPalette::at | ( | int | index | ) |
Returns the i-th color from the default categorical palette.
Wraps around for index >= size() so callers don't have to. Negative indices are folded back to non-negative via modulo.
| QStringList CategoricalPalette::builtinNames | ( | ) |
Names of all built-in palettes, in catalogue order. Used by the Categorized tab's m_catScheme combo to populate its dropdown.
| QList< QColor > CategoricalPalette::byName | ( | const QString & | name | ) |
Returns the named palette as an ordered list. Falls back to the default (Tab10) when name doesn't match any built-in.
Recognised names: "Default", "Tab10", "Plotly", "D3", "G10", "T10", "Alphabet", "Dark24", "Light24".
| QList< QColor > CategoricalPalette::palette | ( | ) |
Returns the full palette as an ordered list.
| int CategoricalPalette::size | ( | ) |
Number of colors in one full cycle before the palette wraps.