Medical Imaging Interaction Toolkit  2024.06.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 SetMultiLabelNode (mitk::DataNode *node)
 Sets the segmentation node 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 (const 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, bool &canceled) 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...
 
mitk::LabelSetImageGetMultiLabelSegmentation () const
 
mitk::DataNodeGetMultiLabelNode () const
 

Detailed Description

Definition at line 38 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 ( const 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

◆ GetMultiLabelNode()

mitk::DataNode* QmitkMultiLabelManager::GetMultiLabelNode ( ) const

◆ GetMultiLabelSegmentation()

mitk::LabelSetImage* QmitkMultiLabelManager::GetMultiLabelSegmentation ( ) const

◆ 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 render windows 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,
bool &  canceled 
) 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.
[out]canceledIndicating if the request was canceled by the used.

◆ SetDataStorage

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

◆ SetDefaultLabelNaming

void QmitkMultiLabelManager::SetDefaultLabelNaming ( bool  defaultLabelNaming)
slot

◆ setEnabled

virtual void QmitkMultiLabelManager::setEnabled ( bool  enabled)
virtualslot

◆ SetMultiLabelNode

void QmitkMultiLabelManager::SetMultiLabelNode ( mitk::DataNode node)
slot

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

Parameters
nodeA pointer to the segmentation node.
Remarks
If not set some features of the manager are not active

◆ 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.
Remarks
You cannot set the segmentation directly if a segmentation node is also set. Reset the node (nullptr) if you want to change to direct segmentation setting.
Precondition
Segmentation node is nullptr.

◆ 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: