14 #include <boost/bind.hpp> 15 #include <QDomElement> 16 #include <ctkPluginContext.h> 30 mPluginContext(context),
33 this->initServiceListener();
41 void PatientModelServiceProxy::initServiceListener()
45 boost::bind(&PatientModelServiceProxy::onServiceAdded,
this, _1),
47 boost::bind(&PatientModelServiceProxy::onServiceRemoved,
this, _1)
49 mServiceListener->open();
66 if(mPatientModelService->isNull())
67 reportWarning(
"PatientModelServiceProxy::onServiceAdded mPatientModelService->isNull()");
99 mPatientModelService->insertData(data);
104 return mPatientModelService->createData(type, uid, name);
109 return mPatientModelService->getDatas(filter);
114 return mPatientModelService->getChildren(parent_uid, of_type);
119 return mPatientModelService->getData(uid);
124 return mPatientModelService->getPatientLandmarks();
129 return mPatientModelService->getLandmarkProperties();
134 mPatientModelService->setLandmarkName(uid, name);
139 mPatientModelService->autoSave();
144 return mPatientModelService->isNull();
149 mPatientModelService->makeAvailable(uid, available);
154 return mPatientModelService->getStreams();
159 return mPatientModelService->getActivePatientFolder();
164 return mPatientModelService->isPatientValid();
169 return mPatientModelService->importData(fileName, infoText);
174 return mPatientModelService->exportPatient(externalSpace);
179 return mPatientModelService->removeData(uid);
184 return mPatientModelService->getPresetTransferFunctions3D();
189 mPatientModelService->setCenter(center);
194 return mPatientModelService->getCenter();
199 mPatientModelService->setOperatingTable(ot);
204 return mPatientModelService->getOperatingTable();
209 return mPatientModelService->addLandmark();
214 return mPatientModelService->deleteLandmarks();
219 mPatientModelService->setLandmarkActive(uid, active);
224 return mPatientModelService->get_rMpr_History();
229 return mPatientModelService->getActiveData();
234 return mPatientModelService->getClinicalApplication();
239 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.