QwtAlphaColorMap(3)

πŸ’– NAME πŸ’–

Okay bestie, welcome to QwtAlphaColorMap(3) from the Library Functions Manual β€” this is the page for QwtAlphaColorMap, and the whole serve is: QwtAlphaColorMap varies the alpha value of a color. No cap, that's the vibe. πŸ’…

✨ SYNOPSIS ✨

The entry ritual, exactly as printed:

#include <qwt_color_map.h>

Inherits QwtColorMap.

🌟 Public Member Functions (main-character lineup) 🌟

  • QwtAlphaColorMap (const QColor &=QColor(Qt::gray)) β€” Constructor.
  • virtual ~QwtAlphaColorMap () β€” Destructor.
  • void setAlphaInterval (int alpha1, int alpha2) β€” the alpha interval setter, listed right here.
  • int alpha1 () const β€” alpha coordinate number one getter.
  • int alpha2 () const β€” alpha coordinate number two getter.
  • void setColor (const QColor &) β€” the color setter.
  • QColor color () const β€” the color getter.
  • virtual QRgb rgb (const QwtInterval &, double value) const override β€” Map a value of a given interval into a alpha value.

🌈 Public Member Functions inherited from QwtColorMap 🌈

  • QwtColorMap (Format=QwtColorMap::RGB) β€” Constructor.
  • virtual ~QwtColorMap () β€” Destructor.
  • void setFormat (Format) β€” format setter, listed as-is.
  • 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) const β€” color lookup, listed as-is.
  • virtual QVector< QRgb > colorTable (int numColors) const β€” color table, listed as-is.
  • virtual QVector< QRgb > colorTable256 () const β€” the 256-entry color table, listed as-is.

🫢 Additional Inherited Members 🫢

πŸ’œ Public Types inherited from QwtColorMap πŸ’œ

  • enum Format { RGB, Indexed }

πŸŽ€ Public Attributes inherited from QwtColorMap πŸŽ€

  • Format const

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

So like, QwtAlphaColorMap varies the alpha value of a color. That's the whole aesthetic. Definition at line 147 of file qwt_color_map.h.

πŸŽ€ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πŸŽ€

πŸ’– QwtAlphaColorMap::QwtAlphaColorMap (const QColor & color = QColor( Qt::gray )) [explicit] πŸ’–

Constructor. The alpha interval is initialized by 0 to 255.

  • Parameters:
    • color β€” Color of the map
  • See also: setColor(), setAlphaInterval()

Definition at line 539 of file qwt_color_map.cpp.

🫢 QwtAlphaColorMap::~QwtAlphaColorMap () [virtual] 🫢

Destructor.

Definition at line 547 of file qwt_color_map.cpp.

πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

⭐ int QwtAlphaColorMap::alpha1 () const ⭐

  • Returns: First alpha coordinate
  • See also: setAlphaInterval()

Definition at line 600 of file qwt_color_map.cpp.

⭐ int QwtAlphaColorMap::alpha2 () const ⭐

  • Returns: Second alpha coordinate
  • See also: setAlphaInterval()

Definition at line 609 of file qwt_color_map.cpp.

🎨 QColor QwtAlphaColorMap::color () const 🎨

  • Returns: the color
  • See also: setColor()

Definition at line 571 of file qwt_color_map.cpp.

πŸ”₯ QRgb QwtAlphaColorMap::rgb (const QwtInterval & interval, double value) const [override], [virtual] πŸ”₯

Map a value of a given interval into a alpha value.

  • Parameters:
    • interval β€” Range for all values
    • value β€” Value to map into a RGB value
  • Returns: RGB value, with an alpha value
  • Implements: QwtColorMap.

Definition at line 622 of file qwt_color_map.cpp.

πŸ’œ void QwtAlphaColorMap::setAlphaInterval (int alpha1, int alpha2) πŸ’œ

Set the interval for the alpha coordinate.

alpha1/alpha2 need to be in the range 0 to 255, where 255 means opaque and 0 means transparent.

πŸ’€ bestie, that range is not a suggestion β€” alpha1/alpha2 need to be in the range 0 to 255, where 255 means opaque and 0 means transparent. Periodt.
  • Parameters:
    • alpha1 β€” First alpha coordinate
    • alpha2 β€” Second alpha coordinate
  • See also: alpha1(), alpha2()

Definition at line 587 of file qwt_color_map.cpp.

🌸 void QwtAlphaColorMap::setColor (const QColor & color) 🌸

Set the color.

  • Parameters:
    • color β€” Color
  • See also: color()

Definition at line 558 of file qwt_color_map.cpp.

🌸 AUTHOR 🌸

Generated automatically by Doxygen for Qwt User's Guide from the source code.


πŸ’– xoxo, your Qwt User's Guide bestie β€” footer check: source/version is Qwt User's Guide, the page is QwtAlphaColorMap(3), and the date slot is literally not printed here, so that's the whole tea 🫢✨

πŸ“¦ where this page comes from