QwtSaturat...ueColorMap(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… 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 hue
  • int saturation1() const β€” first saturation, get it
  • int saturation2() const β€” second saturation, get it again
  • int value1() const β€” first value
  • int value2() const β€” second value
  • int alpha() const β€” the alpha, she's back
  • virtual 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, slay
  • virtual ~QwtColorMap() β€” Destructor, again, bye
  • void setFormat(Format) β€” sets the format
  • virtual 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 a QColor
  • virtual QVector< QRgb > colorTable(int numColors) const β€” the color table, numColors of them
  • virtual 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