44 BaseWidget(parent, objectName,
"Manual Patient Registration"),
45 mVerticalLayout(new QVBoxLayout(this)),
48 mVerticalLayout->setMargin(0);
49 mLabel =
new QLabel(
"Patient Registration matrix rMpr");
50 mVerticalLayout->addWidget(mLabel);
52 mVerticalLayout->addWidget(mMatrixWidget);
53 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
54 connect(services.
patientModelService.get(), SIGNAL(rMprChanged()),
this, SLOT(patientMatrixChanged()));
57 mVerticalLayout->addStretch();
64 this->patientMatrixChanged();
71 void ManualPatientRegistrationWidget::matrixWidgetChanged()
81 void ManualPatientRegistrationWidget::patientMatrixChanged()
83 mLabel->setText(this->getDescription());
84 mMatrixWidget->blockSignals(
true);
86 mMatrixWidget->blockSignals(
false);
94 bool ManualPatientRegistrationWidget::isValid()
const
99 QString ManualPatientRegistrationWidget::getDescription()
102 return QString(
"<b>Patient Registration matrix rMpr</b>");
104 return "<Invalid matrix>";
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
PatientModelServicePtr patientModelService
RegistrationServicePtr registrationService