Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkGrowCutToolGUI.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 QmitkGrowCutToolGUI_h
14 #define QmitkGrowCutToolGUI_h
15 
17 
19 #include <memory>
20 
21 namespace Ui
22 {
23  class QmitkGrowCutToolWidgetControls;
24 }
25 
36 {
37  Q_OBJECT
38 
39 public:
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
44 protected slots:
45 
47 
48 private slots:
49 
50  void OnAdvancedSettingsButtonToggled(bool toggled);
51 
52 protected:
55 
56  void ConnectNewTool(mitk::SegWithPreviewTool *newTool) override;
57 
58  void InitializeUI(QBoxLayout *mainLayout) override;
59 
61 
63 
64  void EnableWidgets(bool enabled) override;
65 
66  std::unique_ptr<Ui::QmitkGrowCutToolWidgetControls> m_Controls;
67 
68  bool m_FirstPreviewComputation = false;
69 };
70 
71 #endif
#define MITKSEGMENTATIONUI_EXPORT
GUI for the GrowCut segmentation tool.
void SetValueOfDistancePenaltyDoubleSpinBox(int val)
void SetValueOfDistancePenaltySlider(double val)
~QmitkGrowCutToolGUI() override
mitkClassMacro(QmitkGrowCutToolGUI, QmitkMultiLabelSegWithPreviewToolGUIBase)
void ConnectNewTool(mitk::SegWithPreviewTool *newTool) override
std::unique_ptr< Ui::QmitkGrowCutToolWidgetControls > m_Controls
void InitializeUI(QBoxLayout *mainLayout) override
void EnableWidgets(bool enabled) override
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
Base class for any auto segmentation tool that provides a preview of the new segmentation.