QwtAlphaColorMap (3) - Linux Manuals
NAME
QwtAlphaColorMap -
QwtAlphaColorMap varies the alpha value of a color.
SYNOPSIS
#include <qwt_color_map.h>
Public Member Functions
QwtAlphaColorMap (const QColor &=QColor(Qt::gray))
virtual ~QwtAlphaColorMap ()
Destructor.
void setColor (const QColor &)
QColor color () const
virtual QRgb rgb (const QwtInterval &, double value) const
Map a value of a given interval into a alpha value.
Additional Inherited Members
Detailed Description
QwtAlphaColorMap varies the alpha value of a color.
Constructor & Destructor Documentation
QwtAlphaColorMap::QwtAlphaColorMap (const QColor &color = QColor( Qt::gray ))
ConstructorParameters:
- color Color of the map
Member Function Documentation
QColor QwtAlphaColorMap::color () const
Returns:
- the color
See Also:
- setColor()
QRgb QwtAlphaColorMap::rgb (const QwtInterval &interval, doublevalue) const [virtual]
Map a value of a given interval into a alpha value. alpha := (value - interval.minValue()) / interval.width();
Parameters:
-
interval Range for all values
value Value to map into a RGB value
Returns:
- RGB value, with an alpha value
void QwtAlphaColorMap::setColor (const QColor &color)
Set the colorParameters:
- color Color
See Also:
- color()
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.