44 mRegistrationService(registrationService),
45 mPatientModelService(patientModelService)
48 mHelp =
"Select the fixed registration data";
49 connect(mRegistrationService.get(), SIGNAL(fixedDataChanged(QString)),
this, SIGNAL(
changed()));
54 DataPtr newImage = mPatientModelService->getData(value);
55 if (newImage == mRegistrationService->getFixedData())
57 mRegistrationService->setFixedData(newImage);
62 DataPtr image = mRegistrationService->getFixedData();
74 mRegistrationService(registrationService),
75 mPatientModelService(patientModelService)
78 mHelp =
"Select the moving registration data";
79 connect(mRegistrationService.get(), SIGNAL(movingDataChanged(QString)),
this, SIGNAL(
changed()));
84 DataPtr newImage = mPatientModelService->getData(value);
85 if (newImage == mRegistrationService->getMovingData())
87 mRegistrationService->setMovingData(newImage);
93 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.