#include <ColorMapEditor.h>
Public Member Functions | |
QwtLinearColorMap | colorMap () |
ColorMapEditor (QWidget *parent=0) | |
void | setColorMap (const QwtLinearColorMap &map) |
void | setRange (double min, double max) |
Protected Slots | |
void | deleteLevel () |
void | enableButtons (int row, int col, int=0, int=0) |
bool | eventFilter (QObject *object, QEvent *e) |
void | insertLevel () |
void | setScaledColors (bool scale=true) |
void | showColorDialog (int row, int col) |
void | updateColorMap () |
void | validateLevel (int row, int col) |
Private Attributes | |
QwtLinearColorMap | color_map |
Color map object. | |
QPushButton * | deleteBtn |
QPushButton * | insertBtn |
double | max_val |
double | min_val |
Levels range. | |
QCheckBox * | scaleColorsBox |
QTableWidget * | table |
ColorMapEditor::ColorMapEditor | ( | QWidget * | parent = 0 |
) |
References deleteBtn, deleteLevel(), enableButtons(), insertBtn, insertLevel(), scaleColorsBox, setScaledColors(), showColorDialog(), table, and validateLevel().
QwtLinearColorMap ColorMapEditor::colorMap | ( | ) | [inline] |
void ColorMapEditor::deleteLevel | ( | ) | [protected, slot] |
void ColorMapEditor::enableButtons | ( | int | row, | |
int | col, | |||
int | = 0 , |
|||
int | = 0 | |||
) | [protected, slot] |
References deleteBtn, insertBtn, and table.
Referenced by ColorMapEditor(), deleteLevel(), and insertLevel().
bool ColorMapEditor::eventFilter | ( | QObject * | object, | |
QEvent * | e | |||
) | [protected, slot] |
References showColorDialog(), and table.
void ColorMapEditor::insertLevel | ( | ) | [protected, slot] |
References color_map, enableButtons(), max_val, min_val, table, and updateColorMap().
Referenced by ColorMapEditor().
void ColorMapEditor::setColorMap | ( | const QwtLinearColorMap & | map | ) |
References color_map, max_val, min_val, scaleColorsBox, and table.
Referenced by PlotDialog::acceptParams(), PlotDialog::setActiveCurve(), and ColorMapDialog::setMatrix().
void ColorMapEditor::setRange | ( | double | min, | |
double | max | |||
) |
References max_val, and min_val.
Referenced by PlotDialog::setActiveCurve(), and ColorMapDialog::setMatrix().
void ColorMapEditor::setScaledColors | ( | bool | scale = true |
) | [protected, slot] |
void ColorMapEditor::showColorDialog | ( | int | row, | |
int | col | |||
) | [protected, slot] |
void ColorMapEditor::updateColorMap | ( | ) | [protected, slot] |
References color_map, max_val, min_val, scaleColorsBox, setScaledColors(), and table.
Referenced by deleteLevel(), insertLevel(), and showColorDialog().
void ColorMapEditor::validateLevel | ( | int | row, | |
int | col | |||
) | [protected, slot] |
QwtLinearColorMap ColorMapEditor::color_map [private] |
Color map object.
Referenced by colorMap(), insertLevel(), setColorMap(), setScaledColors(), updateColorMap(), and validateLevel().
QPushButton * ColorMapEditor::deleteBtn [private] |
Referenced by ColorMapEditor(), and enableButtons().
QPushButton* ColorMapEditor::insertBtn [private] |
Referenced by ColorMapEditor(), and enableButtons().
double ColorMapEditor::max_val [private] |
Referenced by insertLevel(), setColorMap(), setRange(), updateColorMap(), and validateLevel().
double ColorMapEditor::min_val [private] |
Levels range.
Referenced by insertLevel(), setColorMap(), setRange(), updateColorMap(), and validateLevel().
QCheckBox* ColorMapEditor::scaleColorsBox [private] |
Referenced by ColorMapEditor(), setColorMap(), and updateColorMap().
QTableWidget* ColorMapEditor::table [private] |
Referenced by ColorMapEditor(), deleteLevel(), enableButtons(), eventFilter(), insertLevel(), setColorMap(), showColorDialog(), updateColorMap(), and validateLevel().