Medical Imaging Interaction Toolkit  2026.06.00
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
14 #define QmitkTotalSegmentatorToolGUI_h
15 
17 
18 #include <mitkIPreferences.h>
19 
21 
22 #include <memory>
23 #include <string>
24 #include <vector>
25 
26 namespace Ui
27 {
29 }
30 
31 namespace mitk
32 {
33  class TotalSegmentatorTool;
34 }
35 
49 {
50  Q_OBJECT
51 
52 public:
54  itkFactorylessNewMacro(Self);
55 
56 protected slots:
57 
61 
62 protected:
65 
66  void InitializeUI(QBoxLayout* mainLayout) override;
67 
68 private:
69  mitk::TotalSegmentatorTool* GetTool();
70 
73  void RefreshInstallState();
74 
77  void PopulateTasks();
78 
81  void UpdateRunButtonState();
82 
86  bool RunProcess(const std::string& executable, const std::vector<std::string>& args);
87 
88  void SetStatus(const QString& message, bool isError = false);
89 
90  void OnPreferenceChangedEvent(const mitk::IPreferences::ChangeEvent& event);
91 
92  std::unique_ptr<Ui::QmitkTotalSegmentatorToolGUI> m_Ui;
93  mitk::IPreferences* m_Preferences = nullptr;
94 };
95 
96 #endif
#define MITKPYTHONSEGMENTATIONUI_EXPORT
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
GUI for mitk::TotalSegmentatorTool.
mitkClassMacro(QmitkTotalSegmentatorToolGUI, QmitkMultiLabelSegWithPreviewToolGUIBase)
void InitializeUI(QBoxLayout *mainLayout) override
~QmitkTotalSegmentatorToolGUI() override
Event object sent on IPreferences::OnPropertyChanged events.
Interface to application preferences.
TotalSegmentator segmentation tool.
Find image slices visible on a given plane.