QwtAlphaColorMap Class Reference

Inheritance diagram for QwtAlphaColorMap:

Inheritance graph
Collaboration diagram for QwtAlphaColorMap:

Collaboration graph
List of all members.

Detailed Description

QwtAlphaColorMap variies the alpha value of a color.

Definition at line 160 of file qwt_color_map.h.

Public Member Functions

 QwtAlphaColorMap (const QColor &=QColor(Qt::gray))
 QwtAlphaColorMap (const QwtAlphaColorMap &)
virtual ~QwtAlphaColorMap ()
QwtAlphaColorMapoperator= (const QwtAlphaColorMap &)
virtual QwtColorMapcopy () const
void setColor (const QColor &)
QColor color () const
virtual QRgb rgb (const QwtDoubleInterval &, double value) const

Constructor & Destructor Documentation

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


color Color of the map

Definition at line 402 of file qwt_color_map.cpp.

Referenced by copy().

QwtAlphaColorMap::QwtAlphaColorMap const QwtAlphaColorMap other  ) 

Copy constructor

other Other color map

Definition at line 414 of file qwt_color_map.cpp.

QwtAlphaColorMap::~QwtAlphaColorMap  )  [virtual]


Definition at line 422 of file qwt_color_map.cpp.

Member Function Documentation

QColor QwtAlphaColorMap::color  )  const

the color
See also:

Definition at line 465 of file qwt_color_map.cpp.

QwtColorMap * QwtAlphaColorMap::copy  )  const [virtual]

Clone the color map.

Implements QwtColorMap.

Definition at line 441 of file qwt_color_map.cpp.

References QwtAlphaColorMap().

QwtAlphaColorMap & QwtAlphaColorMap::operator= const QwtAlphaColorMap other  ) 

Assignment operator

other Other color map

Definition at line 432 of file qwt_color_map.cpp.

References d_data.

QRgb QwtAlphaColorMap::rgb const QwtDoubleInterval interval,
double  value
const [virtual]

Map a value of a given interval into a alpha value.

alpha := (value - interval.minValue()) / interval.width();

interval Range for all values
value Value to map into a rgb value
rgb value, with an alpha value

Implements QwtColorMap.

Definition at line 479 of file qwt_color_map.cpp.

References QwtDoubleInterval::isValid(), QwtDoubleInterval::minValue(), and QwtDoubleInterval::width().

void QwtAlphaColorMap::setColor const QColor &  color  ) 

Set the color

color Color
See also:

Definition at line 455 of file qwt_color_map.cpp.

Generated on Mon Feb 26 21:22:54 2007 for Qwt User's Guide by  doxygen 1.4.6