1 #ifndef QTRANSFERFUNCTIONVIEWER_HPP
2 #define QTRANSFERFUNCTIONVIEWER_HPP
5 #include <QLinearGradient>
8 #include <QPainterPath>
9 #include "TransferFunction.hpp"
22 typedef TransferFunction::Colorf Colorf;
33 size_t nbValues()
const;
35 const TransferFunction& transferFunction()
const {
return transfer_fct; }
38 void changeNbValues(
int n);
39 void reverseFunction();
40 void changeTransferFunction(
const TransferFunction& fct);
42 void setHistogram(
const std::vector<double>& h);
43 void setBounds(
double min,
double max);
44 void setStickers(
const std::vector<double>& s);
45 void setMarkerSize(
int s);
46 void setCheckSize(
int s);
47 void setBackgroundType(BackgroundType type);
48 void setInterpolation(TransferFunction::Interpolation i);
49 void setSelectionColor(
QColor col);
54 void changedTransferFunction(
const TransferFunction& fct);
62 void resetMouseInteraction();
64 void prepareHistogram();
66 void createBackground();
69 TransferFunction transfer_fct;
70 std::vector<double> histogram, hist_values;
71 double minValue, maxValue;
74 std::vector<double> stickers;
85 QAction *reverse_act, *edit_markers;
87 BackgroundType bg_type;
Definition: TransferFunctionViewer.hpp:18