Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkLabelSetWidget Class Reference

#include <QmitkLabelSetWidget.h>

Inheritance diagram for QmitkLabelSetWidget:
Collaboration diagram for QmitkLabelSetWidget:

Public Slots

void UpdateAllTableWidgetItems ()
 Updates the current labels in the label set widget table. For each label (widget item) the 'UpdateTableWidgetItem' is called. More...
 
void UpdateAllTableWidgetItems (mitk::Label::PixelType)
 
void ResetAllTableWidgetItems ()
 Resets the current labels in the label set widget table. For each label a widget item is inserted into the table. More...
 
void ResetAllTableWidgetItems (mitk::Label::PixelType)
 
void SelectLabelByPixelValue (mitk::Label::PixelType pixelValue)
 

Signals

void goToLabel (const mitk::Point3D &)
 Send a signal when it was requested to go to a label. More...
 
void LabelSetWidgetReset ()
 

Public Member Functions

 QmitkLabelSetWidget (QWidget *parent=nullptr)
 
 ~QmitkLabelSetWidget () override
 
void SetDataStorage (mitk::DataStorage *storage)
 
void UpdateControls ()
 
virtual void setEnabled (bool enabled)
 
QStringList & GetLabelStringList ()
 

Detailed Description

Definition at line 36 of file QmitkLabelSetWidget.h.

Constructor & Destructor Documentation

◆ QmitkLabelSetWidget()

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

◆ ~QmitkLabelSetWidget()

QmitkLabelSetWidget::~QmitkLabelSetWidget ( )
override

Member Function Documentation

◆ GetLabelStringList()

QStringList& QmitkLabelSetWidget::GetLabelStringList ( )

◆ goToLabel

void QmitkLabelSetWidget::goToLabel ( const mitk::Point3D )
signal

Send a signal when it was requested to go to a label.

◆ LabelSetWidgetReset

void QmitkLabelSetWidget::LabelSetWidgetReset ( )
signal

◆ ResetAllTableWidgetItems [1/2]

void QmitkLabelSetWidget::ResetAllTableWidgetItems ( )
slot

Resets the current labels in the label set widget table. For each label a widget item is inserted into the table.

Resetting means removing all rows of the widget table and inserting new rows (labels) from the active label set (= layer) of the current working node. The currently active label is selected and 'Number of labels' is set. As this function is typically used after one label has been removed or the reference node has been changed (e.g.) the render windows have to be updated.

◆ ResetAllTableWidgetItems [2/2]

void QmitkLabelSetWidget::ResetAllTableWidgetItems ( mitk::Label::PixelType  )
slot

◆ SelectLabelByPixelValue

void QmitkLabelSetWidget::SelectLabelByPixelValue ( mitk::Label::PixelType  pixelValue)
slot

◆ SetDataStorage()

void QmitkLabelSetWidget::SetDataStorage ( mitk::DataStorage storage)

◆ setEnabled()

virtual void QmitkLabelSetWidget::setEnabled ( bool  enabled)
virtual

◆ UpdateAllTableWidgetItems [1/2]

void QmitkLabelSetWidget::UpdateAllTableWidgetItems ( )
slot

Updates the current labels in the label set widget table. For each label (widget item) the 'UpdateTableWidgetItem' is called.

Updating means setting the color box of the table, setting the column with and fill it with the label name. Furthermore the two push buttons for locking and showing/hiding the layer are checked/unchecked. This functions only changes the appearance of the table widget and no render window update is necessary.

◆ UpdateAllTableWidgetItems [2/2]

void QmitkLabelSetWidget::UpdateAllTableWidgetItems ( mitk::Label::PixelType  )
slot

◆ UpdateControls()

void QmitkLabelSetWidget::UpdateControls ( )

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