Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkConvertToMultiLabelSegmentationWidget.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 QmitkConvertToMultiLabelSegmentationWidget_h
14 #define QmitkConvertToMultiLabelSegmentationWidget_h
15 
19 
20 #include <QWidget>
21 
22 namespace Ui
23 {
24  class QmitkConvertToMultiLabelSegmentationWidgetControls;
25 }
26 
27 namespace mitk
28 {
29  class DataNode;
30  class DataStorage;
31  class Surface;
32  class Image;
33  class LabelSetImage;
34 }
35 
44 {
45  Q_OBJECT
46 
47 public:
48 
50  explicit QmitkConvertToMultiLabelSegmentationWidget(mitk::DataStorage* dataStorage, QWidget* parent = nullptr);
51 
54 
55 private slots:
56 
58  void OnInputSelectionChanged(QmitkAbstractNodeSelectionWidget::NodeList /*nodes*/);
59 
60  void OnOutputSelectionChanged(QmitkAbstractNodeSelectionWidget::NodeList /*nodes*/);
61 
62  void OnRefSelectionChanged(QmitkAbstractNodeSelectionWidget::NodeList /*nodes*/);
63 
64 
66  void OnConvertPressed();
67 
68 private:
69  void ConvertNodes(const QmitkNodeSelectionDialog::NodeList& nodes);
70 
71  bool m_InternalEvent = false;
73 
75  void ConfigureWidgets();
76 
77  Ui::QmitkConvertToMultiLabelSegmentationWidgetControls* m_Controls;
78 };
79 
80 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
QmitkNodeSelectionDialog.h
QmitkNodeSelectionDialog::NodeList
QList< mitk::DataNode::Pointer > NodeList
Definition: QmitkNodeSelectionDialog.h:62
QmitkConvertToMultiLabelSegmentationWidget
QmitkConvertToMultiLabelSegmentationWidget.
Definition: QmitkConvertToMultiLabelSegmentationWidget.h:43
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
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
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
mitk::WeakPointer< mitk::DataStorage >