21 #ifndef __qMRMLTransformSliders_h 22 #define __qMRMLTransformSliders_h 28 #include <ctkVTKObject.h> 36 class qMRMLTransformSlidersPrivate;
42 Q_PROPERTY(QString Title READ title WRITE setTitle)
45 Q_PROPERTY(
TransformType TypeOfTransform READ typeOfTransform WRITE setTypeOfTransform)
47 Q_PROPERTY(QString LRLabel READ lrLabel WRITE setLRLabel)
48 Q_PROPERTY(QString PALabel READ paLabel WRITE setPALabel)
49 Q_PROPERTY(QString ISLabel READ isLabel WRITE setISLabel)
50 Q_PROPERTY(
double SingleStep READ singleStep WRITE setSingleStep)
52 Q_PROPERTY(
int decimals READ decimals WRITE setDecimals NOTIFY decimalsChanged)
53 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum)
54 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum)
55 Q_PROPERTY(
bool minMaxVisible READ isMinMaxVisible WRITE setMinMaxVisible)
67 void setCoordinateReference(CoordinateReferenceType coordinateReference);
68 CoordinateReferenceType coordinateReference()
const;
74 void setTypeOfTransform(TransformType typeOfTransform);
75 TransformType typeOfTransform()
const;
79 void setTitle(
const QString& title);
88 double minimum()
const;
89 double maximum()
const;
93 void setMinimum(
double min);
94 void setMaximum(
double max);
97 void setRange(
double min,
double max);
103 void setMinMaxVisible(
bool visible);
104 bool isMinMaxVisible()
const;
108 double singleStep()
const;
109 void setSingleStep(
double step);
113 QString lrLabel()
const;
114 QString paLabel()
const;
115 QString isLabel()
const;
116 void setLRLabel(
const QString& label);
117 void setPALabel(
const QString& label);
118 void setISLabel(
const QString& label);
127 void valuesChanged();
130 void rangeChanged(
double newMinimum,
double newMaximum);
134 void decimalsChanged(
int newDecimals);
151 void resetUnactiveSliders();
155 void setDecimals(
int newDecimals);
158 void onSliderPositionChanged(
double position);
160 void onMinimumChanged(
double min);
161 void onMaximumChanged(
double max);
165 void onMRMLTransformNodeModified(vtkObject* caller);
168 QScopedPointer<qMRMLTransformSlidersPrivate>
d_ptr;
180 static QPair<double, double> extractMinMaxTranslationValue(vtkMatrix4x4 * mat,
Abstract Superclass for all specific types of MRML nodes.