Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
QmitkNewSegmentationDialog Class Reference

Dialog for naming labels. More...

#include <QmitkNewSegmentationDialog.h>

Inheritance diagram for QmitkNewSegmentationDialog:
Collaboration diagram for QmitkNewSegmentationDialog:

Public Types

enum class  Mode { NewLabel , RenameLabel }
 

Public Member Functions

 QmitkNewSegmentationDialog (const mitk::MultiLabelSegmentation *labelSetImage, const mitk::Label *label=nullptr, Mode mode=Mode::NewLabel, QWidget *parent=nullptr)
 
 ~QmitkNewSegmentationDialog () override
 
QString GetName () const
 
mitk::Color GetColor () const
 
const mitk::LabelGetSuggestion () const
 

Static Public Member Functions

static bool DoRenameLabel (mitk::Label *label, mitk::MultiLabelSegmentation *segmentation, QWidget *parent=nullptr, Mode mode=Mode::NewLabel)
 Static helper function to (re)name a label. More...
 

Detailed Description

Dialog for naming labels.

Definition at line 35 of file QmitkNewSegmentationDialog.h.

Member Enumeration Documentation

◆ Mode

Enumerator
NewLabel 
RenameLabel 

Definition at line 40 of file QmitkNewSegmentationDialog.h.

Constructor & Destructor Documentation

◆ QmitkNewSegmentationDialog()

QmitkNewSegmentationDialog::QmitkNewSegmentationDialog ( const mitk::MultiLabelSegmentation labelSetImage,
const mitk::Label label = nullptr,
Mode  mode = Mode::NewLabel,
QWidget *  parent = nullptr 
)
explicit

◆ ~QmitkNewSegmentationDialog()

QmitkNewSegmentationDialog::~QmitkNewSegmentationDialog ( )
override

Member Function Documentation

◆ DoRenameLabel()

static bool QmitkNewSegmentationDialog::DoRenameLabel ( mitk::Label label,
mitk::MultiLabelSegmentation segmentation,
QWidget *  parent = nullptr,
Mode  mode = Mode::NewLabel 
)
static

Static helper function to (re)name a label.

In NewLabel mode it is assumed that the label has not yet been added, hence for example a look-up table update is not done. In RenameLabel mode the segmentation (if provided) is updated.

◆ GetColor()

mitk::Color QmitkNewSegmentationDialog::GetColor ( ) const

◆ GetName()

QString QmitkNewSegmentationDialog::GetName ( ) const

◆ GetSuggestion()

const mitk::Label* QmitkNewSegmentationDialog::GetSuggestion ( ) const

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