NorMIT-nav  22.09
An IGT application
cxRegistrationMethodLandmarkService.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 <QLabel>
14 #include "cxImageLandmarksWidget.h"
18 
23 
24 #include "cxTabbedWidget.h"
25 
26 namespace cx
27 {
28 
30 {
31  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Image to Image Landmark Registration");
32  ImageLandmarksWidget* imageLandmarksWidget = new ImageLandmarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_image_image_landmarks_widget", "Image Registration");
33  LandmarkImage2ImageRegistrationWidget* image2imageRegistrationWidget = new LandmarkImage2ImageRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_image_register_widget", "Image2Image Registration");
34 
35  tabWidget->addTab(imageLandmarksWidget, "Image landmarks");
36  tabWidget->addTab(image2imageRegistrationWidget, "Register");
37 
38  return tabWidget;
39 }
40 
42 {
43  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Image to Patient Landmark Registration");
44  ImageLandmarksWidget* imageLandmarksWidget = new ImageLandmarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_image_landmarks_widget", "Image Landmarks", true);
45  PatientLandMarksWidget* patientLandmarksWidget = new PatientLandMarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_patient_landmarks_widget", "Patient Landmarks");
46 
47  LandmarkPatientRegistrationWidget* registrationWidget = new LandmarkPatientRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_registration_widget", "Image To Patient Registration");
48 
49  tabWidget->addTab(imageLandmarksWidget, "Image landmarks");
50  tabWidget->addTab(patientLandmarksWidget, "Patient landmarks");
51  tabWidget->addTab(registrationWidget, "Register");
52 
53  return tabWidget;
54 }
55 
57 {
58  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Fast Landmark Registration");
60  FastImageRegistrationWidget* imageLandmarkWidget = new FastImageRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_fast_landmark_image_to_patient_image_landmarks_widget", "Fast Image Registration - Landmarks", true);
61  FastPatientRegistrationWidget* patientLandmarkWidget = new FastPatientRegistrationWidget(mServices, tabWidget);
62 
63  LandmarkPatientRegistrationWidget* registrationWidget = new FastLandmarkPatientRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_fast_landmark_image_to_patient_registration_widget", "Fast Image Registration");
64 
65  QLabel* heading = new QLabel(tabWidget);
66  heading->setText("<font color=red>Intraoperative registration</font>");
67  QFont font = heading->font();
68  font.setBold(true);
69  font.setPointSize(font.pointSize() + 2);
70  heading->setFont(font);
71  tabWidget->insertWidgetAtTop(heading);
72  tabWidget->addTab(orientationWidget, "Orientation");
73  tabWidget->addTab(imageLandmarkWidget, "Image landmark(s)");
74  tabWidget->addTab(patientLandmarkWidget, "Patient landmark(s)");
75  tabWidget->addTab(registrationWidget, "Register");
76 
77  return tabWidget;
78 }
79 
80 
81 } /* namespace cx */
cxLandmarkPatientRegistrationWidget.h
cx::ImageLandmarksWidget
Definition: cxImageLandmarksWidget.h:45
cxLandmarkImage2ImageRegistrationWidget.h
cx::RegistrationMethodFastLandmarkImageToPatientService::getWidgetName
virtual QString getWidgetName()
Definition: cxRegistrationMethodLandmarkService.h:80
cx::TabbedWidget::addTab
void addTab(BaseWidget *newTab, QString newTabName)
Definition: cxTabbedWidget.cpp:37
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::FastOrientationRegistrationWidget
Widget for registrating the orientation part of a fast registration.
Definition: cxFastOrientationRegistrationWidget.h:40
cxFastImageRegistrationWidget.h
cxImageLandmarksWidget.h
cxFastOrientationRegistrationWidget.h
cxFastPatientRegistrationWidget.h
cx::TabbedWidget
Interface for making widgets with a hierarchy of tabs.
Definition: cxTabbedWidget.h:34
cx::RegistrationMethodLandmarkImageToImageService::createWidget
virtual QWidget * createWidget()
Definition: cxRegistrationMethodLandmarkService.cpp:29
cx::FastImageRegistrationWidget
Widget for performing landmark based image registration using only the translation part of the matrix...
Definition: cxFastImageRegistrationWidget.h:36
cxFastLandmarkPatientRegistrationWidget.h
cx::LandmarkPatientRegistrationWidget
Definition: cxLandmarkPatientRegistrationWidget.h:42
cx::FastLandmarkPatientRegistrationWidget
Definition: cxFastLandmarkPatientRegistrationWidget.h:41
cxTabbedWidget.h
cx::RegistrationMethodLandmarkImageToPatientService::getWidgetName
virtual QString getWidgetName()
Definition: cxRegistrationMethodLandmarkService.h:59
cxRegistrationMethodLandmarkService.h
cx::TabbedWidget::insertWidgetAtTop
void insertWidgetAtTop(QWidget *newWidget)
Definition: cxTabbedWidget.cpp:44
cxPatientLandMarksWidget.h
cx::RegistrationMethodFastLandmarkImageToPatientService::createWidget
virtual QWidget * createWidget()
Definition: cxRegistrationMethodLandmarkService.cpp:56
cx::FastPatientRegistrationWidget
Widget for performing a fast and aprox landmark based patient registration, using only the matrix tra...
Definition: cxFastPatientRegistrationWidget.h:35
cx::LandmarkImage2ImageRegistrationWidget
Definition: cxLandmarkImage2ImageRegistrationWidget.h:39
cx::PatientLandMarksWidget
Widget used as a tab in the ContexDockWidget for patient registration.
Definition: cxPatientLandMarksWidget.h:31
cx::RegistrationMethodLandmarkImageToPatientService::createWidget
virtual QWidget * createWidget()
Definition: cxRegistrationMethodLandmarkService.cpp:41
cx::RegistrationMethodService::mServices
RegServicesPtr mServices
Definition: cxRegistrationMethodService.h:50
cx::RegistrationMethodLandmarkImageToImageService::getWidgetName
virtual QString getWidgetName()
Definition: cxRegistrationMethodLandmarkService.h:38