#include <ColorMapEditor.h>
It uses a QTableWidget to display the values in one column and their corresponding colors in a second column. A click on a table color pops-up a QColorDialog allowing to customize it.
Public Member Functions | |
| QwtLinearColorMap | colorMap () |
| Returns the customized color map. | |
| ColorMapEditor (const QLocale &locale=QLocale::system(), int precision=6, QWidget *parent=0) | |
| Constructor. | |
| void | setColorMap (const QwtLinearColorMap &map) |
| Use this function to initialize the color map to be edited. | |
| void | setRange (double min, double max) |
| Use this function to initialize the values range. | |
Static Public Member Functions | |
| static QString | saveToXmlString (const QwtLinearColorMap &color_map) |
| Exports the map to a pseudo-XML string. | |
Protected Slots | |
| void | deleteLevel () |
| void | enableButtons (int row) |
| bool | eventFilter (QObject *object, QEvent *e) |
| void | insertLevel () |
| void | setScaledColors (bool scale=true) |
| void | showColorDialog (int row, int col) |
| void | spinBoxActivated (DoubleSpinBox *) |
| void | updateColorMap () |
Private Attributes | |
| QwtLinearColorMap | color_map |
| Color map object. | |
| QLocale | d_locale |
| Locale settings used to display level values. | |
| int | d_precision |
| Precision used to display level values. | |
| QPushButton * | deleteBtn |
| QPushButton * | insertBtn |
| double | max_val |
| double | min_val |
| Levels range. | |
| QCheckBox * | scaleColorsBox |
| QTableWidget * | table |
| Table displaying the values ranges in the first column and their corresponding colors in the second column. | |
|
||||||||||||||||
|
Constructor.
|
|
|
Returns the customized color map.
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Exports the map to a pseudo-XML string.
|
|
|
Use this function to initialize the color map to be edited.
|
|
||||||||||||
|
Use this function to initialize the values range.
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Color map object.
|
|
|
Locale settings used to display level values.
|
|
|
Precision used to display level values.
|
|
|
|
|
|
|
|
|
|
|
|
Levels range.
|
|
|
|
|
|
Table displaying the values ranges in the first column and their corresponding colors in the second column.
|
1.4.6