1 #ifndef QTRANSFERFUNCTIONVIEWER_HPP
2 #define QTRANSFERFUNCTIONVIEWER_HPP
6 #include <TransferFunction.hpp>
9 #include <QLinearGradient>
10 #include <QPainterPath>
26 enum BackgroundType { BG_CHECKS, BG_WHITE, BG_BLACK };
32 size_t nbValues()
const;
39 void changeNbValues(
int n);
40 void reverseFunction();
43 void setHistogram(
const std::vector<double>& h);
44 void setBounds(
double min,
double max);
45 void setStickers(
const std::vector<double>& s);
46 void setMarkerSize(
int s);
47 void setCheckSize(
int s);
48 void setBackgroundType(BackgroundType type);
50 void setSelectionColor(
QColor col);
63 void resetMouseInteraction();
65 void prepareHistogram();
67 void createBackground();
71 std::vector<double> histogram, hist_values;
72 double minValue, maxValue;
75 std::vector<double> stickers;
86 QAction* reverse_act, *edit_markers;
88 BackgroundType bg_type;
93 #endif // QTRANSFERFUNCTIONVIEWER_HPP
Definition: QTransferFunctionViewer.hpp:22
Interpolation
Type of interpolation.
Definition: TransferFunction.hpp:28
Class defining a transfer function as linear interpolation between set values.
Definition: TransferFunction.hpp:23