14 #include <boost/bind.hpp> 15 #include <ctkPluginContext.h> 24 mPluginContext(context),
27 this->initServiceListener();
30 void RegistrationServiceProxy::initServiceListener()
34 boost::bind(&RegistrationServiceProxy::onServiceAdded,
this, _1),
36 boost::bind(&RegistrationServiceProxy::onServiceRemoved,
this, _1)
38 mServiceListener->open();
45 if(mRegistrationService->isNull())
46 reportWarning(
"RegistrationServiceProxy::onServiceAdded mRegistrationService->isNull()");
64 mRegistrationService->setMovingData(data);
70 mRegistrationService->setFixedData(data);
75 return mRegistrationService->getMovingData();
80 return mRegistrationService->getFixedData();
85 return mRegistrationService->doPatientRegistration();
90 return mRegistrationService->doFastRegistration_Translation();
95 return mRegistrationService->doFastRegistration_Orientation(tMtm, prMt);
100 return mRegistrationService->doImageRegistration(translationOnly);
105 mRegistrationService->addImage2ImageRegistration(delta_pre_rMd, description);
110 mRegistrationService->updateImage2ImageRegistration(delta_pre_rMd, description);
115 mRegistrationService->addPatientRegistration( rMpr_new, description);
120 mRegistrationService->updatePatientRegistration( rMpr_new, description);
125 mRegistrationService->applyPatientOrientation(tMtm, prMt);
130 return mRegistrationService->getLastRegistrationTime();
135 mRegistrationService->setLastRegistrationTime(time);
140 return mRegistrationService->isNull();
virtual void addImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
virtual void updatePatientRegistration(Transform3D rMpr_new, QString description)
virtual void setMovingData(DataPtr data)
RegistrationServiceProxy(ctkPluginContext *context)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual void setLastRegistrationTime(QDateTime time)
virtual void doPatientRegistration()
registrates the fixed image to the patient
virtual void applyPatientOrientation(const Transform3D &tMtm, const Transform3D &prMt)
void fixedDataChanged(QString uid)
virtual void doImageRegistration(bool translationOnly)
virtual void doFastRegistration_Translation()
use the landmarks in master image and patient to perform a translation-only landmark registration ...
virtual QDateTime getLastRegistrationTime()
boost::shared_ptr< class Data > DataPtr
virtual DataPtr getMovingData()
void reportWarning(QString msg)
Helper class for listening to services being added, modified and removed.
void movingDataChanged(QString uid)
static RegistrationServicePtr getNullObject()
virtual void doFastRegistration_Orientation(const Transform3D &tMtm, const Transform3D &prMt)
virtual void updateImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
virtual DataPtr getFixedData()
virtual void addPatientRegistration(Transform3D rMpr_new, QString description)
virtual void setFixedData(DataPtr data)
Namespace for all CustusX production code.