Medical Imaging Interaction Toolkit  2023.12.00
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 
17 
18 #include <mitkBooleanOperation.h>
19 
20 #include <QWidget>
21 
22 namespace Ui
23 {
24  class QmitkBooleanOperationsWidgetControls;
25 }
26 
27 namespace mitk
28 {
29  class DataNode;
30  class DataStorage;
31 }
32 
34 {
35  Q_OBJECT
36 
37 public:
38  explicit QmitkBooleanOperationsWidget(mitk::DataStorage* dataStorage, QWidget* parent = nullptr);
39  ~QmitkBooleanOperationsWidget() override;
40 
41 private slots:
42  void OnSelectionChanged(unsigned int index, const mitk::DataNode* selection);
43  void OnDifferenceButtonClicked();
44  void OnIntersectionButtonClicked();
45  void OnUnionButtonClicked();
46 
47 private:
48  void EnableButtons(bool enable = true);
49  void DoBooleanOperation(mitk::BooleanOperation::Type type);
50 
51  Ui::QmitkBooleanOperationsWidgetControls* m_Controls;
52 };
53 
54 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
mitk::BooleanOperation::Type
Type
Definition: mitkBooleanOperation.h:29
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkBooleanOperationsWidget
Definition: QmitkBooleanOperationsWidget.h:33
mitkBooleanOperation.h
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
MitkSegmentationUIExports.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63