Medical Imaging Interaction Toolkit
2024.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
16
#include <
MitkSegmentationUIExports.h
>
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
:
37
mitkClassMacroItkParent
(
QmitkToolGUI
, itk::Object);
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
void
NewToolAssociated(
mitk::Tool
*);
50
51
protected
:
52
QmitkToolGUI
() =
default
;
53
54
mitk::Tool::Pointer
m_Tool
;
55
56
virtual
void
BusyStateChanged
(
bool
){};
57
};
58
59
#endif
mitkTool.h
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition:
MitkSegmentationUIExports.h:15
QmitkToolGUI
Base class for GUIs belonging to mitk::Tool classes.
Definition:
QmitkToolGUI.h:32
QmitkToolGUI::BusyStateChanged
virtual void BusyStateChanged(bool)
Definition:
QmitkToolGUI.h:56
itk::SmartPointer< Self >
mitk::Tool
Base class of all tools used by mitk::ToolManager.
Definition:
mitkTool.h:83
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition:
mitkCommon.h:45
mitkCommon.h
MitkSegmentationUIExports.h
QmitkToolGUI::m_Tool
mitk::Tool::Pointer m_Tool
Definition:
QmitkToolGUI.h:54
src
MITK
Modules
SegmentationUI
Qmitk
QmitkToolGUI.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17