QwtSaturat...ueColorMap(3)
π QwtSaturationValueColorMap β like, the whole page, bestie
okay so real quick: this is page QwtSaturat...ueColorMap(3) from the Library Functions Manual, and it's all about the iconic QwtSaturationValueColorMap class. buckle up, we're going in π
β¨ NAME β¨
QwtSaturationValueColorMap β bestie, this class varies the saturation and/or the value for a given hue in the HSV color model. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <qwt_color_map.h>
it Inherits QwtColorMap, periodt. π
π Public Member Functions
QwtSaturationValueColorMap()β the Constructor, aka where it all begins β¨virtual ~QwtSaturationValueColorMap()β the Destructor, we say bye πvoid setHue(int hue)β sets the the hue coordinate (yes, "the the," the original said it, we love a legend π)void setSaturationInterval(int sat1, int sat2)β sets the interval for the saturation coordinate π¨void setValueInterval(int value1, int value2)β sets the interval for the value coordinate βvoid setAlpha(int alpha)β sets the the alpha coordinate, transparency era π«Άint hue() constβ reads back the hueint saturation1() constβ first saturation, get itint saturation2() constβ second saturation, get it againint value1() constβ first valueint value2() constβ second valueint alpha() constβ the alpha, she's backvirtual QRgb rgb(const QwtInterval &, double value) const overrideβ the main character function, maps ur stuff to an RGB π
π¦ Public Member Functions inherited from QwtColorMap
QwtColorMap(Format=QwtColorMap::RGB)β constructor with a default, slayvirtual ~QwtColorMap()β Destructor, again, byevoid setFormat(Format)β sets the formatvirtual uint colorIndex(int numColors, const QwtInterval &interval, double value) constβ maps a value of a given interval into a color index π’QColor color(const QwtInterval &, double value) constβ gives u aQColorvirtual QVector< QRgb > colorTable(int numColors) constβ the color table,numColorsof themvirtual QVector< QRgb > colorTable256() constβ the color table, but make it 256 β¨
π§ Additional Inherited Members
Public Types inherited from QwtColorMap:
enum Format { RGB, Indexed }β two formats, that's the whole menu π
Public Attributes inherited from QwtColorMap:
Format constβ a const Format attribute, she's not changing for anyone
π Detailed Description π
QwtSaturationValueColorMap varies the saturation and/or the value for a given hue in the HSV color model. literally its whole job and it ate. π
Value and saturation are in the range of 0 to 255 while hue is in the range of 0 to 259. (yes, we're quoting the original here, no cap β that's what it says π«Ά)
See also: QwtHueColorMap β go look at her too, she's gorgeous πΈ
Definition at line 214 of file qwt_color_map.h.
π Constructor & Destructor Documentation π
QwtSaturationValueColorMap::QwtSaturationValueColorMap()
Constructor. The value interval is initialized by 0 to 255, saturation by 255 to 255. Hue to 0 and alpha to 255.
So the default setting interpolates the value coordinate only. that's the default vibe check, and it passed β
See also:setHueInterval(),setSaturation(),setValue(),setValue()
Definition at line 972 of file qwt_color_map.cpp.
QwtSaturationValueColorMap::~QwtSaturationValueColorMap() [virtual]
Destructor. she's done, she's logging off π
Definition at line 978 of file qwt_color_map.cpp.
π Member Function Documentation π
int QwtSaturationValueColorMap::alpha() const
Returns: Alpha coordinate π«Ά
See also: setAlpha()
Definition at line 1127 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::hue() const
Returns: Hue coordinate π
See also: setHue()
Definition at line 1082 of file qwt_color_map.cpp.
QRgb QwtSaturationValueColorMap::rgb(const QwtInterval & interval, double value) const [override], [virtual]
Map a value of a given interval into a RGB value. this is the glow-up function β¨
Parameters:
- interval β Range for all values
- value β Value to map into a RGB value
Returns: RGB value for value π¨
Implements QwtColorMap.
Definition at line 1140 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::saturation1() const
Returns: First saturation coordinate π
See also: setSaturationInterval()
Definition at line 1091 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::saturation2() const
Returns: Second saturation coordinate π
See also: setSaturationInterval()
Definition at line 1100 of file qwt_color_map.cpp.
void QwtSaturationValueColorMap::setAlpha(int alpha)
Set the the alpha coordinate. alpha needs to be in the range 0 to 255, where 255 means opaque and 0 means transparent. ghost mode vs. fully booked, iykyk π»
Parameters:
- alpha β Alpha coordinate
See also: alpha()
Definition at line 1067 of file qwt_color_map.cpp.
void QwtSaturationValueColorMap::setHue(int hue)
Set the the hue coordinate. Hue coordinates outside 0 to 359 will be interpreted as hue % 360.. (two dots, that's how the page says it, don't come for me π)
Parameters:
- hue β Hue coordinate
See also: hue()
Definition at line 992 of file qwt_color_map.cpp.
void QwtSaturationValueColorMap::setSaturationInterval(int saturation1, int saturation2)
Set the interval for the saturation coordinate. When saturation1 == saturation2 the map interpolates between the value coordinates only. so if they're twins, the saturation just sits there being cute and the value does all the work π
saturation1/saturation2 need to be in the range 0 to 255.
Parameters:
- saturation1 β First saturation
- saturation2 β Second saturation
See also:saturation1(),saturation2(),setValueInterval()
Definition at line 1016 of file qwt_color_map.cpp.
void QwtSaturationValueColorMap::setValueInterval(int value1, int value2)
Set the interval for the value coordinate. When value1 == value2 the map interpolates between the saturation coordinates only. same twin energy, except now saturation's the one carrying the team π§
value1/value2 need to be in the range 0 to 255.
Parameters:
- value1 β First value
- value2 β Second value
See also:value1(),value2(),setSaturationInterval()
Definition at line 1043 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::value1() const
Returns: First value coordinate β
See also: setValueInterval()
Definition at line 1109 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::value2() const
Returns: Second value coordinate β
See also: setValueInterval()
Definition at line 1118 of file qwt_color_map.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. yup, a robot wrote it, and honestly? she understood the assignment π€π
that's the whole page bestie, no skips, no cuts, every single line number accounted for π«Άβ¨ this was Qwt User's Guide, and the page was dated QwtSaturat...ueColorMap(3) β ok bye, go build something gorgeous with it π
π
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms