Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkImageMaskingWidget.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 QmitkImageMaskingWidget_h
14
#define QmitkImageMaskingWidget_h
15
16
#include <
MitkSegmentationUIExports.h
>
17
18
#include <
mitkDataStorage.h
>
19
#include <
QmitkAbstractNodeSelectionWidget.h
>
20
21
#include <QWidget>
22
23
namespace
Ui
24
{
25
class
QmitkImageMaskingWidgetControls;
26
}
27
28
namespace
mitk
29
{
30
class
Image
;
31
class
DataStorage;
32
}
33
42
class
MITKSEGMENTATIONUI_EXPORT
QmitkImageMaskingWidget
:
public
QWidget
43
{
44
Q_OBJECT
45
46
public
:
47
49
explicit
QmitkImageMaskingWidget
(
mitk::DataStorage
* dataStorage, QWidget* parent =
nullptr
);
50
52
~
QmitkImageMaskingWidget
()
override
;
53
54
private
:
55
57
void
OnImageSelectionChanged(
QmitkAbstractNodeSelectionWidget::NodeList
/*nodes*/
);
58
60
void
OnSegSelectionChanged(
QmitkAbstractNodeSelectionWidget::NodeList
/*nodes*/
);
61
63
void
OnMaskImagePressed();
64
66
void
OnCustomValueButtonToggled(
bool
checked);
67
69
void
ConfigureWidgets();
70
void
EnableButtons(
bool
enable);
71
73
itk::SmartPointer<mitk::Image>
MaskImage(
itk::SmartPointer<mitk::Image>
referenceImage,
itk::SmartPointer<mitk::Image>
maskImage );
74
76
void
AddToDataStorage(
mitk::DataStorage::Pointer
dataStorage,
itk::SmartPointer<mitk::Image>
segmentation,
77
const
std::string& name,
mitk::DataNode::Pointer
parent =
nullptr
);
78
79
mitk::WeakPointer<mitk::DataStorage>
m_DataStorage;
80
Ui::QmitkImageMaskingWidgetControls* m_Controls;
81
};
82
83
#endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition:
MitkSegmentationUIExports.h:15
mitkDataStorage.h
itk::SmartPointer
Definition:
mitkIFileReader.h:30
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
Ui
Definition:
BlueBerryExampleLauncherDialog.h:21
QmitkAbstractNodeSelectionWidget.h
QmitkImageMaskingWidget
QmitkImageMaskingWidget.
Definition:
QmitkImageMaskingWidget.h:42
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition:
mitkDataStorage.h:43
QmitkAbstractNodeSelectionWidget::NodeList
QList< mitk::DataNode::Pointer > NodeList
Definition:
QmitkAbstractNodeSelectionWidget.h:65
MitkSegmentationUIExports.h
itk::Image
class ITK_EXPORT Image
Definition:
mitkGeometryClipImageFilter.h:25
mitk::WeakPointer< mitk::DataStorage >
src
MITK
Modules
SegmentationUI
SegmentationUtilities
QmitkImageMaskingWidget.h
Generated on Sat Nov 23 2024 02:13:16 for Medical Imaging Interaction Toolkit by
1.8.17