23 BaseWidget(parent, objectName,
"Manual Patient Registration"),
24 mVerticalLayout(new QVBoxLayout(this)),
27 this->setToolTip(
"Set patient registration directly");
28 mVerticalLayout->setMargin(0);
29 mLabel =
new QLabel(
"Patient Registration matrix rMpr");
30 mVerticalLayout->addWidget(mLabel);
32 mVerticalLayout->addWidget(mMatrixWidget);
33 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
34 connect(services->patient().get(), SIGNAL(rMprChanged()),
this, SLOT(patientMatrixChanged()));
37 mVerticalLayout->addStretch();
44 this->patientMatrixChanged();
51 void ManualPatientRegistrationWidget::matrixWidgetChanged()
54 mServices->registration()->addPatientRegistration(rMpr,
"Manual Patient");
61 void ManualPatientRegistrationWidget::patientMatrixChanged()
63 mLabel->setText(this->getDescription());
64 mMatrixWidget->blockSignals(
true);
66 mMatrixWidget->blockSignals(
false);
69 bool ManualPatientRegistrationWidget::isValid()
const 74 QString ManualPatientRegistrationWidget::getDescription()
77 return QString(
"<b>Patient Registration matrix rMpr</b>");
79 return "<Invalid matrix>";
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class RegServices > RegServicesPtr
Namespace for all CustusX production code.