Medical Imaging Interaction Toolkit  2023.12.00
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 
17 
18 #include <mitkDataStorage.h>
19 #include <mitkSurface.h>
20 
21 #include <QWidget>
22 
23 namespace Ui
24 {
25  class QmitkImageMaskingWidgetControls;
26 }
27 
28 namespace mitk
29 {
30  class Image;
31 }
32 
42 {
43  Q_OBJECT
44 
45 public:
46 
48  explicit QmitkImageMaskingWidget(mitk::DataStorage* dataStorage, QWidget* parent = nullptr);
49 
51  ~QmitkImageMaskingWidget() override;
52 
53 private slots:
54 
56  void OnSelectionChanged(unsigned int index, const mitk::DataNode* selection);
57 
59  void OnMaskImagePressed();
60 
62  void OnCustomValueButtonToggled(bool checked);
63 
64 private:
65 
67  void SelectionControl( unsigned int index, const mitk::DataNode* selection);
68 
70  void EnableButtons(bool enable = true);
71 
74 
77 
79  void AddToDataStorage(mitk::DataStorage::Pointer dataStorage, itk::SmartPointer<mitk::Image> segmentation,
80  const std::string& name, mitk::DataNode::Pointer parent = nullptr);
81 
82  Ui::QmitkImageMaskingWidgetControls* m_Controls;
83 };
84 
85 #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
mitkSurface.h
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkImageMaskingWidget
QmitkImageMaskingWidget.
Definition: QmitkImageMaskingWidget.h:41
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
MitkSegmentationUIExports.h
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63