21 #ifndef __qMRMLRangeWidget_h 22 #define __qMRMLRangeWidget_h 25 #include <ctkDoubleRangeSlider.h> 26 #include <ctkRangeSlider.h> 27 #include <ctkRangeWidget.h> 30 #include "qMRMLWidgetsExport.h" 32 class qMRMLRangeSliderPrivate;
42 Q_PROPERTY(QPalette minimumHandlePalette READ minimumHandlePalette WRITE setMinimumHandlePalette)
43 Q_PROPERTY(QPalette maximumHandlePalette READ maximumHandlePalette WRITE setMaximumHandlePalette)
44 Q_PROPERTY(
vtkMRMLScene* mrmlScene READ mrmlScene WRITE setMRMLScene)
45 Q_PROPERTY(QString quantity READ quantity WRITE setQuantity)
53 QPalette minimumHandlePalette()const;
54 QPalette maximumHandlePalette()const;
57 QString quantity()const;
61 void setMinimumHandlePalette(const QPalette& palette);
64 void setMaximumHandlePalette(const QPalette& palette);
68 void setQuantity(const QString& baseName);
75 void updateSpinBoxRange(
double min,
double max);
77 void updateSymmetricMoves(
bool symmetric);
90 QPalette minimumHandlePalette()
const;
91 QPalette maximumHandlePalette()
const;
94 QString quantity()
const;
98 void setMinimumHandlePalette(
const QPalette& palette);
101 void setMaximumHandlePalette(
const QPalette& palette);
111 QPalette minimumHandlePalette()
const;
112 QPalette maximumHandlePalette()
const;
116 void setMinimumHandlePalette(
const QPalette& palette);
119 void setMaximumHandlePalette(
const QPalette& palette);
121 virtual void initMinimumSliderStyleOption(QStyleOptionSlider* option)
const;
122 virtual void initMaximumSliderStyleOption(QStyleOptionSlider* option)
const;
125 QScopedPointer<qMRMLRangeSliderPrivate>
d_ptr;
QScopedPointer< qMRMLRangeSliderPrivate > d_ptr
Extend the ctkDoubleSpinBox to integrate units support.
A set of MRML Nodes that supports serialization and undo/redo.
qMRMLDoubleRangeSlider is a wrapper around a ctkDoubleRangeSlider
qMRMLRangeSlider is a wrapper around a ctkRangeSlider