NorMIT-nav  22.09
An IGT application
cxPatientModelServiceNull.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXPATIENTMODELSERVICENULL_H
13 #define CXPATIENTMODELSERVICENULL_H
14 
15 #include "cxResourceExport.h"
16 #include "cxPatientModelService.h"
17 
18 namespace cx
19 {
20 
28 class cxResource_EXPORT PatientModelServiceNull : public PatientModelService
29 {
30 public:
32  virtual void insertData(DataPtr data, bool overWrite = false);
33  virtual DataPtr createData(QString type, QString uid, QString name="");
34  virtual std::map<QString, DataPtr> getDatas(DataFilter filter) const;
35  virtual std::map<QString, DataPtr> getChildren(QString parent_uid, QString of_type="") const;
36 
37  virtual LandmarksPtr getPatientLandmarks() const;
38  virtual std::map<QString, LandmarkProperty> getLandmarkProperties() const;
39  virtual void setLandmarkName(QString uid, QString name);
40  virtual void setLandmarkActive(QString uid, bool active);
41 
42  virtual RegistrationHistoryPtr get_rMpr_History() const;
43 
44  virtual ActiveDataPtr getActiveData() const;
45 
46  virtual CLINICAL_VIEW getClinicalApplication() const;
47  virtual void setClinicalApplication(CLINICAL_VIEW application);
48 
49  virtual std::map<QString, cx::VideoSourcePtr> getStreams() const;
50 
51  virtual QString getActivePatientFolder() const;
52  virtual bool isPatientValid() const;
53  virtual DataPtr importData(QString fileName, QString &infoText);
54  virtual void exportPatient(PATIENT_COORDINATE_SYSTEM externalSpace);
55  virtual void removeData(QString uid);
56 
57  virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const;
58 
59  virtual void setCenter(const Vector3D& center);
60  virtual Vector3D getCenter() const;
61  void setOperatingTable(const OperatingTable &ot);
62  OperatingTable getOperatingTable() const;
63 
64  virtual QString addLandmark();
65  virtual void deleteLandmarks();
66 
67  virtual void autoSave();
68  virtual bool isNull();
69  virtual void makeAvailable(const QString& uid, bool available);
70 
71 private:
72  void printWarning() const;
73 };
74 
75 } //cx
76 #endif // CXPATIENTMODELSERVICENULL_H
cx::PatientModelService::DataFilter
DataFilter
Definition: cxPatientModelService.h:91
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::PatientModelService
The virtual patient.
Definition: cxPatientModelService.h:85
cx::RegistrationHistoryPtr
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
Definition: cxDataManager.h:37
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::PresetTransferFunctions3DPtr
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
Definition: cxDataManager.h:36
cxPatientModelService.h
cx::LandmarksPtr
boost::shared_ptr< class Landmarks > LandmarksPtr
Definition: cxData.h:41
cx::PatientModelServiceNull
Null Object Pattern for Registration service.
Definition: cxPatientModelServiceNull.h:28
cx::OperatingTable
The OperatingTable class.
Definition: cxPatientModelService.h:54
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
cx::Vector3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42