NorMIT-nav  22.09
An IGT application
cxRegistrationServiceNull.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 #ifndef CXREGISTRATIONSERVICENULL_H
12 #define CXREGISTRATIONSERVICENULL_H
13 
14 #include "cxResourceExport.h"
15 
16 #include "cxRegistrationService.h"
17 
18 namespace cx
19 {
20 
29 {
30 
31 public:
34  virtual void setMovingData(DataPtr data);
35  virtual void setFixedData(DataPtr data);
36  virtual DataPtr getMovingData();
37  virtual DataPtr getFixedData();
38 
39  virtual void doPatientRegistration();
40  virtual void doFastRegistration_Translation();
41  virtual void doFastRegistration_Orientation(const Transform3D& tMtm, const Transform3D &prMt);
42  virtual void doImageRegistration(bool translationOnly);
43  virtual void addImage2ImageRegistration(Transform3D delta_pre_rMd, QString description);
44  virtual void updateImage2ImageRegistration(Transform3D delta_pre_rMd, QString description);
45  virtual void addPatientRegistration(Transform3D rMpr_new, QString description);
46  virtual void updatePatientRegistration(Transform3D rMpr_new, QString description);
47  virtual void applyPatientOrientation(const Transform3D &tMtm, const Transform3D &prMt);
48 
49  virtual QDateTime getLastRegistrationTime();
50  virtual void setLastRegistrationTime(QDateTime time);
51 
52  virtual void updateRegistration(QDateTime oldTime, RegistrationTransform deltaTransform, DataPtr data, QString masterFrame);
53 
54  virtual bool isNull();
55 private:
56  void printWarning();
57 };
58 } // namespace cx
59 #endif // CXREGISTRATIONSERVICENULL_H
cx::RegistrationServiceNull::addPatientRegistration
virtual void addPatientRegistration(Transform3D rMpr_new, QString description)
Definition: cxRegistrationServiceNull.cpp:74
cx::RegistrationServiceNull::setLastRegistrationTime
virtual void setLastRegistrationTime(QDateTime time)
Definition: cxRegistrationServiceNull.cpp:94
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::RegistrationServiceNull::updateImage2ImageRegistration
virtual void updateImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
Definition: cxRegistrationServiceNull.cpp:69
cx::RegistrationServiceNull::setFixedData
virtual void setFixedData(DataPtr data)
Definition: cxRegistrationServiceNull.cpp:29
cx::RegistrationServiceNull::doFastRegistration_Orientation
virtual void doFastRegistration_Orientation(const Transform3D &tMtm, const Transform3D &prMt)
Definition: cxRegistrationServiceNull.cpp:54
cx::RegistrationServiceNull::getFixedData
virtual DataPtr getFixedData()
Definition: cxRegistrationServiceNull.cpp:39
cx::RegistrationServiceNull
Null Object Pattern for Registration service.
Definition: cxRegistrationServiceNull.h:28
cx::RegistrationServiceNull::updateRegistration
virtual void updateRegistration(QDateTime oldTime, RegistrationTransform deltaTransform, DataPtr data, QString masterFrame)
Definition: cxRegistrationServiceNull.cpp:99
cx::RegistrationService
Registration services.
Definition: cxRegistrationService.h:45
cx::RegistrationServiceNull::doPatientRegistration
virtual void doPatientRegistration()
registrates the fixed image to the patient
Definition: cxRegistrationServiceNull.cpp:44
cx::RegistrationServiceNull::getLastRegistrationTime
virtual QDateTime getLastRegistrationTime()
Definition: cxRegistrationServiceNull.cpp:89
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::RegistrationServiceNull::doImageRegistration
virtual void doImageRegistration(bool translationOnly)
Definition: cxRegistrationServiceNull.cpp:59
cx::RegistrationServiceNull::applyPatientOrientation
virtual void applyPatientOrientation(const Transform3D &tMtm, const Transform3D &prMt)
Definition: cxRegistrationServiceNull.cpp:84
cx::RegistrationServiceNull::isNull
virtual bool isNull()
Definition: cxRegistrationServiceNull.cpp:104
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::RegistrationServiceNull::doFastRegistration_Translation
virtual void doFastRegistration_Translation()
use the landmarks in master image and patient to perform a translation-only landmark registration
Definition: cxRegistrationServiceNull.cpp:49
cx::RegistrationServiceNull::updatePatientRegistration
virtual void updatePatientRegistration(Transform3D rMpr_new, QString description)
Definition: cxRegistrationServiceNull.cpp:79
cx::RegistrationServiceNull::getMovingData
virtual DataPtr getMovingData()
Definition: cxRegistrationServiceNull.cpp:34
cx::RegistrationServiceNull::setMovingData
virtual void setMovingData(DataPtr data)
Definition: cxRegistrationServiceNull.cpp:24
cx::RegistrationServiceNull::addImage2ImageRegistration
virtual void addImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
Definition: cxRegistrationServiceNull.cpp:64
cx::RegistrationTransform
A registration event and its transform.
Definition: cxRegistrationTransform.h:39
cxRegistrationService.h
cx::RegistrationServiceNull::RegistrationServiceNull
RegistrationServiceNull()
Definition: cxRegistrationServiceNull.cpp:20
cx::RegistrationServiceNull::~RegistrationServiceNull
~RegistrationServiceNull()
Definition: cxRegistrationServiceNull.h:33