Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkOtsuTool3DGUI.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 QmitkOtsuTool3DGUI_h
14 #define QmitkOtsuTool3DGUI_h
15 
17 
18 #include "ui_QmitkOtsuToolWidgetControls.h"
19 
21 
32 {
33  Q_OBJECT
34 
35 public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40 protected slots :
41 
42  void OnPreviewBtnClicked();
43 
44  void OnRegionSpinboxChanged(int);
45 
46 private slots:
47 
48  void OnAdvancedSettingsButtonToggled(bool toggled);
49 
50 protected:
52  ~QmitkOtsuTool3DGUI() = default;
53 
54  void ConnectNewTool(mitk::SegWithPreviewTool* newTool) override;
55  void InitializeUI(QBoxLayout* mainLayout) override;
56 
57  void EnableWidgets(bool enabled) override;
58 
59  Ui_QmitkOtsuToolWidgetControls m_Controls;
60 
61  bool m_FirstPreviewComputation = true;
62  EnableConfirmSegBtnFunctionType m_SuperclassEnableConfirmSegBtnFnc;
63 };
64 
65 #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
QmitkOtsuTool3DGUI::m_SuperclassEnableConfirmSegBtnFnc
EnableConfirmSegBtnFunctionType m_SuperclassEnableConfirmSegBtnFnc
Definition: QmitkOtsuTool3DGUI.h:62
QmitkMultiLabelSegWithPreviewToolGUIBase::InitializeUI
void InitializeUI(QBoxLayout *mainLayout) override
QmitkMultiLabelSegWithPreviewToolGUIBase::EnableWidgets
void EnableWidgets(bool enabled) override
QmitkOtsuTool3DGUI::m_Controls
Ui_QmitkOtsuToolWidgetControls m_Controls
Definition: QmitkOtsuTool3DGUI.h:59
QmitkMultiLabelSegWithPreviewToolGUIBase::mitkClassMacro
mitkClassMacro(QmitkMultiLabelSegWithPreviewToolGUIBase, QmitkSegWithPreviewToolGUIBase)
MitkSegmentationUIExports.h
QmitkOtsuTool3DGUI
GUI for mitk::OtsuTool3D.
Definition: QmitkOtsuTool3DGUI.h:31
QmitkMultiLabelSegWithPreviewToolGUIBase
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
Definition: QmitkMultiLabelSegWithPreviewToolGUIBase.h:28
QmitkSegWithPreviewToolGUIBase::ConnectNewTool
virtual void ConnectNewTool(mitk::SegWithPreviewTool *newTool)