QtiPlot
0.9.8.2
|
A complex widget allowing to customize a QwtLinearColorMap. More...
#include <ColorMapEditor.h>
Signals | |
void | scalingChanged () |
Public Member Functions | |
LinearColorMap | colorMap () |
Returns the customized color map. More... | |
ColorMapEditor (const QLocale &locale=QLocale::system(), int precision=6, QWidget *parent=0) | |
Constructor. More... | |
void | setColorMap (const LinearColorMap &map) |
Use this function to initialize the color map to be edited. More... | |
void | setRange (double min, double max) |
Use this function to initialize the values range. More... | |
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 () |
void | updateLowerRangeLimit (double) |
void | updateUpperRangeLimit (double) |
Private Attributes | |
LinearColorMap | color_map |
Color map object. More... | |
QLocale | d_locale |
Locale settings used to display level values. More... | |
int | d_precision |
Precision used to display level values. More... | |
QPushButton * | deleteBtn |
QPushButton * | insertBtn |
double | max_val |
double | min_val |
Levels range. More... | |
QCheckBox * | scaleColorsBox |
QTableWidget * | table |
Table displaying the values ranges in the first column and their corresponding colors in the second column. More... | |
A complex widget allowing to customize a QwtLinearColorMap.
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.
ColorMapEditor::ColorMapEditor | ( | const QLocale & | locale = QLocale::system() , |
int | precision = 6 , |
||
QWidget * | parent = 0 |
||
) |
Constructor.
parent | parent widget (only affects placement of the widget) |
References deleteBtn, deleteLevel(), insertBtn, insertLevel(), scaleColorsBox, setScaledColors(), showColorDialog(), and table.
|
inline |
Returns the customized color map.
References color_map, deleteLevel(), enableButtons(), eventFilter(), insertLevel(), min, scalingChanged(), setColorMap(), setRange(), setScaledColors(), showColorDialog(), spinBoxActivated(), updateColorMap(), updateLowerRangeLimit(), and updateUpperRangeLimit().
Referenced by PlotDialog::acceptParams(), ColorMapDialog::apply(), ConfigDialog::apply(), and Plot3DDialog::updatePlot().
|
protectedslot |
References enableButtons(), table, and updateColorMap().
Referenced by colorMap(), and ColorMapEditor().
|
protectedslot |
References deleteBtn, insertBtn, and table.
Referenced by colorMap(), deleteLevel(), insertLevel(), showColorDialog(), and spinBoxActivated().
|
protectedslot |
References showColorDialog(), and table.
Referenced by colorMap().
|
protectedslot |
References color_map, d_locale, d_precision, enableButtons(), max_val, min_val, DoubleSpinBox::setDecimals(), DoubleSpinBox::setRange(), DoubleSpinBox::setValue(), spinBoxActivated(), table, updateColorMap(), and DoubleSpinBox::value().
Referenced by colorMap(), and ColorMapEditor().
|
signal |
Referenced by colorMap(), and setScaledColors().
void ColorMapEditor::setColorMap | ( | const LinearColorMap & | map | ) |
Use this function to initialize the color map to be edited.
References color_map, d_locale, d_precision, LinearColorMap::intensityRange(), max_val, min_val, scaleColorsBox, DoubleSpinBox::setDecimals(), DoubleSpinBox::setPrefix(), DoubleSpinBox::setRange(), DoubleSpinBox::setValue(), spinBoxActivated(), table, updateColorMap(), updateLowerRangeLimit(), and updateUpperRangeLimit().
Referenced by PlotDialog::acceptParams(), colorMap(), ConfigDialog::initPlots3DPage(), PlotDialog::setActiveCurve(), ConfigDialog::setApplication(), ColorMapDialog::setMatrix(), and Plot3DDialog::setPlot().
void ColorMapEditor::setRange | ( | double | min, |
double | max | ||
) |
Use this function to initialize the values range.
References max_val, and min_val.
Referenced by colorMap(), PlotDialog::setActiveCurve(), ColorMapDialog::setMatrix(), and Plot3DDialog::setPlot().
|
protectedslot |
References color_map, and scalingChanged().
Referenced by colorMap(), ColorMapEditor(), and updateColorMap().
|
protectedslot |
References enableButtons(), table, and updateColorMap().
Referenced by colorMap(), ColorMapEditor(), and eventFilter().
|
protectedslot |
References enableButtons(), and table.
Referenced by colorMap(), insertLevel(), and setColorMap().
|
protectedslot |
References color_map, max_val, min_val, scaleColorsBox, setScaledColors(), and table.
Referenced by colorMap(), deleteLevel(), insertLevel(), setColorMap(), and showColorDialog().
|
protectedslot |
References d_locale, min_val, DoubleSpinBox::setMinimum(), DoubleSpinBox::setRange(), DoubleSpinBox::setValue(), and table.
Referenced by colorMap(), and setColorMap().
|
protectedslot |
References max_val, DoubleSpinBox::setMaximum(), and table.
Referenced by colorMap(), and setColorMap().
|
private |
Color map object.
Referenced by colorMap(), insertLevel(), setColorMap(), setScaledColors(), and updateColorMap().
|
private |
Locale settings used to display level values.
Referenced by insertLevel(), setColorMap(), and updateLowerRangeLimit().
|
private |
Precision used to display level values.
Referenced by insertLevel(), and setColorMap().
|
private |
Referenced by ColorMapEditor(), and enableButtons().
|
private |
Referenced by ColorMapEditor(), and enableButtons().
|
private |
Referenced by insertLevel(), setColorMap(), setRange(), updateColorMap(), and updateUpperRangeLimit().
|
private |
Levels range.
Referenced by insertLevel(), setColorMap(), setRange(), updateColorMap(), and updateLowerRangeLimit().
|
private |
Referenced by ColorMapEditor(), setColorMap(), and updateColorMap().
|
private |
Table displaying the values ranges in the first column and their corresponding colors in the second column.
Referenced by ColorMapEditor(), deleteLevel(), enableButtons(), eventFilter(), insertLevel(), setColorMap(), showColorDialog(), spinBoxActivated(), updateColorMap(), updateLowerRangeLimit(), and updateUpperRangeLimit().