SYNOPSIS

#include <qwt_color_map.h>

Inherits QwtColorMap.

Public Member Functions

QwtAlphaColorMap (const QColor &=QColor(Qt::gray))

QwtAlphaColorMap (const QwtAlphaColorMap &)

virtual ~QwtAlphaColorMap ()

QColor color () const

virtual QwtColorMap * copy () const

QwtAlphaColorMap & operator= (const QwtAlphaColorMap &)

virtual QRgb rgb (const QwtDoubleInterval &, double value) const

void setColor (const QColor &)

Additional Inherited Members

Detailed Description

QwtAlphaColorMap variies the alpha value of a color.

Constructor & Destructor Documentation

QwtAlphaColorMap::QwtAlphaColorMap (const QColor &color = \fCQColor(Qt::gray)\fP)

Constructor

Parameters:

color Color of the map

QwtAlphaColorMap::QwtAlphaColorMap (const \fBQwtAlphaColorMap\fP &other)

Copy constructor

Parameters:

other Other color map

Member Function Documentation

QColor QwtAlphaColorMap::color () const

Returns:

the color

See also:

setColor()

\fBQwtAlphaColorMap\fP & QwtAlphaColorMap::operator= (const \fBQwtAlphaColorMap\fP &other)

Assignment operator

Parameters:

other Other color map

Returns:

*this

QRgb QwtAlphaColorMap::rgb (const \fBQwtDoubleInterval\fP &interval, doublevalue) const\fC [virtual]\fP

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

Implements QwtColorMap.

void QwtAlphaColorMap::setColor (const QColor &color)

Set the color

Parameters:

color Color

See also:

color()

Author

Generated automatically by Doxygen for Qwt User's Guide from the source code.