QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
QwtHueColorMap Class Reference

QwtHueColorMap varies the hue value of the HSV color model. More...

#include <qwt_color_map.h>

Inheritance diagram for QwtHueColorMap:
QwtColorMap

Classes

class  PrivateData
 

Public Member Functions

 QwtHueColorMap (QwtColorMap::Format=QwtColorMap::RGB)
 Constructor.
 
virtual ~QwtHueColorMap ()
 Destructor.
 
void setHueInterval (int hue1, int hue2)
 Set the interval for the hue coordinate.
 
void setSaturation (int saturation)
 Set the saturation coordinate.
 
void setValue (int value)
 Set the value coordinate.
 
void setAlpha (int alpha)
 Set the alpha coordinate.
 
int hue1 () const
 Return first hue coordinate.
 
int hue2 () const
 Return second hue coordinate.
 
int saturation () const
 Return saturation coordinate.
 
int value () const
 Return value coordinate.
 
int alpha () const
 Return alpha coordinate.
 
virtual QRgb rgb (const QwtInterval &, double value) const override
 Map a value of a given interval into a RGB value.
 
- Public Member Functions inherited from QwtColorMap
 QwtColorMap (Format=QwtColorMap::RGB)
 Constructor.
 
virtual ~QwtColorMap ()
 Destructor.
 
void setFormat (Format)
 Set the format of the color map.
 
Format format () const
 
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
 
virtual QVector< QRgb > colorTable (int numColors) const
 Build and return a color map of arbitrary number of colors.
 
virtual QVector< QRgb > colorTable256 () const
 Build and return a color map of 256 colors.
 

Additional Inherited Members

- Public Types inherited from QwtColorMap
enum  Format { RGB , Indexed }
 Format for color mapping. More...
 

Detailed Description

QwtHueColorMap varies the hue value of the HSV color model.

Constructor & Destructor Documentation

◆ QwtHueColorMap()

QwtHueColorMap::QwtHueColorMap ( QwtColorMap::Format  format = QwtColorMap::RGB)
explicit

Constructor.

Member Function Documentation

◆ alpha()

int QwtHueColorMap::alpha ( ) const

Return alpha coordinate.

◆ hue1()

int QwtHueColorMap::hue1 ( ) const

Return first hue coordinate.

◆ hue2()

int QwtHueColorMap::hue2 ( ) const

Return second hue coordinate.

◆ rgb()

QRgb QwtHueColorMap::rgb ( const QwtInterval interval,
double  value 
) const
overridevirtual

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

Implements QwtColorMap.

◆ saturation()

int QwtHueColorMap::saturation ( ) const

Return saturation coordinate.

◆ setAlpha()

void QwtHueColorMap::setAlpha ( int  alpha)

Set the alpha coordinate.

◆ setHueInterval()

void QwtHueColorMap::setHueInterval ( int  hue1,
int  hue2 
)

Set the interval for the hue coordinate.

◆ setSaturation()

void QwtHueColorMap::setSaturation ( int  saturation)

Set the saturation coordinate.

◆ setValue()

void QwtHueColorMap::setValue ( int  value)

Set the value coordinate.

◆ value()

int QwtHueColorMap::value ( ) const

Return value coordinate.


The documentation for this class was generated from the following files: