11 #ifndef TRANSFER_MARKERS_HPP 12 #define TRANSFER_MARKERS_HPP 16 #include <TransferFunction.hpp> 18 #include <QAbstractTableModel> 21 #include <QItemDelegate> 22 #include <QModelIndex> 52 TransferMarkerModel(
const std::vector<double>& markers,
const std::vector<QColor>& colors, Interpolation m,
53 bool showRgba,
QObject* parent = 0);
60 Qt::ItemFlags flags(
const QModelIndex& index)
const;
64 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
66 const std::vector<double>& getMarkers()
const {
69 const std::vector<QColor>& getColors()
const {
81 QString colorText(
int idx)
const;
82 bool setColorText(
int idx,
QString txt);
84 std::vector<double> markers;
85 std::vector<QColor> colors;
93 #endif // TRANSFER_MARKERS_HPP Definition: TransferMarkers.hpp:48
Definition: TransferMarkers.hpp:34
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Interpolation
Type of interpolation.
Definition: TransferFunction.hpp:38