|
Krita Source Code Documentation
|
#include <indexcolorpalette.h>
Public Member Functions | |
| LabColor | getNearestIndex (LabColor clr) const |
| QPair< int, int > | getNeighbours (int mainClr) const |
| IndexColorPalette () | |
| void | insertColor (KoColor clr) |
| void | insertColor (LabColor clr) |
| void | insertColor (QColor clr) |
| void | insertShades (KoColor clrA, KoColor clrB, int shades) |
| void | insertShades (LabColor clrA, LabColor clrB, int shades) |
| void | insertShades (QColor clrA, QColor clrB, int shades) |
| void | mergeMostRedundantColors () |
| int | numColors () const |
| float | similarity (LabColor c0, LabColor c1) const |
Public Attributes | ||
| QVector< LabColor > | m_colors | |
| struct { | ||
| float a | ||
| float b | ||
| float L | ||
| } | similarityFactors | |
Definition at line 22 of file indexcolorpalette.h.
| IndexColorPalette::IndexColorPalette | ( | ) |
Definition at line 33 of file indexcolorpalette.cpp.
References similarityFactors.
Definition at line 45 of file indexcolorpalette.cpp.
References m_colors, numColors(), and similarity().
| QPair< int, int > IndexColorPalette::getNeighbours | ( | int | mainClr | ) | const |
Definition at line 71 of file indexcolorpalette.cpp.
References L, m_colors, numColors(), and similarity().
Definition at line 142 of file indexcolorpalette.cpp.
References KoColor::convertTo(), KoColor::data(), insertColor(), and KoColorSpaceRegistry::instance().
Definition at line 137 of file indexcolorpalette.cpp.
References m_colors.
| void IndexColorPalette::insertColor | ( | QColor | clr | ) |
Definition at line 149 of file indexcolorpalette.cpp.
References KoColor::convertTo(), KoColor::data(), KoColor::fromQColor(), insertColor(), and KoColorSpaceRegistry::instance().
Definition at line 115 of file indexcolorpalette.cpp.
References KoColor::convertTo(), KoColor::data(), insertShades(), and KoColorSpaceRegistry::instance().
Definition at line 100 of file indexcolorpalette.cpp.
References LabColor::a, LabColor::b, insertColor(), and LabColor::L.
| void IndexColorPalette::insertShades | ( | QColor | clrA, |
| QColor | clrB, | ||
| int | shades ) |
Definition at line 124 of file indexcolorpalette.cpp.
References KoColor::convertTo(), KoColor::data(), KoColor::fromQColor(), insertShades(), and KoColorSpaceRegistry::instance().
| void IndexColorPalette::mergeMostRedundantColors | ( | ) |
Definition at line 168 of file indexcolorpalette.cpp.
References getNeighbours(), insertShades(), m_colors, numColors(), and similarity().
| int IndexColorPalette::numColors | ( | ) | const |
Definition at line 40 of file indexcolorpalette.cpp.
References m_colors.
Definition at line 17 of file indexcolorpalette.cpp.
References LabColor::a, LabColor::b, LabColor::L, and similarityFactors.
| float IndexColorPalette::a |
Definition at line 29 of file indexcolorpalette.h.
| float IndexColorPalette::b |
Definition at line 30 of file indexcolorpalette.h.
| float IndexColorPalette::L |
Definition at line 28 of file indexcolorpalette.h.
Definition at line 24 of file indexcolorpalette.h.
| struct { ... } IndexColorPalette::similarityFactors |