- experimental 6.2.0-1
QwtSaturationValueColorMap(3) | Qwt User's Guide | QwtSaturationValueColorMap(3) |
NAME¶
QwtSaturationValueColorMap - QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
SYNOPSIS¶
#include <qwt_color_map.h>
Inherits QwtColorMap.
Public Member Functions¶
QwtSaturationValueColorMap ()
Constructor. virtual ~QwtSaturationValueColorMap ()
Destructor. void setHue (int hue)
Set the the hue coordinate. void setSaturationInterval (int sat1, int
sat2)
Set the interval for the saturation coordinate. void setValueInterval
(int value1, int value2)
Set the interval for the value coordinate. void setAlpha (int
alpha)
Set the the alpha coordinate. int hue () const
int saturation1 () const
int saturation2 () const
int value1 () const
int value2 () const
int alpha () const
virtual QRgb rgb (const QwtInterval &, double value)
const override
Additional Inherited Members¶
Detailed Description¶
QwtSaturationValueColorMap varies the saturation and/or value for a given hue in the HSV color model.
Value and saturation are in the range of 0 to 255 while hue is in the range of 0 to 259.
See also
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.
See also
Definition at line 972 of file qwt_color_map.cpp.
Member Function Documentation¶
int QwtSaturationValueColorMap::alpha () const¶
Returns
See also
Definition at line 1127 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::hue () const¶
Returns
See also
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
Parameters
value Value to map into a RGB value
Returns
Implements QwtColorMap.
Definition at line 1140 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::saturation1 () const¶
Returns
See also
Definition at line 1091 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::saturation2 () const¶
Returns
See also
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.
Parameters
See also
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..
Parameters
See also
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
saturation1/saturation2 need to be in the range 0 to 255.
Parameters
saturation2 Second saturation
See also
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.
value1/value2 need to be in the range 0 to 255.
Parameters
value2 Second value
See also
Definition at line 1043 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::value1 () const¶
Returns
See also
Definition at line 1109 of file qwt_color_map.cpp.
int QwtSaturationValueColorMap::value2 () const¶
Returns
See also
Definition at line 1118 of file qwt_color_map.cpp.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Sun Jul 18 2021 | Version 6.2.0 |