Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
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_Included
14 #define QmitkToolGUI_h_Included
15 
17 #include <qwidget.h>
18 
19 #include "mitkCommon.h"
20 #include "mitkTool.h"
21 
32 class MITKSEGMENTATIONUI_EXPORT QmitkToolGUI : public QWidget, public itk::Object
33 {
34  Q_OBJECT
35 
36 public:
38 
39  void SetTool(mitk::Tool *tool);
40 
41  // just make sure ITK won't take care of anything (especially not destruction)
42  void Register() const override;
43  void UnRegister() const ITK_NOEXCEPT ITK_OVERRIDE;
44  void SetReferenceCount(int) override;
45 
46  ~QmitkToolGUI() override;
47 
48 signals:
49 
50  void NewToolAssociated(mitk::Tool *);
51 
52 public slots:
53 
54 protected slots:
55 
56 protected:
58 
59  virtual void BusyStateChanged(bool){};
60 };
61 
62 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:86
mitk::Tool::Pointer m_Tool
Definition: QmitkToolGUI.h:57
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
itk::SmartPointer< Self > Pointer
virtual void BusyStateChanged(bool)
Definition: QmitkToolGUI.h:59
#define MITKSEGMENTATIONUI_EXPORT