Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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>
21 
22 namespace Ui
23 {
24  class QmitkImageMaskingWidgetControls;
25 }
26 
27 namespace mitk
28 {
29  class DataStorage;
30  class Image;
31 }
32 
42 {
43  Q_OBJECT
44 
45 public:
46 
48  explicit QmitkImageMaskingWidget(mitk::DataStorage* dataStorage,
49  mitk::SliceNavigationController* timeNavigationController,
50  QWidget* parent = nullptr);
51 
53  ~QmitkImageMaskingWidget() override;
54 
55 private slots:
56 
58  void OnSelectionChanged(unsigned int index, const mitk::DataNode* selection);
59 
61  void OnMaskImagePressed();
62 
64  void OnCustomValueButtonToggled(bool checked);
65 
66 private:
67 
69  void SelectionControl( unsigned int index, const mitk::DataNode* selection);
70 
72  void EnableButtons(bool enable = true);
73 
76 
79 
81  void AddToDataStorage(mitk::DataStorage::Pointer dataStorage, itk::SmartPointer<mitk::Image> segmentation,
82  const std::string& name, mitk::DataNode::Pointer parent = nullptr);
83 
84  Ui::QmitkImageMaskingWidgetControls* m_Controls;
85 };
86 
87 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
mitkDataStorage.h
itk::SmartPointer
Definition: mitkIFileReader.h:30
mitk::SliceNavigationController
Controls the selection of the slice the associated BaseRenderer will display.
Definition: mitkSliceNavigationController.h:132
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkSurface.h
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkSegmentationUtilityWidget
Base class for segmentation utility widgets that need access to the time navigation controller.
Definition: QmitkSegmentationUtilityWidget.h:30
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
QmitkSegmentationUtilityWidget.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63