Classes | Public Member Functions | Private Attributes
QwtAlphaColorMap Class Reference

QwtAlphaColorMap varies the alpha value of a color. More...

#include <qwt_color_map.h>

Inheritance diagram for QwtAlphaColorMap:
Inheritance graph
[legend]

List of all members.

Classes

class  PrivateData

Public Member Functions

int alpha1 () const
int alpha2 () const
QColor color () const
 QwtAlphaColorMap (const QColor &=QColor(Qt::gray))
 Constructor.
virtual QRgb rgb (const QwtInterval &, double value) const
 Map a value of a given interval into a alpha value.
void setAlphaInterval (int alpha1, int alpha2)
void setColor (const QColor &)
virtual ~QwtAlphaColorMap ()
 Destructor.

Private Attributes

PrivateDatad_data

Detailed Description

QwtAlphaColorMap varies the alpha value of a color.

Definition at line 141 of file qwt_color_map.h.


Constructor & Destructor Documentation

QwtAlphaColorMap::QwtAlphaColorMap ( const QColor &  color = QColor( Qt::gray )) [explicit]

Constructor.

The alpha interval is initialized by 0 to 255.

Parameters:
colorColor of the map
See also:
setColor(), setAlphaInterval()

Definition at line 584 of file qwt_color_map.cpp.

Destructor.

Definition at line 592 of file qwt_color_map.cpp.


Member Function Documentation

int QwtAlphaColorMap::alpha1 ( ) const
Returns:
First alpha coordinate
See also:
setAlphaInterval()

Definition at line 645 of file qwt_color_map.cpp.

int QwtAlphaColorMap::alpha2 ( ) const
Returns:
Second alpha coordinate
See also:
setAlphaInterval()

Definition at line 654 of file qwt_color_map.cpp.

QColor QwtAlphaColorMap::color ( ) const
Returns:
the color
See also:
setColor()

Definition at line 616 of file qwt_color_map.cpp.

QRgb QwtAlphaColorMap::rgb ( const QwtInterval interval,
double  value 
) const [virtual]

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

Parameters:
intervalRange for all values
valueValue to map into a RGB value
Returns:
RGB value, with an alpha value

Implements QwtColorMap.

Definition at line 667 of file qwt_color_map.cpp.

void QwtAlphaColorMap::setAlphaInterval ( int  alpha1,
int  alpha2 
)

Set the interval for the alpha coordinate

alpha1/alpha2 need to be in the range 0 to 255, where 255 means opaque and 0 means transparent.

Parameters:
alpha1First alpha coordinate
alpha2Second alpha coordinate
See also:
alpha1(), alpha2()

Definition at line 632 of file qwt_color_map.cpp.

void QwtAlphaColorMap::setColor ( const QColor &  color)

Set the color

Parameters:
colorColor
See also:
color()

Definition at line 603 of file qwt_color_map.cpp.


Member Data Documentation

Definition at line 158 of file qwt_color_map.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:57