Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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
18
#include "
mitkCommon.h
"
19
#include "
mitkTool.h
"
20
21
#include <QWidget>
22
33
class
MITKSEGMENTATIONUI_EXPORT
QmitkToolGUI
:
public
QWidget,
public
itk::Object
34
{
35
Q_OBJECT
36
37
public
:
38
mitkClassMacroItkParent
(
QmitkToolGUI
, itk::Object);
39
40
void
SetTool(
mitk::Tool
*tool);
41
42
// just make sure ITK won't take care of anything (especially not destruction)
43
void
Register()
const override
;
44
void
UnRegister()
const
ITK_NOEXCEPT ITK_OVERRIDE;
45
void
SetReferenceCount(
int
)
override
;
46
47
~
QmitkToolGUI
()
override
;
48
49
signals:
50
void
NewToolAssociated(
mitk::Tool
*);
51
52
protected
:
53
QmitkToolGUI
() =
default
;
54
55
mitk::Tool::Pointer
m_Tool
;
56
57
virtual
void
BusyStateChanged
(
bool
){};
58
};
59
60
#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:33
QmitkToolGUI::BusyStateChanged
virtual void BusyStateChanged(bool)
Definition:
QmitkToolGUI.h:57
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:55
src
MITK
Modules
SegmentationUI
Qmitk
QmitkToolGUI.h
Generated on Tue Dec 24 2024 02:12:30 for Medical Imaging Interaction Toolkit by
1.8.17