QwtHueColorMap varies the hue value of the HSV color model. More...
#include <qwt_color_map.h>
Classes | |
class | PrivateData |
Public Member Functions | |
int | alpha () const |
int | hue1 () const |
int | hue2 () const |
QwtHueColorMap (QwtColorMap::Format=QwtColorMap::RGB) | |
Constructor. | |
virtual QRgb | rgb (const QwtInterval &, double value) const |
int | saturation () const |
void | setAlpha (int alpha) |
Set the the alpha coordinate. | |
void | setHueInterval (int hue1, int hue2) |
void | setSaturation (int saturation) |
Set the the saturation coordinate. | |
void | setValue (int value) |
Set the the value coordinate. | |
int | value () const |
virtual | ~QwtHueColorMap () |
Destructor. | |
Private Attributes | |
PrivateData * | d_data |
QwtHueColorMap varies the hue value of the HSV color model.
QwtHueColorMap can be used to set up a color map easily, that runs cyclic over all colors. Each cycle has 360 different steps.
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.
Definition at line 173 of file qwt_color_map.h.
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.
format | Format of the color map |
Definition at line 768 of file qwt_color_map.cpp.
QwtHueColorMap::~QwtHueColorMap | ( | ) | [virtual] |
Destructor.
Definition at line 775 of file qwt_color_map.cpp.
int QwtHueColorMap::alpha | ( | ) | const |
int QwtHueColorMap::hue1 | ( | ) | const |
Definition at line 865 of file qwt_color_map.cpp.
int QwtHueColorMap::hue2 | ( | ) | const |
Definition at line 874 of file qwt_color_map.cpp.
QRgb QwtHueColorMap::rgb | ( | const QwtInterval & | interval, |
double | value | ||
) | const [virtual] |
Map a value of a given interval into a RGB value
interval | Range for all values |
value | Value to map into a RGB value |
Implements QwtColorMap.
Definition at line 914 of file qwt_color_map.cpp.
int QwtHueColorMap::saturation | ( | ) | const |
Definition at line 883 of file qwt_color_map.cpp.
void QwtHueColorMap::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.
alpha | Alpha coordinate |
Definition at line 850 of file qwt_color_map.cpp.
void QwtHueColorMap::setHueInterval | ( | int | hue1, |
int | hue2 | ||
) |
Set 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.
hue1 | First hue coordinate |
hue2 | Second hue coordinate |
Definition at line 791 of file qwt_color_map.cpp.
void QwtHueColorMap::setSaturation | ( | int | saturation | ) |
Set the the saturation coordinate.
saturation needs to be in the range 0 to 255,
saturation | Saturation coordinate |
Definition at line 809 of file qwt_color_map.cpp.
void QwtHueColorMap::setValue | ( | int | value | ) |
Set the the value coordinate.
value needs to be in the range 0 to 255,
value | Value coordinate |
Definition at line 829 of file qwt_color_map.cpp.
int QwtHueColorMap::value | ( | ) | const |
PrivateData* QwtHueColorMap::d_data [private] |
Definition at line 193 of file qwt_color_map.h.