CustusX  22.04-rc5
An IGT application
cxPatientModelServiceNull.cpp
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 
13 #include <QDomElement>
14 #include <map>
15 #include "cxImage.h"
16 
17 #include "cxLandmark.h"
19 #include "cxActiveData.h"
20 
21 namespace cx
22 {
23 
25 {
26 }
27 void PatientModelServiceNull::insertData(DataPtr data, bool overWrite)
28 {
29  printWarning();
30 }
31 
32 DataPtr PatientModelServiceNull::createData(QString type, QString uid, QString name)
33 {
34  return DataPtr();
35 }
36 
37 std::map<QString, DataPtr> PatientModelServiceNull::getDatas(DataFilter filter) const
38 {
39  printWarning();
40  std::map<QString, DataPtr> retval;
41  return retval;
42 }
43 
44 std::map<QString, DataPtr> PatientModelServiceNull::getChildren(QString parent_uid, QString of_type) const
45 {
46  printWarning();
47  std::map<QString, DataPtr> retval;
48  return retval;
49 }
50 
52 {
53  printWarning();
54  return boost::shared_ptr<Landmarks>();
55 }
56 
57 
58 std::map<QString, LandmarkProperty> PatientModelServiceNull::getLandmarkProperties() const
59 {
60  printWarning();
61  return std::map<QString, LandmarkProperty>();
62 }
63 
64 void PatientModelServiceNull::setLandmarkName(QString uid, QString name)
65 {
66  printWarning();
67 }
68 
70 {
71  printWarning();
72 }
73 
75 {
76  printWarning();
77  return true;
78 }
79 
80 void PatientModelServiceNull::makeAvailable(const QString &uid, bool available)
81 {
82  printWarning();
83 }
84 
85 std::map<QString, VideoSourcePtr> PatientModelServiceNull::getStreams() const
86 {
87  printWarning();
88  return std::map<QString, VideoSourcePtr>();
89 }
90 
92 {
93  printWarning();
94  return QString();
95 }
96 
98 {
99  printWarning();
100  return false;
101 }
102 
103 DataPtr PatientModelServiceNull::importData(QString fileName, QString &infoText)
104 {
105  printWarning();
106  return DataPtr();
107 }
108 
109 void PatientModelServiceNull::exportPatient(PATIENT_COORDINATE_SYSTEM externalSpace)
110 {
111  printWarning();
112 }
113 
115 {
116  printWarning();
117 }
118 
120 {
121  printWarning();
123 }
124 
126 {
127  printWarning();
128 }
129 
131 {
132  return Vector3D::Zero();
133 }
134 
136 {
137  printWarning();
138 }
139 
141 {
142  return OperatingTable(Transform3D::Identity());
143 }
144 
146 {
147  printWarning();
148  return QString();
149 }
150 
152 {
153  printWarning();
154 }
155 
156 void PatientModelServiceNull::setLandmarkActive(QString uid, bool active)
157 {
158  printWarning();
159 }
160 
161 void PatientModelServiceNull::printWarning() const
162 {
163  //This warning is disabled as the null object is in normal use several places.
164  //You can enable it e.g. when debugging.
165  // reportWarning("Trying to use PatientModelServiceNull. Is PatientModelService (org.custusx.patiemtmodel) disabled?");
166 }
167 
169 {
170  printWarning();
172 }
173 
175 {
176  printWarning();
177  return ActiveData::getNullObject();
178 }
179 
181 {
182  return mdCOUNT;
183 }
184 
185 void PatientModelServiceNull::setClinicalApplication(CLINICAL_VIEW application)
186 {
187 
188 }
189 
190 } // cx
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
Definition: cxDataManager.h:37
virtual void setClinicalApplication(CLINICAL_VIEW application)
virtual Vector3D getCenter() const
current common center point for user viewing.
virtual std::map< QString, LandmarkProperty > getLandmarkProperties() const
virtual std::map< QString, DataPtr > getChildren(QString parent_uid, QString of_type="") const
virtual CLINICAL_VIEW getClinicalApplication() const
static RegistrationHistoryPtr getNullObject()
virtual RegistrationHistoryPtr get_rMpr_History() const
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
Definition: cxDataManager.h:36
virtual void insertData(DataPtr data, bool overWrite=false)
virtual void setLandmarkName(QString uid, QString name)
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
boost::shared_ptr< class Landmarks > LandmarksPtr
Definition: cxData.h:41
boost::shared_ptr< class Data > DataPtr
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const
virtual void makeAvailable(const QString &uid, bool available)
Exclude this data from getDatas()
virtual void setCenter(const Vector3D &center)
virtual QString getActivePatientFolder() const
virtual DataPtr createData(QString type, QString uid, QString name="")
virtual std::map< QString, cx::VideoSourcePtr > getStreams() const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
void setOperatingTable(const OperatingTable &ot)
virtual DataPtr importData(QString fileName, QString &infoText)
virtual void removeData(QString uid)
virtual std::map< QString, DataPtr > getDatas(DataFilter filter) const
virtual void exportPatient(PATIENT_COORDINATE_SYSTEM externalSpace)
The OperatingTable class.
virtual LandmarksPtr getPatientLandmarks() const
landmark defined in patient space
static ActiveDataPtr getNullObject()
OperatingTable getOperatingTable() const
virtual ActiveDataPtr getActiveData() const
virtual void setLandmarkActive(QString uid, bool active)
Namespace for all CustusX production code.