Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkToolGUI.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 QmitkToolGUI_h
14 #define QmitkToolGUI_h
15 
17 
18 #include <mitkCommon.h>
19 #include <mitkTool.h>
20 
21 #include <QWidget>
22 
24 
31 class MITKSEGMENTATIONUI_EXPORT QmitkToolGUI : public QWidget, public itk::Object
32 {
33  Q_OBJECT
34 
35 public:
37 
39  void SetTool(mitk::Tool *tool);
40 
50 
53 
55  void Register() const override;
57  void UnRegister() const ITK_NOEXCEPT ITK_OVERRIDE;
59  void SetReferenceCount(int) override;
60 
61  ~QmitkToolGUI() override;
62 
63 signals:
65  void NewToolAssociated(mitk::Tool *);
66 
67 protected:
68  QmitkToolGUI() = default;
69 
70  mitk::Tool::Pointer m_Tool;
71  QmitkMultiLabelInspector *m_MultiLabelInspector = nullptr;
72 
74  virtual void BusyStateChanged(bool){};
75 };
76 
77 #endif
#define MITKSEGMENTATIONUI_EXPORT
Inspector widget providing a tree view on labels and groups of a MultiLabelSegmentation instance.
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
mitkClassMacroItkParent(QmitkToolGUI, itk::Object)
void SetTool(mitk::Tool *tool)
Associates the given tool with this GUI, emitting NewToolAssociated.
QmitkMultiLabelInspector * GetMultiLabelInspector() const
Returns the inspector associated with this GUI, or null if none.
void Register() const override
Intentional no-op; prevents ITK reference counting from interfering with Qt ownership.
void UnRegister() const ITK_NOEXCEPT ITK_OVERRIDE
Intentional no-op; prevents ITK reference counting from interfering with Qt ownership.
void SetMultiLabelInspector(QmitkMultiLabelInspector *inspector)
Provides the segmentation view's label inspector to this GUI.
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:80
Find image slices visible on a given plane.