QwtHueColorMap(3)
π NAME π
okay so this is the QwtHueColorMap(3) page from the Library Functions Manual, and the whole NAME section is literally this: QwtHueColorMap varies the hue value of the HSV color model. That's her whole thing, bestie π
β¨ SYNOPSIS β¨
#include <qwt_color_map.h>
Inherits QwtColorMap.
π Public Member Functions π
QwtHueColorMap (QwtColorMap::Format=QwtColorMap::RGB)β Constructor.virtual ~QwtHueColorMap ()β Destructor.void setHueInterval (int hue1, int hue2)void setSaturation (int saturation)β sets the saturation coordinate.void setValue (int value)β sets the value coordinate.void setAlpha (int alpha)β sets the alpha coordinate.int hue1 () constint hue2 () constint saturation () constint value () constint alpha () constvirtual QRgb rgb (const QwtInterval &, double value) const override
π Public Member Functions inherited from QwtColorMap π
QwtColorMap (Format=QwtColorMap::RGB)virtual ~QwtColorMap ()β Destructor.void setFormat (Format)virtual uint colorIndex (int numColors, const QwtInterval &interval, double value) constβ Map a value of a given interval into a color index.QColor color (const QwtInterval &, double value) constvirtual QVector< QRgb > colorTable (int numColors) constvirtual QVector< QRgb > colorTable256 () const
π Additional Inherited Members π
- Public Types inherited from
QwtColorMap:enum Format { RGB, Indexed } - Public Attributes inherited from
QwtColorMap:Format const
π Detailed Description π
QwtHueColorMap varies the hue value of the HSV color model. That's the vibe, that's the job π
You can use QwtHueColorMap to set up a color map easily β she runs cyclic over all colors. Each cycle has 360 different steps. Iconic behavior, no cap β¨
The values for value and saturation are in the range of 0 to 255 and doesn't depend on the data value to be mapped. Yes bestie, they said "doesn't" β I'm just the messenger π
See also: QwtSaturationValueColorMap
Definition at line 180 of file qwt_color_map.h.
π§ Constructor & Destructor Documentation π§
πΈ QwtHueColorMap::QwtHueColorMap (QwtColorMap::Format format = QwtColorMap::RGB) [explicit] πΈ
Constructor. The hue interval is initialized by 0 to 359. All other coordinates are set to 255.
Parameters
- format β Format of the color map
See also: setHueInterval(), setSaturation(), setValue(), setValue() β and yes, the original page lists setValue() twice. I'm not fixing it, facts are facts π
Definition at line 723 of file qwt_color_map.cpp.
π¦ QwtHueColorMap::~QwtHueColorMap () [virtual] π¦
Destructor. She's logging off, but make it graceful π
Definition at line 730 of file qwt_color_map.cpp.
π Member Function Documentation π
β int QwtHueColorMap::alpha () const β
Returns: Alpha coordinate
See also: setAlpha()
Definition at line 856 of file qwt_color_map.cpp.
β int QwtHueColorMap::hue1 () const β
Returns: First hue coordinate
See also: setHueInterval()
Definition at line 820 of file qwt_color_map.cpp.
β int QwtHueColorMap::hue2 () const β
Returns: Second hue coordinate
See also: setHueInterval()
Definition at line 829 of file qwt_color_map.cpp.
π₯ QRgb QwtHueColorMap::rgb (const QwtInterval & interval, double value) const [override], [virtual] π₯
Map a value of a given interval into a RGB value. This is the main-character function, okay? π
Parameters
- interval β Range for all values
- value β Value to map into a RGB value
Returns: RGB value for value
Implements QwtColorMap.
Definition at line 869 of file qwt_color_map.cpp.
β int QwtHueColorMap::saturation () const β
Returns: Saturation coordinate
See also: setSaturation()
Definition at line 838 of file qwt_color_map.cpp.
π void QwtHueColorMap::setAlpha (int alpha) π
Sets the alpha coordinate. alpha needs to be in the range 0 to 255, where 255 means opaque and 0 means transparent.
Parameters
- alpha β Alpha coordinate
See also: alpha()
Definition at line 805 of file qwt_color_map.cpp.
π void QwtHueColorMap::setHueInterval (int hue1, int hue2) π
Sets the interval for the hue coordinate.
hue1/hue2 need to be positive number and can be > 360 to define cycles. F.e. 420 to 240 defines a map yellow/red/magenta/blue. Cycle queen behavior, honestly π
Parameters
- hue1 β First hue coordinate
- hue2 β Second hue coordinate
See also: hue1(), hue2()
Definition at line 746 of file qwt_color_map.cpp.
π void QwtHueColorMap::setSaturation (int saturation) π
Sets the saturation coordinate. saturation needs to be in the range 0 to 255, β yes, the original page really has that comma, bestie π
Parameters
- saturation β Saturation coordinate
See also: saturation()
Definition at line 764 of file qwt_color_map.cpp.
π void QwtHueColorMap::setValue (int value) π
Sets the value coordinate. value needs to be in the range 0 to 255, β same comma situation, we're keeping the energy π«Ά
Parameters
- value β Value coordinate
See also: value()
Definition at line 784 of file qwt_color_map.cpp.
β int QwtHueColorMap::value () const β
Returns: Value coordinate
See also: setValue()
Definition at line 847 of file qwt_color_map.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. She's a bot, but make it fashion π€π
okay bestie, that's the whole page π β source/version tea: Qwt User's Guide, manual name: QwtHueColorMap(3), and the date? The footer didn't list one, so consider this your official no-date zone π«Άβ¨
π¦ 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