23 mRegistrationService(registrationService),
24 mPatientModelService(patientModelService)
27 mHelp =
"Select the fixed registration data";
28 connect(mRegistrationService.get(), SIGNAL(fixedDataChanged(QString)),
this, SIGNAL(
changed()));
33 DataPtr newImage = mPatientModelService->getData(value);
34 if (newImage == mRegistrationService->getFixedData())
36 mRegistrationService->setFixedData(newImage);
41 DataPtr image = mRegistrationService->getFixedData();
53 mRegistrationService(registrationService),
54 mPatientModelService(patientModelService)
57 mHelp =
"Select the moving registration data";
58 connect(mRegistrationService.get(), SIGNAL(movingDataChanged(QString)),
this, SIGNAL(
changed()));
63 DataPtr newImage = mPatientModelService->getData(value);
64 if (newImage == mRegistrationService->getMovingData())
66 mRegistrationService->setMovingData(newImage);
72 DataPtr image = mRegistrationService->getMovingData();
QString qstring_cast(const T &val)
boost::shared_ptr< class RegistrationService > RegistrationServicePtr
virtual QString getValue() const
get the data value.
StringPropertyRegistrationFixedImage(RegistrationServicePtr registrationService, PatientModelServicePtr patientModelService)
virtual bool setValue(const QString &value)
set the data value.
StringPropertyRegistrationMovingImage(RegistrationServicePtr registrationService, PatientModelServicePtr patientModelService)
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual QString getValue() const
get the data value.
virtual bool setValue(const QString &value)
set the data value.
Namespace for all CustusX production code.