Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkExtractFromMultiLabelSegmentationWidget.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 QmitkExtractFromMultiLabelSegmentationWidget_h
14 #define QmitkExtractFromMultiLabelSegmentationWidget_h
15 
19 
20 #include <QWidget>
21 
22 namespace Ui
23 {
24  class QmitkExtractFromMultiLabelSegmentationWidgetControls;
25 }
26 
27 namespace mitk
28 {
29  class DataNode;
30  class DataStorage;
31  class Surface;
32  class Image;
33  class LabelSetImage;
34 }
35 
43 {
44  Q_OBJECT
45 
46 public:
47 
49  explicit QmitkExtractFromMultiLabelSegmentationWidget(mitk::DataStorage* dataStorage, QWidget* parent = nullptr);
50 
53 
54 private slots:
55 
57  void OnSegSelectionChanged(QmitkAbstractNodeSelectionWidget::NodeList /*nodes*/);
58 
60  void OnExtractPressed();
61 
62 private:
63  bool m_InternalEvent = false;
65 
66  void ConfigureWidgets();
67 
68  void StoreToDataStorage(mitk::Image* image, const std::string& name, mitk::DataNode* parent);
69 
70  Ui::QmitkExtractFromMultiLabelSegmentationWidgetControls* m_Controls;
71 };
72 
73 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
QmitkNodeSelectionDialog.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
QmitkExtractFromMultiLabelSegmentationWidget
QmitkExtractFromMultiLabelSegmentationWidget.
Definition: QmitkExtractFromMultiLabelSegmentationWidget.h:42
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 >
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63