QwtColorMap(3)
π NAME π
QwtColorMap β and that is genuinely the whole line, bestie. It's just QwtColorMap - with absolutely nothing after the dash. The description left us on read π but don't stress, everything you need is right below.
β¨ SYNOPSIS β¨
#include <qwt_color_map.h>
Inherited by QwtAlphaColorMap, and QwtLinearColorMap.
πΈ Public Types πΈ
enum Format { RGB, Indexed }
πΈ Public Member Functions πΈ
QwtColorMap (Format=QwtColorMap::RGB)
virtual ~QwtColorMap ()
QColor color (const QwtDoubleInterval &, double value) const
virtual unsigned char colorIndex (const QwtDoubleInterval &interval,
double value) const =0
virtual QVector< QRgb > colorTable (const QwtDoubleInterval &) const
virtual QwtColorMap * copy () const =0
Format format () const
virtual QRgb rgb (const QwtDoubleInterval &interval, double value) const
=0
π Detailed Description π
QwtColorMap is the girl whose entire job is mapping values into colors. That's it, that's the gig. π
So when you're displaying 3D data on a 2D plane, that third dimension is often displayed using colors β like, f.e in a spectrogram. The depth is giving hue, periodt.
Each color map is optimized to return colors for only one of the following image formats, so pick your lane:
QImage::Format_Indexed8QImage::Format_ARGB32
See also: QwtPlotSpectrogram, QwtScaleWidget
π Member Enumeration Documentation π
enum QwtColorMap::Format
RGBβ the map is intended to map intoQRgbvalues. β¨Indexedβ the map is intended to map into 8 bit values, that are indices into the color table. π
See also: rgb(), colorIndex(), colorTable()
π§ Member Function Documentation π§
QColor QwtColorMap::color (const QwtDoubleInterval &interval, doublevalue) const [inline]
π«Ά quick heads up: the page really does print that parameter glued together as doublevalue, no space. Not me editing it, I'm just the messenger π
Maps a value into a color. Cute, simple, iconic.
Parameters:
- interval β valid interval for values
- value β value
Returns: the color corresponding to value
β οΈ Warning: this method is slow forIndexedcolor maps. If it is necessary to map many values, it's better to get the color table once and then find the color usingcolorIndex(). No cap β do the lookup once, don't do it in a loop, bestie π
virtual unsigned char QwtColorMap::colorIndex (const QwtDoubleInterval &interval, doublevalue) const [pure virtual]
Maps a value of a given interval into a color index.
Parameters:
- interval β range for the values
- value β value
Returns: the color index corresponding to value
Implemented in QwtLinearColorMap.
QwtColorTable QwtColorMap::colorTable (const QwtDoubleInterval &interval) const [virtual]
Builds and returns a color map of 256 colors. π¨
The color table is needed for rendering indexed images in combination with using colorIndex().
Parameters:
- interval β range for the values
Returns: a color table that can be used for a QImage
π and yes, the synopsis up top says this returnsQVector< QRgb >while this line saysQwtColorTable. That's literally what the page says. I'm not touching it, I'm just reporting the tea π
QwtColorMap::Format QwtColorMap::format () const [inline]
Returns: the intended format of the color map
See also: Format
virtual QRgb QwtColorMap::rgb (const QwtDoubleInterval &interval, doublevalue) const [pure virtual]
Maps a value of a given interval into a rgb value. π
Parameters:
- interval β range for the values
- value β value
Returns: the rgb value corresponding to value
Implemented in QwtAlphaColorMap, and QwtLinearColorMap.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Like, it wrote itself. Main character energy fr fr β¨
okay that's the whole page, bestie, you ate that π this was QwtColorMap(3) from the Qwt User's Guide, Version 5.2.3, dated Tue Nov 20 2012. Obsessed with her, honestly. go map some values, you've got this π¦π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms