21 #ifndef __qMRMLCoordinatesWidget_h 22 #define __qMRMLCoordinatesWidget_h 28 #include <ctkCoordinatesWidget.h> 29 #include <ctkVTKObject.h> 32 #include "qMRMLWidgetsExport.h" 39 class qMRMLCoordinatesWidgetPrivate;
67 Q_PROPERTY(QString quantity READ quantity WRITE setQuantity NOTIFY quantityChanged)
76 Q_PROPERTY(UnitAwareProperties unitAwareProperties READ unitAwareProperties WRITE setUnitAwareProperties)
94 All = Prefix | Suffix | Precision | MinimumValue | MaximumValue | Scaling
102 QString quantity()
const;
104 UnitAwareProperties unitAwareProperties()
const;
107 void setQuantity(
const QString& baseName);
113 void setUnitAwareProperties(UnitAwareProperties flags);
117 void quantityChanged(
const QString&);
120 void updateWidgetFromUnitNode();
123 QScopedPointer<qMRMLCoordinatesWidgetPrivate>
d_ptr;
130 Q_DECLARE_OPERATORS_FOR_FLAGS(qMRMLCoordinatesWidget::UnitAwareProperties)
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.