Fraxinus  2023.01.05-dev+develop.0da12
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 */
void insertWidgetAtTop(QWidget *newWidget)
Widget used as a tab in the ContexDockWidget for patient registration.
Widget for performing a fast and aprox landmark based patient registration, using only the matrix tra...
void addTab(BaseWidget *newTab, QString newTabName)
Interface for making widgets with a hierarchy of tabs.
Widget for performing landmark based image registration using only the translation part of the matrix...
Widget for registrating the orientation part of a fast registration.
Namespace for all CustusX production code.