Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkBooleanOperationsWidget.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 QmitkBooleanOperationsWidget_h
14 #define QmitkBooleanOperationsWidget_h
15 
16 #include <mitkLabelSetImage.h>
17 
19 
20 #include <QWidget>
21 
23 
24 namespace Ui
25 {
26  class QmitkBooleanOperationsWidgetControls;
27 }
28 
29 namespace mitk
30 {
31  class DataNode;
32  class DataStorage;
33 }
34 
36 {
37  Q_OBJECT
38 
39 public:
40  explicit QmitkBooleanOperationsWidget(mitk::DataStorage* dataStorage, QWidget* parent = nullptr);
41  ~QmitkBooleanOperationsWidget() override;
42 
43 private slots:
44  void OnSegSelectionChanged(QmitkAbstractNodeSelectionWidget::NodeList nodes);
45  void OnLabelSelectionChanged(mitk::LabelSetImage::LabelValueVectorType labels);
46  void OnDifferenceButtonClicked();
47  void OnIntersectionButtonClicked();
48  void OnUnionButtonClicked();
49 
50 private:
51  void ConfigureWidgets();
52  void SaveResultLabelMask(const mitk::Image* resultMask, const std::string& labelName) const;
53 
54 
55  Ui::QmitkBooleanOperationsWidgetControls* m_Controls;
56 };
57 
58 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkBooleanOperationsWidget
Definition: QmitkBooleanOperationsWidget.h:35
QmitkAbstractNodeSelectionWidget.h
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
mitk::LabelSetImage::LabelValueVectorType
std::vector< LabelValueType > LabelValueVectorType
Definition: mitkLabelSetImage.h:78
mitkLabelSetImage.h