Fraxinus  18.10
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 "cxImageLandmarksWidget.h"
17 
22 
23 #include "cxTabbedWidget.h"
24 
25 namespace cx
26 {
27 
29 {
30  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Image to Image Landmark Registration");
31  ImageLandmarksWidget* imageLandmarksWidget = new ImageLandmarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_image_image_landmarks_widget", "Image Registration");
32  LandmarkImage2ImageRegistrationWidget* image2imageRegistrationWidget = new LandmarkImage2ImageRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_image_register_widget", "Image2Image Registration");
33 
34  tabWidget->addTab(imageLandmarksWidget, "Image landmarks");
35  tabWidget->addTab(image2imageRegistrationWidget, "Register");
36 
37  return tabWidget;
38 }
39 
41 {
42  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Image to Patient Landmark Registration");
43  ImageLandmarksWidget* imageLandmarksWidget = new ImageLandmarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_image_landmarks_widget", "Image Landmarks", true);
44  PatientLandMarksWidget* patientLandmarksWidget = new PatientLandMarksWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_patient_landmarks_widget", "Patient Landmarks");
45 
46  LandmarkPatientRegistrationWidget* registrationWidget = new LandmarkPatientRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_landmark_image_to_patient_registration_widget", "Image To Patient Registration");
47 
48  tabWidget->addTab(imageLandmarksWidget, "Image landmarks");
49  tabWidget->addTab(patientLandmarksWidget, "Patient landmarks");
50  tabWidget->addTab(registrationWidget, "Register");
51 
52  return tabWidget;
53 }
54 
56 {
57  TabbedWidget* tabWidget = new TabbedWidget(NULL, this->getWidgetName(), "Fast Landmark Registration");
59  FastImageRegistrationWidget* imageLandmarkWidget = new FastImageRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_fast_landmark_image_to_patient_image_landmarks_widget", "Fast Image Registration - Landmarks", true);
60  FastPatientRegistrationWidget* patientLandmarkWidget = new FastPatientRegistrationWidget(mServices, tabWidget);
61 
62  LandmarkPatientRegistrationWidget* registrationWidget = new FastLandmarkPatientRegistrationWidget(mServices, tabWidget, "org_custusx_registration_method_fast_landmark_image_to_patient_registration_widget", "Fast Image Registration");
63 
64  tabWidget->addTab(orientationWidget, "Orientation");
65  tabWidget->addTab(imageLandmarkWidget, "Image landmark(s)");
66  tabWidget->addTab(patientLandmarkWidget, "Patient landmark(s)");
67  tabWidget->addTab(registrationWidget, "Register");
68 
69  return tabWidget;
70 }
71 
72 
73 } /* namespace cx */
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.