11 #ifndef QTRANSFERFUNCTIONVIEWER_HPP 12 #define QTRANSFERFUNCTIONVIEWER_HPP 16 #include <TransferFunction.hpp> 19 #include <QLinearGradient> 20 #include <QPainterPath> 36 enum BackgroundType { BG_CHECKS, BG_WHITE, BG_BLACK };
42 size_t nbValues()
const;
49 void changeNbValues(
int n);
50 void reverseFunction();
53 void setHistogram(
const std::vector<double>& h);
54 void setBounds(
double min,
double max);
55 void setStickers(
const std::vector<double>& s);
56 void setMarkerSize(
int s);
57 void setCheckSize(
int s);
58 void setBackgroundType(BackgroundType type);
60 void setSelectionColor(
QColor col);
73 void resetMouseInteraction();
75 void prepareHistogram();
77 void createBackground();
81 std::vector<double> histogram, hist_values;
82 double minValue, maxValue;
85 std::vector<double> stickers;
96 QAction* reverse_act, *edit_markers;
98 BackgroundType bg_type;
103 #endif // QTRANSFERFUNCTIONVIEWER_HPP
Definition: QTransferFunctionViewer.hpp:32
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Interpolation
Type of interpolation.
Definition: TransferFunction.hpp:38
Class defining a transfer function as linear interpolation between set values.
Definition: TransferFunction.hpp:33