#include <qwt_color_map.h>
List of all members.
| 
Additional Inherited Members | 
| enum | Format { RGB,
 Indexed
 }
 | 
Detailed Description
QwtAlphaColorMap variies the alpha value of a color. 
Constructor & Destructor Documentation
      
        
          | QwtAlphaColorMap::QwtAlphaColorMap | ( | const QColor & | color = QColor(Qt::gray) | ) |  | 
      
 
 
Copy constructor 
- Parameters:
- 
  
  
 
 
Member Function Documentation
      
        
          | QColor QwtAlphaColorMap::color | ( |  | ) | const | 
      
 
 
Assignment operator 
- Parameters:
- 
  
  
- Returns:
- *this 
 
 
  
  | 
        
          | 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();
- 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:
- 
  
  
- See also:
- color()