.TH "QwtAlphaColorMap" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtAlphaColorMap \- .PP \fBQwtAlphaColorMap\fP variies the alpha value of a color. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtColorMap\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBFormat\fP { \fBRGB\fP, \fBIndexed\fP }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "QColor \fBcolor\fP () const " .br .ti -1c .RI "QColor \fBcolor\fP (const \fBQwtDoubleInterval\fP &, double value) const " .br .ti -1c .RI "virtual QVector< QRgb > \fBcolorTable\fP (const \fBQwtDoubleInterval\fP &) const " .br .ti -1c .RI "virtual \fBQwtColorMap\fP * \fBcopy\fP () const " .br .ti -1c .RI "\fBFormat\fP \fBformat\fP () const " .br .ti -1c .RI "\fBQwtAlphaColorMap\fP & \fBoperator=\fP (const \fBQwtAlphaColorMap\fP &)" .br .ti -1c .RI "\fBQwtAlphaColorMap\fP (const QColor &=QColor(Qt::gray))" .br .ti -1c .RI "\fBQwtAlphaColorMap\fP (const \fBQwtAlphaColorMap\fP &)" .br .ti -1c .RI "virtual QRgb \fBrgb\fP (const \fBQwtDoubleInterval\fP &, double value) const " .br .ti -1c .RI "void \fBsetColor\fP (const QColor &)" .br .ti -1c .RI "virtual \fB~QwtAlphaColorMap\fP ()" .br .in -1c .SH "Detailed Description" .PP \fBQwtAlphaColorMap\fP variies the alpha value of a color. .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtColorMap::Format\fP\fC [inherited]\fP".IP "\(bu" 2 RGB .br The map is intended to map into QRgb values. .IP "\(bu" 2 Indexed .br The map is intended to map into 8 bit values, that are indices into the color table. .PP .PP \fBSee also:\fP .RS 4 \fBrgb()\fP, \fBcolorIndex()\fP, \fBcolorTable()\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtAlphaColorMap::QwtAlphaColorMap (const QColor &color = \fCQColor(Qt::gray)\fP)"Constructor .PP \fBParameters:\fP .RS 4 \fIcolor\fP Color of the map .RE .PP .SS "QwtAlphaColorMap::QwtAlphaColorMap (const \fBQwtAlphaColorMap\fP &other)"Copy constructor .PP \fBParameters:\fP .RS 4 \fIother\fP Other color map .RE .PP .SS "QwtAlphaColorMap::~QwtAlphaColorMap ()\fC [virtual]\fP" .PP Destructor. .SH "Member Function Documentation" .PP .SS "QColor QwtAlphaColorMap::color () const"\fBReturns:\fP .RS 4 the color .RE .PP \fBSee also:\fP .RS 4 \fBsetColor()\fP .RE .PP .SS "QColor QwtColorMap::color (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [inline, inherited]\fP"Map a value into a color .PP \fBParameters:\fP .RS 4 \fIinterval\fP Valid interval for values .br \fIvalue\fP Value .RE .PP \fBReturns:\fP .RS 4 Color corresponding to value .RE .PP \fBWarning:\fP .RS 4 This method is slow for Indexed color maps. If it is necessary to map many values, its better to get the color table once and find the color using \fBcolorIndex()\fP. .RE .PP .SS "QwtColorTable QwtColorMap::colorTable (const \fBQwtDoubleInterval\fP &interval) const\fC [virtual, inherited]\fP"Build and return a color map of 256 colors .PP The color table is needed for rendering indexed images in combination with using \fBcolorIndex()\fP. .PP \fBParameters:\fP .RS 4 \fIinterval\fP Range for the values .RE .PP \fBReturns:\fP .RS 4 A color table, that can be used for a QImage .RE .PP .SS "\fBQwtColorMap\fP * QwtAlphaColorMap::copy () const\fC [virtual]\fP" .PP Clone the color map. .PP Implements \fBQwtColorMap\fP. .SS "\fBQwtColorMap::Format\fP QwtColorMap::format () const\fC [inline, inherited]\fP"\fBReturns:\fP .RS 4 Intended format of the color map .RE .PP \fBSee also:\fP .RS 4 \fBFormat\fP .RE .PP .SS "\fBQwtAlphaColorMap\fP & QwtAlphaColorMap::operator= (const \fBQwtAlphaColorMap\fP &other)"Assignment operator .PP \fBParameters:\fP .RS 4 \fIother\fP Other color map .RE .PP \fBReturns:\fP .RS 4 *this .RE .PP .SS "QRgb QwtAlphaColorMap::rgb (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [virtual]\fP" .PP Map a value of a given interval into a alpha value. alpha := (value - interval.minValue()) / interval.width(); .PP \fBParameters:\fP .RS 4 \fIinterval\fP Range for all values .br \fIvalue\fP Value to map into a rgb value .RE .PP \fBReturns:\fP .RS 4 rgb value, with an alpha value .RE .PP .PP Implements \fBQwtColorMap\fP. .SS "void QwtAlphaColorMap::setColor (const QColor &color)"Set the color .PP \fBParameters:\fP .RS 4 \fIcolor\fP Color .RE .PP \fBSee also:\fP .RS 4 \fBcolor()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.