NorMIT-nav  22.09
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
cx::PatientModelServiceNull::getActiveData
virtual ActiveDataPtr getActiveData() const
Definition: cxPatientModelServiceNull.cpp:174
cx::PatientModelServiceNull::setClinicalApplication
virtual void setClinicalApplication(CLINICAL_VIEW application)
Definition: cxPatientModelServiceNull.cpp:185
cx::PatientModelServiceNull::getDatas
virtual std::map< QString, DataPtr > getDatas(DataFilter filter) const
Definition: cxPatientModelServiceNull.cpp:37
cx::PatientModelServiceNull::addLandmark
virtual QString addLandmark()
Definition: cxPatientModelServiceNull.cpp:145
cxActiveData.h
cx::PatientModelService::DataFilter
DataFilter
Definition: cxPatientModelService.h:91
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxImage.h
cx::PatientModelServiceNull::removeData
virtual void removeData(QString uid)
Definition: cxPatientModelServiceNull.cpp:114
cx::PatientModelServiceNull::getPatientLandmarks
virtual LandmarksPtr getPatientLandmarks() const
landmark defined in patient space
Definition: cxPatientModelServiceNull.cpp:51
cx::PatientModelServiceNull::deleteLandmarks
virtual void deleteLandmarks()
Definition: cxPatientModelServiceNull.cpp:151
cx::PatientModelServiceNull::getLandmarkProperties
virtual std::map< QString, LandmarkProperty > getLandmarkProperties() const
Definition: cxPatientModelServiceNull.cpp:58
cx::PatientModelServiceNull::getPresetTransferFunctions3D
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const
Definition: cxPatientModelServiceNull.cpp:119
cxPatientModelServiceNull.h
cx::PatientModelServiceNull::getStreams
virtual std::map< QString, cx::VideoSourcePtr > getStreams() const
Definition: cxPatientModelServiceNull.cpp:85
cx::PatientModelServiceNull::getChildren
virtual std::map< QString, DataPtr > getChildren(QString parent_uid, QString of_type="") const
Definition: cxPatientModelServiceNull.cpp:44
cx::PatientModelServiceNull::exportPatient
virtual void exportPatient(PATIENT_COORDINATE_SYSTEM externalSpace)
Definition: cxPatientModelServiceNull.cpp:109
cx::PatientModelServiceNull::makeAvailable
virtual void makeAvailable(const QString &uid, bool available)
Exclude this data from getDatas()
Definition: cxPatientModelServiceNull.cpp:80
cx::PatientModelServiceNull::isNull
virtual bool isNull()
Definition: cxPatientModelServiceNull.cpp:74
cx::RegistrationHistory::getNullObject
static RegistrationHistoryPtr getNullObject()
Definition: cxRegistrationTransform.cpp:209
cx::RegistrationHistoryPtr
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
Definition: cxDataManager.h:37
cx::PatientModelServiceNull::getClinicalApplication
virtual CLINICAL_VIEW getClinicalApplication() const
Definition: cxPatientModelServiceNull.cpp:180
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::PresetTransferFunctions3DPtr
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
Definition: cxDataManager.h:36
cx::PatientModelServiceNull::importData
virtual DataPtr importData(QString fileName, QString &infoText)
Definition: cxPatientModelServiceNull.cpp:103
cx::PatientModelServiceNull::createData
virtual DataPtr createData(QString type, QString uid, QString name="")
Definition: cxPatientModelServiceNull.cpp:32
cx::PatientModelServiceNull::insertData
virtual void insertData(DataPtr data, bool overWrite=false)
Definition: cxPatientModelServiceNull.cpp:27
cx::ActiveData::getNullObject
static ActiveDataPtr getNullObject()
Definition: cxActiveData.cpp:246
cx::PatientModelServiceNull::getCenter
virtual Vector3D getCenter() const
current common center point for user viewing.
Definition: cxPatientModelServiceNull.cpp:130
cxRegistrationTransform.h
cx::PatientModelServiceNull::setLandmarkActive
virtual void setLandmarkActive(QString uid, bool active)
Definition: cxPatientModelServiceNull.cpp:156
cx::LandmarksPtr
boost::shared_ptr< class Landmarks > LandmarksPtr
Definition: cxData.h:41
cx::PatientModelServiceNull::get_rMpr_History
virtual RegistrationHistoryPtr get_rMpr_History() const
Definition: cxPatientModelServiceNull.cpp:168
cx::PatientModelServiceNull::autoSave
virtual void autoSave()
Definition: cxPatientModelServiceNull.cpp:69
cx::OperatingTable
The OperatingTable class.
Definition: cxPatientModelService.h:54
cx::PatientModelServiceNull::getActivePatientFolder
virtual QString getActivePatientFolder() const
Definition: cxPatientModelServiceNull.cpp:91
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
cx::PatientModelServiceNull::isPatientValid
virtual bool isPatientValid() const
Definition: cxPatientModelServiceNull.cpp:97
cx::PatientModelServiceNull::setOperatingTable
void setOperatingTable(const OperatingTable &ot)
Definition: cxPatientModelServiceNull.cpp:135
cx::PatientModelServiceNull::setLandmarkName
virtual void setLandmarkName(QString uid, QString name)
Definition: cxPatientModelServiceNull.cpp:64
cx::Vector3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
cx::PatientModelServiceNull::setCenter
virtual void setCenter(const Vector3D &center)
Definition: cxPatientModelServiceNull.cpp:125
cxLandmark.h
cx::PatientModelServiceNull::getOperatingTable
OperatingTable getOperatingTable() const
Definition: cxPatientModelServiceNull.cpp:140
cx::PatientModelServiceNull::PatientModelServiceNull
PatientModelServiceNull()
Definition: cxPatientModelServiceNull.cpp:24