35 #include <boost/bind.hpp> 36 #include <QDomElement> 37 #include <ctkPluginContext.h> 51 mPluginContext(context),
54 this->initServiceListener();
62 void PatientModelServiceProxy::initServiceListener()
66 boost::bind(&PatientModelServiceProxy::onServiceAdded,
this, _1),
68 boost::bind(&PatientModelServiceProxy::onServiceRemoved,
this, _1)
70 mServiceListener->open();
87 if(mPatientModelService->isNull())
88 reportWarning(
"PatientModelServiceProxy::onServiceAdded mPatientModelService->isNull()");
120 mPatientModelService->insertData(data);
125 return mPatientModelService->createData(type, uid, name);
130 return mPatientModelService->getDatas(filter);
135 return mPatientModelService->getChildren(parent_uid, of_type);
140 return mPatientModelService->getData(uid);
145 return mPatientModelService->getPatientLandmarks();
150 return mPatientModelService->getLandmarkProperties();
155 mPatientModelService->setLandmarkName(uid, name);
160 mPatientModelService->autoSave();
165 return mPatientModelService->isNull();
170 mPatientModelService->makeAvailable(uid, available);
175 return mPatientModelService->getStreams();
180 return mPatientModelService->getActivePatientFolder();
185 return mPatientModelService->isPatientValid();
190 return mPatientModelService->importData(fileName, infoText);
195 return mPatientModelService->exportPatient(externalSpace);
200 return mPatientModelService->removeData(uid);
205 return mPatientModelService->getPresetTransferFunctions3D();
210 mPatientModelService->setCenter(center);
215 return mPatientModelService->getCenter();
220 mPatientModelService->setOperatingTable(ot);
225 return mPatientModelService->getOperatingTable();
230 return mPatientModelService->addLandmark();
235 return mPatientModelService->deleteLandmarks();
240 mPatientModelService->setLandmarkActive(uid, active);
245 return mPatientModelService->get_rMpr_History();
250 return mPatientModelService->getActiveData();
255 return mPatientModelService->getClinicalApplication();
260 mPatientModelService->setClinicalApplication(application);
virtual void removeData(QString uid)
virtual RegistrationHistoryPtr get_rMpr_History() const
virtual QString addLandmark()
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
virtual std::map< QString, VideoSourcePtr > getStreams() const
virtual void setCenter(const Vector3D ¢er)
void dataAddedOrRemoved()
virtual void exportPatient(PATIENT_COORDINATE_SYSTEM externalSpace)
void landmarkPropertiesChanged()
emitted when global info about a landmark changed
virtual void setClinicalApplication(CLINICAL_VIEW application)
virtual void deleteLandmarks()
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
static PatientModelServicePtr getNullObject()
virtual void setLandmarkActive(QString uid, bool active)
virtual std::map< QString, DataPtr > getChildren(QString parent_uid, QString of_type="") const
boost::shared_ptr< class ActiveData > ActiveDataPtr
virtual QString getActivePatientFolder() const
void centerChanged()
emitted when center is changed.
virtual void makeAvailable(const QString &uid, bool available)
Exclude this data from getDatas()
boost::shared_ptr< class Landmarks > LandmarksPtr
virtual void setLandmarkName(QString uid, QString name)
PatientModelServiceProxy(ctkPluginContext *context)
static PatientModelServicePtr create(ctkPluginContext *pluginContext)
boost::shared_ptr< class Data > DataPtr
virtual DataPtr createData(QString type, QString uid, QString name="")
virtual std::map< QString, LandmarkProperty > getLandmarkProperties() const
virtual CLINICAL_VIEW getClinicalApplication() const
virtual DataPtr getData(const QString &uid) const
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const
void reportWarning(QString msg)
virtual ActiveDataPtr getActiveData() const
virtual DataPtr importData(QString fileName, QString &infoText)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual LandmarksPtr getPatientLandmarks() const
landmark defined in patient space
void clinicalApplicationChanged()
void videoAddedToTrackedStream()
virtual ~PatientModelServiceProxy()
Helper class for listening to services being added, modified and removed.
void operatingTableChanged()
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
virtual Vector3D getCenter() const
current common center point for user viewing.
virtual bool isPatientValid() const
virtual void insertData(DataPtr data)
virtual std::map< QString, DataPtr > getDatas(DataFilter filter) const
The OperatingTable class.
virtual OperatingTable getOperatingTable() const
virtual void setOperatingTable(const OperatingTable &ot)
Namespace for all CustusX production code.