Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkSimpleLabelSetListWidget Class Reference

Widget that offers a simple list that displays all labels (color and name) in the active layer of a LabelSetImage. More...

#include <QmitkSimpleLabelSetListWidget.h>

Inheritance diagram for QmitkSimpleLabelSetListWidget:
Collaboration diagram for QmitkSimpleLabelSetListWidget:

Public Types

using LabelVectorType = std::vector< mitk::Label::ConstPointer >
 

Public Slots

void SetLabelSetImage (const mitk::LabelSetImage *image)
 
void SetSelectedLabels (const LabelVectorType &selectedLabels)
 

Signals

void SelectedLabelsChanged (const LabelVectorType &selectedLabels)
 
void ActiveLayerChanged ()
 

Public Member Functions

 QmitkSimpleLabelSetListWidget (QWidget *parent=nullptr)
 
 ~QmitkSimpleLabelSetListWidget () override
 
LabelVectorType SelectedLabels () const
 
const mitk::LabelSetImageGetLabelSetImage () const
 

Protected Slots

void OnLabelSelectionChanged ()
 

Protected Member Functions

void OnLayerChanged ()
 
void OnLabelChanged (mitk::LabelSetImage::LabelValueType lv)
 
void ResetList ()
 

Protected Attributes

mitk::LabelSetImage::ConstPointer m_LabelSetImage
 
QListWidget * m_LabelList
 
bool m_Emmiting
 
mitk::ITKEventObserverGuard m_LabelAddedObserver
 
mitk::ITKEventObserverGuard m_LabelModifiedObserver
 
mitk::ITKEventObserverGuard m_LabelRemovedObserver
 

Detailed Description

Widget that offers a simple list that displays all labels (color and name) in the active layer of a LabelSetImage.

Definition at line 26 of file QmitkSimpleLabelSetListWidget.h.

Member Typedef Documentation

◆ LabelVectorType

Constructor & Destructor Documentation

◆ QmitkSimpleLabelSetListWidget()

QmitkSimpleLabelSetListWidget::QmitkSimpleLabelSetListWidget ( QWidget *  parent = nullptr)

◆ ~QmitkSimpleLabelSetListWidget()

QmitkSimpleLabelSetListWidget::~QmitkSimpleLabelSetListWidget ( )
override

Member Function Documentation

◆ ActiveLayerChanged

void QmitkSimpleLabelSetListWidget::ActiveLayerChanged ( )
signal

◆ GetLabelSetImage()

const mitk::LabelSetImage* QmitkSimpleLabelSetListWidget::GetLabelSetImage ( ) const

◆ OnLabelChanged()

void QmitkSimpleLabelSetListWidget::OnLabelChanged ( mitk::LabelSetImage::LabelValueType  lv)
protected

◆ OnLabelSelectionChanged

void QmitkSimpleLabelSetListWidget::OnLabelSelectionChanged ( )
protectedslot

◆ OnLayerChanged()

void QmitkSimpleLabelSetListWidget::OnLayerChanged ( )
protected

◆ ResetList()

void QmitkSimpleLabelSetListWidget::ResetList ( )
protected

◆ SelectedLabels()

LabelVectorType QmitkSimpleLabelSetListWidget::SelectedLabels ( ) const

◆ SelectedLabelsChanged

void QmitkSimpleLabelSetListWidget::SelectedLabelsChanged ( const LabelVectorType selectedLabels)
signal

◆ SetLabelSetImage

void QmitkSimpleLabelSetListWidget::SetLabelSetImage ( const mitk::LabelSetImage image)
slot

◆ SetSelectedLabels

void QmitkSimpleLabelSetListWidget::SetSelectedLabels ( const LabelVectorType selectedLabels)
slot

Member Data Documentation

◆ m_Emmiting

bool QmitkSimpleLabelSetListWidget::m_Emmiting
protected

Definition at line 59 of file QmitkSimpleLabelSetListWidget.h.

◆ m_LabelAddedObserver

mitk::ITKEventObserverGuard QmitkSimpleLabelSetListWidget::m_LabelAddedObserver
protected

Definition at line 61 of file QmitkSimpleLabelSetListWidget.h.

◆ m_LabelList

QListWidget* QmitkSimpleLabelSetListWidget::m_LabelList
protected

Definition at line 58 of file QmitkSimpleLabelSetListWidget.h.

◆ m_LabelModifiedObserver

mitk::ITKEventObserverGuard QmitkSimpleLabelSetListWidget::m_LabelModifiedObserver
protected

Definition at line 62 of file QmitkSimpleLabelSetListWidget.h.

◆ m_LabelRemovedObserver

mitk::ITKEventObserverGuard QmitkSimpleLabelSetListWidget::m_LabelRemovedObserver
protected

Definition at line 63 of file QmitkSimpleLabelSetListWidget.h.

◆ m_LabelSetImage

mitk::LabelSetImage::ConstPointer QmitkSimpleLabelSetListWidget::m_LabelSetImage
protected

Definition at line 57 of file QmitkSimpleLabelSetListWidget.h.


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