CustusX  2023.01.05-dev+develop.0da12
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
virtual void setMovingData(DataPtr data)
Null Object Pattern for Registration service.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual void updatePatientRegistration(Transform3D rMpr_new, QString description)
virtual void addImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
virtual void doFastRegistration_Orientation(const Transform3D &tMtm, const Transform3D &prMt)
virtual void setLastRegistrationTime(QDateTime time)
virtual void applyPatientOrientation(const Transform3D &tMtm, const Transform3D &prMt)
virtual void doImageRegistration(bool translationOnly)
boost::shared_ptr< class Data > DataPtr
virtual void updateImage2ImageRegistration(Transform3D delta_pre_rMd, QString description)
Registration services.
virtual void addPatientRegistration(Transform3D rMpr_new, QString description)
A registration event and its transform.
virtual void setFixedData(DataPtr data)
virtual void doFastRegistration_Translation()
use the landmarks in master image and patient to perform a translation-only landmark registration ...
virtual void doPatientRegistration()
registrates the fixed image to the patient
virtual void updateRegistration(QDateTime oldTime, RegistrationTransform deltaTransform, DataPtr data, QString masterFrame)
Namespace for all CustusX production code.