QwtColorMap 用于将数值映射为颜色。
更多...
#include <qwt_color_map.h>
◆ Format
Format for color mapping
- 参见
- rgb(), colorIndex(), colorTable()
| 枚举值 |
|---|
| RGB | The map is intended to map into RGB values.
|
| Indexed | Map values into 8 bit values, that are used as indexes into the color table.
Indexed color maps are used to generate QImage::Format_Indexed8 images. The calculation of the color index is usually faster and the resulting image has a lower memory footprint.
- 参见
- colorIndex(), colorTable()
|
◆ QwtColorMap()
◆ colorIndex()
| uint QwtColorMap::colorIndex |
( |
int |
numColors, |
|
|
const QwtInterval & |
interval, |
|
|
double |
value |
|
) |
| const |
|
virtual |
◆ colorTable()
| QVector< QRgb > QwtColorMap::colorTable |
( |
int |
numColors | ) |
const |
|
virtual |
◆ colorTable256()
| QVector< QRgb > QwtColorMap::colorTable256 |
( |
| ) |
const |
|
virtual |
◆ rgb()
| virtual QRgb QwtColorMap::rgb |
( |
const QwtInterval & |
interval, |
|
|
double |
value |
|
) |
| const |
|
pure virtual |
◆ setFormat()
| void QwtColorMap::setFormat |
( |
Format |
format | ) |
|
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_color_map.h
- /home/runner/work/QWT/QWT/src/plot/qwt_color_map.cpp