Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
QmitkBinaryThresholdToolGUIBase.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 QmitkBinaryThresholdToolGUIBase_h
14
#define QmitkBinaryThresholdToolGUIBase_h
15
16
#include "
QmitkSegWithPreviewToolGUIBase.h
"
17
#include "ctkRangeWidget.h"
18
#include "ctkSliderWidget.h"
19
20
#include <
MitkSegmentationUIExports.h
>
21
28
class
MITKSEGMENTATIONUI_EXPORT
QmitkBinaryThresholdToolGUIBase
:
public
QmitkSegWithPreviewToolGUIBase
29
{
30
Q_OBJECT
31
32
public
:
33
mitkClassMacro
(
QmitkBinaryThresholdToolGUIBase
,
QmitkSegWithPreviewToolGUIBase
);
34
35
void
OnThresholdingIntervalBordersChanged(
double
lower,
double
upper,
bool
isFloat);
36
void
OnThresholdingValuesChanged(
mitk::ScalarType
lower,
mitk::ScalarType
upper);
37
38
protected
slots:
39
40
void
OnThresholdRangeChanged(
double
min,
double
max);
41
void
OnThresholdSliderChanged(
double
value);
42
43
protected
:
44
QmitkBinaryThresholdToolGUIBase
(
bool
ulMode);
45
~
QmitkBinaryThresholdToolGUIBase
()
override
;
46
47
void
DisconnectOldTool
(
mitk::SegWithPreviewTool
* oldTool)
override
;
48
void
ConnectNewTool
(
mitk::SegWithPreviewTool
* newTool)
override
;
49
void
InitializeUI
(QBoxLayout* mainLayout)
override
;
50
51
void
BusyStateChanged
(
bool
)
override
;
52
53
ctkRangeWidget* m_ThresholdRange =
nullptr
;
54
ctkSliderWidget* m_ThresholdSlider =
nullptr
;
55
58
bool
m_ULMode
;
59
60
bool
m_InternalUpdate =
false
;
61
};
62
63
#endif
mitk::SegWithPreviewTool
Base class for any auto segmentation tool that provides a preview of the new segmentation.
Definition:
mitkSegWithPreviewTool.h:38
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition:
MitkSegmentationUIExports.h:15
QmitkSegWithPreviewToolGUIBase
GUI base clase for tools derived from mitk::SegWithPreviewTool.
Definition:
QmitkSegWithPreviewToolGUIBase.h:30
QmitkSegWithPreviewToolGUIBase::mitkClassMacro
mitkClassMacro(QmitkSegWithPreviewToolGUIBase, QmitkToolGUI)
QmitkSegWithPreviewToolGUIBase.h
QmitkSegWithPreviewToolGUIBase::DisconnectOldTool
virtual void DisconnectOldTool(mitk::SegWithPreviewTool *oldTool)
QmitkSegWithPreviewToolGUIBase::BusyStateChanged
void BusyStateChanged(bool isBusy) override
QmitkSegWithPreviewToolGUIBase::InitializeUI
virtual void InitializeUI(QBoxLayout *mainLayout)
QmitkBinaryThresholdToolGUIBase
Base GUI for mitk::BinaryThresholdTool.
Definition:
QmitkBinaryThresholdToolGUIBase.h:28
MitkSegmentationUIExports.h
QmitkBinaryThresholdToolGUIBase::m_ULMode
bool m_ULMode
Definition:
QmitkBinaryThresholdToolGUIBase.h:58
QmitkSegWithPreviewToolGUIBase::ConnectNewTool
virtual void ConnectNewTool(mitk::SegWithPreviewTool *newTool)
mitk::ScalarType
double ScalarType
Definition:
mitkNumericConstants.h:20
src
MITK
Modules
SegmentationUI
Qmitk
QmitkBinaryThresholdToolGUIBase.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17