Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkTotalSegmentatorToolGUI.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkTotalSegmentatorToolGUI_h_Included
14 #define QmitkTotalSegmentatorToolGUI_h_Included
15 
17 #include "ui_QmitkTotalSegmentatorGUIControls.h"
19 #include <QMessageBox>
20 #include <mitkIPreferences.h>
27 /*
28  \ingroup org_mitk_gui_qt_interactivesegmentation_internal
29  \brief GUI for mitk::TotalSegmentatorTool.
30  \sa mitk::
31 */
33 {
34  Q_OBJECT
35 
36 public:
38  itkFactorylessNewMacro(Self);
39  itkCloneMacro(Self);
40 
41 protected slots:
42 
46  void OnPreviewBtnClicked();
47 
48 protected:
50  ~QmitkTotalSegmentatorToolGUI() override;
51 
52  void ConnectNewTool(mitk::SegWithPreviewTool *newTool) override;
53  void InitializeUI(QBoxLayout *mainLayout) override;
54 
58  void EnableAll(bool);
59 
63  void ShowErrorMessage(const std::string &, QMessageBox::Icon = QMessageBox::Critical);
64 
68  void WriteStatusMessage(const QString &);
69 
73  void WriteErrorMessage(const QString &);
74 
78  void OnPreferenceChangedEvent(const mitk::IPreferences::ChangeEvent &);
79 
80  Ui_QmitkTotalSegmentatorToolGUIControls m_Controls;
81  bool m_FirstPreviewComputation = true;
82  EnableConfirmSegBtnFunctionType m_SuperclassEnableConfirmSegBtnFnc;
84  const QStringList VALID_TASKS = {
85  "total",
86  "total_mr",
87  "cerebral_bleed",
88  "hip_implant",
89  "coronary_arteries",
90  "body",
91  "lung_vessels",
92  "pleural_pericard_effusion"
93  "head_glands_cavities",
94  "head_muscles",
95  "headneck_bones_vessels",
96  "headneck_muscles",
97  "liver_vessels"
98  };
99 };
100 #endif
mitk::SegWithPreviewTool
Base class for any auto segmentation tool that provides a preview of the new segmentation.
Definition: mitkSegWithPreviewTool.h:38
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
QmitkMultiLabelSegWithPreviewToolGUIBase.h
QmitkTotalSegmentatorToolGUI::m_Controls
Ui_QmitkTotalSegmentatorToolGUIControls m_Controls
Definition: QmitkTotalSegmentatorToolGUI.h:80
mitk::IPreferences::ChangeEvent
Event object sent on IPreferences::OnPropertyChanged events.
Definition: mitkIPreferences.h:56
QmitkMultiLabelSegWithPreviewToolGUIBase::InitializeUI
void InitializeUI(QBoxLayout *mainLayout) override
QmitkTotalSegmentatorToolGUI::m_SuperclassEnableConfirmSegBtnFnc
EnableConfirmSegBtnFunctionType m_SuperclassEnableConfirmSegBtnFnc
Definition: QmitkTotalSegmentatorToolGUI.h:82
QmitkTotalSegmentatorToolGUI::m_Preferences
mitk::IPreferences * m_Preferences
Definition: QmitkTotalSegmentatorToolGUI.h:83
QmitkMultiLabelSegWithPreviewToolGUIBase::mitkClassMacro
mitkClassMacro(QmitkMultiLabelSegWithPreviewToolGUIBase, QmitkSegWithPreviewToolGUIBase)
MitkSegmentationUIExports.h
mitkIPreferences.h
mitk::IPreferences
Interface to application preferences.
Definition: mitkIPreferences.h:50
QmitkTotalSegmentatorToolGUI
Installer class for TotalSegmentator Tool. Class specifies the virtual environment name,...
Definition: QmitkTotalSegmentatorToolGUI.h:32
QmitkMultiLabelSegWithPreviewToolGUIBase
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
Definition: QmitkMultiLabelSegWithPreviewToolGUIBase.h:28
QmitkSegWithPreviewToolGUIBase::ConnectNewTool
virtual void ConnectNewTool(mitk::SegWithPreviewTool *newTool)