11 #ifndef QTRANSFERFUNCTIONVIEWER_HPP 12 #define QTRANSFERFUNCTIONVIEWER_HPP 15 #include <QLinearGradient> 18 #include <QPainterPath> 19 #include "TransferFunction.hpp" 32 typedef TransferFunction::Colorf Colorf;
43 size_t nbValues()
const;
45 const TransferFunction& transferFunction()
const {
return transfer_fct; }
48 void changeNbValues(
int n);
49 void reverseFunction();
50 void changeTransferFunction(
const TransferFunction& fct);
52 void setHistogram(
const std::vector<double>& h);
53 void setBounds(
double min,
double max);
54 void setStickers(
const std::vector<double>& s);
55 void setMarkerSize(
int s);
56 void setCheckSize(
int s);
57 void setBackgroundType(BackgroundType type);
58 void setInterpolation(TransferFunction::Interpolation i);
59 void setSelectionColor(
QColor col);
64 void changedTransferFunction(
const TransferFunction& fct);
72 void resetMouseInteraction();
74 void prepareHistogram();
76 void createBackground();
79 TransferFunction transfer_fct;
80 std::vector<double> histogram, hist_values;
81 double minValue, maxValue;
84 std::vector<double> stickers;
95 QAction *reverse_act, *edit_markers;
97 BackgroundType bg_type;
Definition: TransferFunctionViewer.hpp:28