Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkCopyLabelToGroupDialog.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 QmitkCopyLabelToGroupDialog_h
14 #define QmitkCopyLabelToGroupDialog_h
15 
17 #include <QDialog>
18 #include <memory>
19 
20 namespace mitk
21 {
22  class Label;
23  class MultiLabelSegmentation;
24 }
25 
26 namespace Ui
27 {
29 }
30 
42 {
43  Q_OBJECT
44 
45 public:
52  QmitkCopyLabelToGroupDialog(mitk::MultiLabelSegmentation* segmentation, mitk::Label* label, QWidget* parent = nullptr);
53 
56 
58  void accept() override;
59 
65 
66 private:
67  std::unique_ptr<Ui::QmitkCopyLabelToGroupDialog> m_Ui;
68 
69  mitk::MultiLabelSegmentation* m_Segmentation;
70  mitk::Label* m_SourceLabel;
71  mitk::Label* m_DestinationLabel;
72 };
73 
74 #endif
#define MITKSEGMENTATIONUI_EXPORT
Dialog for copying a label to another group within a multi-label segmentation.
mitk::Label * GetDestinationLabel() const
Returns the destination label after the copy operation.
QmitkCopyLabelToGroupDialog(mitk::MultiLabelSegmentation *segmentation, mitk::Label *label, QWidget *parent=nullptr)
Constructs the dialog for copying a label to another group.
~QmitkCopyLabelToGroupDialog() override
Destructor.
void accept() override
Accepts the dialog and performs the label copy operation.
A data structure describing a label in a multi-label segmentation.
Definition: mitkLabel.h:101
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.