Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkCopyLabelToGroupDialog Class Reference

Dialog for copying a label to another group within a multi-label segmentation. More...

#include <QmitkCopyLabelToGroupDialog.h>

Inheritance diagram for QmitkCopyLabelToGroupDialog:
Collaboration diagram for QmitkCopyLabelToGroupDialog:

Public Member Functions

 QmitkCopyLabelToGroupDialog (mitk::MultiLabelSegmentation *segmentation, mitk::Label *label, QWidget *parent=nullptr)
 Constructs the dialog for copying a label to another group. More...
 
 ~QmitkCopyLabelToGroupDialog () override
 Destructor. More...
 
void accept () override
 Accepts the dialog and performs the label copy operation. More...
 
mitk::Label * GetDestinationLabel () const
 Returns the destination label after the copy operation. More...
 

Detailed Description

Dialog for copying a label to another group within a multi-label segmentation.

Allows the user to select a destination group within the segmentation and copies the source label to that group. The destination label will have a different label value since all label values in a MultiLabelSegmentation must be unique.

See also
QmitkMultiLabelInspector
mitk::MultiLabelSegmentation

Definition at line 41 of file QmitkCopyLabelToGroupDialog.h.

Constructor & Destructor Documentation

◆ QmitkCopyLabelToGroupDialog()

QmitkCopyLabelToGroupDialog::QmitkCopyLabelToGroupDialog ( mitk::MultiLabelSegmentation *  segmentation,
mitk::Label *  label,
QWidget *  parent = nullptr 
)

Constructs the dialog for copying a label to another group.

Parameters
[in]segmentationThe multi-label segmentation containing the label.
[in]labelThe source label to copy.
[in]parentOptional parent widget.

◆ ~QmitkCopyLabelToGroupDialog()

QmitkCopyLabelToGroupDialog::~QmitkCopyLabelToGroupDialog ( )
override

Destructor.

Member Function Documentation

◆ accept()

void QmitkCopyLabelToGroupDialog::accept ( )
override

Accepts the dialog and performs the label copy operation.

◆ GetDestinationLabel()

mitk::Label* QmitkCopyLabelToGroupDialog::GetDestinationLabel ( ) const

Returns the destination label after the copy operation.

Returns
Pointer to the newly created destination label, or nullptr if not yet accepted.

The documentation for this class was generated from the following file: