11 #ifndef TRANSFERFUNCTIONDLG_HPP
12 #define TRANSFERFUNCTIONDLG_HPP
16 #include <QStringList>
19 #include <ui_TransferFunctionDlg.h>
21 class QAbstractButton;
32 void loadSettings(
bool changeFunction =
true);
35 void setStickers(
const std::vector<double>& pos);
36 void changeHistogram(
const std::vector<double>& h);
37 void changeBounds(
const std::pair<double, double>& bounds);
49 void changeTransferFunction(
const QString& name);
51 void on_useChecks_toggled(
bool on);
52 void on_useWhite_toggled(
bool on);
53 void on_useBlack_toggled(
bool on);
54 void on_useRGB_toggled(
bool on);
55 void on_useHSV_toggled(
bool on);
56 void on_useCyclicHSV_toggled(
bool on);
57 void on_selectSelectionColor_clicked();
58 void on_functionList_currentIndexChanged(
const QString& name);
59 void on_exportFunction_clicked();
60 void on_importFunction_clicked();
61 void on_saveFunction_clicked();
62 void on_renameFunction_clicked();
63 void on_deleteFunction_clicked();
64 void resetFunctionList();
65 void on_buttonBox_clicked(QAbstractButton* btn);
68 QColor getColor(QWidget* w);
69 void setColor(QWidget* w,
const QColor& col);
70 bool changeColor(QWidget* w);
73 Ui::TransferFunctionDlg
ui;
75 QList<TransferFunction>
fcts;