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
CategoricalPalette Namespace Reference

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.
 

Function Documentation

◆ at()

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.

Here is the caller graph for this function:

◆ builtinNames()

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.

Here is the call graph for this function:

◆ byName()

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".

Here is the caller graph for this function:

◆ palette()

QList< QColor > CategoricalPalette::palette ( )

Returns the full palette as an ordered list.

◆ size()

int CategoricalPalette::size ( )

Number of colors in one full cycle before the palette wraps.

Here is the caller graph for this function: