Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_color_map.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_color_map.h
r4271 r8127 41 41 enum Format 42 42 { 43 //! The map is intended to map into QRgbvalues.43 //! The map is intended to map into RGB values. 44 44 RGB, 45 45 … … 57 57 58 58 /*! 59 Map a value of a given interval into a rgb value. 59 Map a value of a given interval into a RGB value. 60 60 61 \param interval Range for the values 61 62 \param value Value 62 \return rgbvalue, corresponding to value63 \return RGB value, corresponding to value 63 64 */ 64 65 virtual QRgb rgb( const QwtInterval &interval, … … 67 68 /*! 68 69 Map a value of a given interval into a color index 70 69 71 \param interval Range for the values 70 72 \param value Value … … 136 138 137 139 /*! 138 \brief QwtAlphaColorMap vari ies the alpha value of a color140 \brief QwtAlphaColorMap varies the alpha value of a color 139 141 */ 140 142 class QWT_EXPORT QwtAlphaColorMap: public QwtColorMap … … 178 180 if ( d_format == RGB ) 179 181 { 180 return QColor ( rgb( interval, value ) );182 return QColor::fromRgba( rgb( interval, value ) ); 181 183 } 182 184 else
Note:
See TracChangeset
for help on using the changeset viewer.