Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
QmitknnInteractiveToolGUI.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 QmitknnInteractiveToolGUI_h
14 #define QmitknnInteractiveToolGUI_h
15 
17 #include <mitknnInteractiveTool.h>
19 
20 class QButtonGroup;
21 class QPushButton;
22 
23 namespace Ui
24 {
26 }
27 
29 {
30  Q_OBJECT
31 
32 public:
34  itkFactorylessNewMacro(Self);
35 
36 protected:
39 
42 
43  void InitializeUI(QBoxLayout* mainLayout) override;
46  void EnableInitializeButtons(bool enabled);
47 
48  void OnInitializeButtonToggled(bool checked);
51  void OnAutoRefineCheckBoxToggled(bool checked);
52  void OnAutoZoomCheckBoxToggled(bool checked);
54  void OnInteractorToggled(mitk::nnInteractive::InteractionType interactionType, bool checked);
56  void OnConfirmCleanUp(bool isConfirmed);
57 
59  void UncheckOtherInteractorButtons(QPushButton* interactorButton);
60 
62  bool Install();
63 
64 private:
65  Ui::QmitknnInteractiveToolGUI* m_Ui;
66  QButtonGroup* m_PromptTypeButtonGroup;
67  PromptType m_PromptType;
68  std::unordered_map<InteractionType, QPushButton*> m_InteractorButtons;
69 };
70 
71 #endif
#define MITKPYTHONSEGMENTATIONUI_EXPORT
GUI base clase for tools derived from mitk::SegWithPreviewTool.
void UncheckOtherInteractorButtons(QPushButton *interactorButton)
void OnAutoZoomCheckBoxToggled(bool checked)
~QmitknnInteractiveToolGUI() override
mitk::nnInteractiveTool * GetTool()
void OnInteractorToggled(mitk::nnInteractive::InteractionType interactionType, bool checked)
void InitializeUI(QBoxLayout *mainLayout) override
void OnConfirmCleanUp(bool isConfirmed)
void EnableInitializeButtons(bool enabled)
void OnInitializeButtonToggled(bool checked)
mitkClassMacro(QmitknnInteractiveToolGUI, QmitkSegWithPreviewToolGUIBase)
void OnAutoRefineCheckBoxToggled(bool checked)
InteractionType
Specifies the types of interactions available.
PromptType
Specifies the types of prompts used in nnInteractive.