16 #include <QtCore/QString>
18 #include <QtWidgets/QWidget>
20 class QAbstractItemDelegate;
21 class QStandardItemModel;
38 class DtRangeEditorValueDelegate;
47 const static int theRangeStartColumn = 0;
48 const static int theRangeEndColumn = 1;
49 const static int theColorColumn = 2;
55 Qt::WindowFlags flags = 0 );
61 virtual void resizeEvent( QResizeEvent * event );
64 virtual void clearGradient();
67 virtual void setValueUnits(
const QString& units );
70 virtual void setValueDecimals(
int decimals );
73 virtual void setRangeBackgroundColor(
const QColor& color );
76 virtual QColor rangeBackgroundColor()
const;
79 virtual void getRange(
int index,
float& rangeStart,
float& rangeEnd,
80 QColor& color )
const;
83 virtual int numRanges()
const;
86 virtual void addControlPoint(
double rangeStart,
double rangeEnd,
87 double red,
double green,
double blue,
double alpha = 1.0 );
100 virtual void removeControlPoint(
int index );
105 virtual void decorate();
111 virtual void insertNewControlPoint();
115 virtual void removeSelectedControlPoint();
118 virtual void updateGradient();
128 void connectToSignals();
131 virtual void insertNewControlPoint(
double rangeStart,
132 double rangeEnd,
const QColor& color );
135 std::string colorStringFromColor(
const QColor& color );
139 double rangeStart,
double rangeEnd, std::string color );
142 virtual void changeEvent(
QEvent* event );
std::vector< double > ControlPoint
Vector type for the double values that make up a control point.
Definition: DtRangeEditorInterface.h:24
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
std::vector< DtRangeEditorInterface::ControlPoint > Gradient
Vector type for storing ControlPoints.
Definition: DtRangeEditorInterface.h:27
Contains DLL export macros.
Contains the DtRangeEditorInterface declaration.
Abstract interface for range editor widgets.
Definition: DtRangeEditorInterface.h:19
Definition: translator.h:58
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70