Medical Imaging Interaction Toolkit  2023.04.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>
20 
21 namespace Ui
22 {
23  class QmitkBooleanOperationsWidgetControls;
24 }
25 
26 namespace mitk
27 {
28  class DataNode;
29  class DataStorage;
30 }
31 
33 {
34  Q_OBJECT
35 
36 public:
37  explicit QmitkBooleanOperationsWidget(mitk::DataStorage* dataStorage,
38  mitk::SliceNavigationController* timeNavigationController,
39  QWidget* parent = nullptr);
40  ~QmitkBooleanOperationsWidget() override;
41 
42 private slots:
43  void OnSelectionChanged(unsigned int index, const mitk::DataNode* selection);
44  void OnDifferenceButtonClicked();
45  void OnIntersectionButtonClicked();
46  void OnUnionButtonClicked();
47 
48 private:
49  void EnableButtons(bool enable = true);
50  void DoBooleanOperation(mitk::BooleanOperation::Type type);
51 
52  Ui::QmitkBooleanOperationsWidgetControls* m_Controls;
53 };
54 
55 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
mitk::BooleanOperation::Type
Type
Definition: mitkBooleanOperation.h:29
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
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkBooleanOperationsWidget
Definition: QmitkBooleanOperationsWidget.h:32
QmitkSegmentationUtilityWidget
Base class for segmentation utility widgets that need access to the time navigation controller.
Definition: QmitkSegmentationUtilityWidget.h:30
mitkBooleanOperation.h
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
MitkSegmentationUIExports.h
QmitkSegmentationUtilityWidget.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63