Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkMultiLabelManager Class Reference

#include <QmitkMultiLabelManager.h>

Inheritance diagram for QmitkMultiLabelManager:
Collaboration diagram for QmitkMultiLabelManager:

Public Types

using LabelValueVectorType = mitk::LabelSetImage::LabelValueVectorType
 

Public Slots

void SetSelectedLabels (const LabelValueVectorType &selectedLabels)
 Transform a list label values into a model selection and set this as a new selection of the view. More...
 
void SetSelectedLabel (mitk::LabelSetImage::LabelValueType selectedLabel)
 Selects the passed label instance and sets a new selection of the view. More...
 
void SetMultiLabelSegmentation (mitk::LabelSetImage *segmentation)
 Sets the segmentation that will be used /monitored by the widget. More...
 
void SetDataStorage (mitk::DataStorage *storage)
 
void UpdateControls ()
 
virtual void setEnabled (bool enabled)
 
QStringList & GetLabelStringList ()
 
void SetDefaultLabelNaming (bool defaultLabelNaming)
 

Signals

void CurrentSelectionChanged (LabelValueVectorType labels)
 A signal that will be emitted if the selected labels change. More...
 
void GoToLabel (mitk::LabelSetImage::LabelValueType label, const mitk::Point3D &point) const
 A signal that will be emitted if the user has requested to "go to" a certain label. More...
 
void LabelRenameRequested (mitk::Label *label, bool rename) const
 Signal that is emitted, if a label should be (re)named and default label naming is deactivated. More...
 

Public Member Functions

 QmitkMultiLabelManager (QWidget *parent=nullptr)
 
 ~QmitkMultiLabelManager () override
 
LabelValueVectorType GetSelectedLabels () const
 Retrieve the currently selected labels (equals the last CurrentSelectionChanged values). More...
 

Detailed Description

Definition at line 37 of file QmitkMultiLabelManager.h.

Member Typedef Documentation

◆ LabelValueVectorType

Constructor & Destructor Documentation

◆ QmitkMultiLabelManager()

QmitkMultiLabelManager::QmitkMultiLabelManager ( QWidget *  parent = nullptr)
explicit

◆ ~QmitkMultiLabelManager()

QmitkMultiLabelManager::~QmitkMultiLabelManager ( )
override

Member Function Documentation

◆ CurrentSelectionChanged

void QmitkMultiLabelManager::CurrentSelectionChanged ( LabelValueVectorType  labels)
signal

A signal that will be emitted if the selected labels change.

Parameters
labelsA list of label values that are now selected.

◆ GetLabelStringList

QStringList& QmitkMultiLabelManager::GetLabelStringList ( )
slot

◆ GetSelectedLabels()

LabelValueVectorType QmitkMultiLabelManager::GetSelectedLabels ( ) const

Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).

◆ GoToLabel

void QmitkMultiLabelManager::GoToLabel ( mitk::LabelSetImage::LabelValueType  label,
const mitk::Point3D point 
) const
signal

A signal that will be emitted if the user has requested to "go to" a certain label.

Going to a label would be e.g. to focus the renderwindows on the centroid of the label.

Parameters
labelThe label that should be focused.
pointin World coordinate that should be focused.

◆ LabelRenameRequested

void QmitkMultiLabelManager::LabelRenameRequested ( mitk::Label label,
bool  rename 
) const
signal

Signal that is emitted, if a label should be (re)named and default label naming is deactivated.

The instance for which a new name is requested is passed with the signal.

Parameters
labelPointer to the instance that needs a (new) name.
renameIndicates if it is a renaming or naming of a new label.

◆ SetDataStorage

void QmitkMultiLabelManager::SetDataStorage ( mitk::DataStorage storage)
slot

◆ SetDefaultLabelNaming

void QmitkMultiLabelManager::SetDefaultLabelNaming ( bool  defaultLabelNaming)
slot

◆ setEnabled

virtual void QmitkMultiLabelManager::setEnabled ( bool  enabled)
virtualslot

◆ SetMultiLabelSegmentation

void QmitkMultiLabelManager::SetMultiLabelSegmentation ( mitk::LabelSetImage segmentation)
slot

Sets the segmentation that will be used /monitored by the widget.

Parameters
segmentationA pointer to the segmentation to set.

◆ SetSelectedLabel

void QmitkMultiLabelManager::SetSelectedLabel ( mitk::LabelSetImage::LabelValueType  selectedLabel)
slot

Selects the passed label instance and sets a new selection of the view.

Parameters
selectedLabelValue of the label instance that should be selected.

◆ SetSelectedLabels

void QmitkMultiLabelManager::SetSelectedLabels ( const LabelValueVectorType selectedLabels)
slot

Transform a list label values into a model selection and set this as a new selection of the view.

Parameters
selectedLabelsA list of data nodes that should be newly selected.

◆ UpdateControls

void QmitkMultiLabelManager::UpdateControls ( )
slot

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