11 #ifndef QTRANSFERFUNCTIONVIEWER_HPP
12 #define QTRANSFERFUNCTIONVIEWER_HPP
19 #include <QLinearGradient>
20 #include <QPainterPath>
40 size_t nbValues()
const;
47 void changeNbValues(
int n);
48 void reverseFunction();
51 void setHistogram(
const std::vector<double>& h);
52 void setBounds(
double min,
double max);
53 void setStickers(
const std::vector<double>& s);
54 void setMarkerSize(
int s);
55 void setCheckSize(
int s);
56 void setBackgroundType(BackgroundType type);
58 void setSelectionColor(QColor col);
66 void paintEvent(QPaintEvent* event);
67 void mouseDoubleClickEvent(QMouseEvent* e);
68 void mousePressEvent(QMouseEvent* e);
69 void mouseReleaseEvent(QMouseEvent* e);
70 void mouseMoveEvent(QMouseEvent* e);
71 void resetMouseInteraction();
73 void prepareHistogram();
75 void createBackground();
76 QPixmap createChecks();