44 BaseWidget(parent, objectName,
"Manual Patient Registration"),
45 mVerticalLayout(new QVBoxLayout(this)),
48 this->setToolTip(
"Set patient registration directly");
49 mVerticalLayout->setMargin(0);
50 mLabel =
new QLabel(
"Patient Registration matrix rMpr");
51 mVerticalLayout->addWidget(mLabel);
53 mVerticalLayout->addWidget(mMatrixWidget);
54 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
55 connect(services->patient().get(), SIGNAL(rMprChanged()),
this, SLOT(patientMatrixChanged()));
58 mVerticalLayout->addStretch();
65 this->patientMatrixChanged();
72 void ManualPatientRegistrationWidget::matrixWidgetChanged()
75 mServices->registration()->applyPatientRegistration(rMpr,
"Manual Patient");
82 void ManualPatientRegistrationWidget::patientMatrixChanged()
84 mLabel->setText(this->getDescription());
85 mMatrixWidget->blockSignals(
true);
87 mMatrixWidget->blockSignals(
false);
90 bool ManualPatientRegistrationWidget::isValid()
const
95 QString ManualPatientRegistrationWidget::getDescription()
98 return QString(
"<b>Patient Registration matrix rMpr</b>");
100 return "<Invalid matrix>";
boost::shared_ptr< class RegServices > RegServicesPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.