Medical Imaging Interaction Toolkit  2023.12.00
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  Mode { NewLabel, RenameLabel }
 
using SuggestionsType = std::vector< std::pair< QString, QColor > >
 

Public Member Functions

 QmitkNewSegmentationDialog (QWidget *parent=nullptr, mitk::LabelSetImage *labelSetImage=nullptr, Mode mode=NewLabel)
 
 ~QmitkNewSegmentationDialog () override
 
QString GetName () const
 
mitk::Color GetColor () const
 
void SetName (const QString &name)
 
void SetColor (const mitk::Color &color)
 

Static Public Member Functions

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

Detailed Description

Dialog for naming labels.

Definition at line 40 of file QmitkNewSegmentationDialog.h.

Member Typedef Documentation

◆ SuggestionsType

using QmitkNewSegmentationDialog::SuggestionsType = std::vector<std::pair<QString, QColor> >

Definition at line 45 of file QmitkNewSegmentationDialog.h.

Member Enumeration Documentation

◆ Mode

Enumerator
NewLabel 
RenameLabel 

Definition at line 47 of file QmitkNewSegmentationDialog.h.

Constructor & Destructor Documentation

◆ QmitkNewSegmentationDialog()

QmitkNewSegmentationDialog::QmitkNewSegmentationDialog ( QWidget *  parent = nullptr,
mitk::LabelSetImage labelSetImage = nullptr,
Mode  mode = NewLabel 
)
explicit

◆ ~QmitkNewSegmentationDialog()

QmitkNewSegmentationDialog::~QmitkNewSegmentationDialog ( )
override

Member Function Documentation

◆ DoRenameLabel()

static bool QmitkNewSegmentationDialog::DoRenameLabel ( mitk::Label label,
mitk::LabelSetImage segmentation,
QWidget *  parent = nullptr,
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

◆ SetColor()

void QmitkNewSegmentationDialog::SetColor ( const mitk::Color color)

◆ SetName()

void QmitkNewSegmentationDialog::SetName ( const QString &  name)

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