21 #ifndef __qMRMLSliderWidget_h 22 #define __qMRMLSliderWidget_h 25 #include <ctkSliderWidget.h> 26 #include <ctkVTKObject.h> 29 #include <qMRMLWidgetsExport.h> 36 class qMRMLSliderWidgetPrivate;
64 Q_PROPERTY(QString quantity READ quantity WRITE setQuantity)
74 Q_PROPERTY(UnitAwareProperties unitAwareProperties READ unitAwareProperties WRITE setUnitAwareProperties)
92 All = Prefix | Suffix | Precision | MinimumValue | MaximumValue | Scaling
94 Q_DECLARE_FLAGS(UnitAwareProperties, UnitAwareProperty)
102 QString quantity()
const;
106 UnitAwareProperties unitAwareProperties()
const;
111 void setMinimum(
double)
override;
112 void setMaximum(
double)
override;
113 void setRange(
double,
double)
override;
116 void setQuantity(
const QString& baseName);
122 void setUnitAwareProperties(UnitAwareProperties flags);
125 void updateWidgetFromUnitNode();
128 QScopedPointer<qMRMLSliderWidgetPrivate>
d_ptr;
135 Q_DECLARE_OPERATORS_FOR_FLAGS(qMRMLSliderWidget::UnitAwareProperties)
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.