Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 ResetAllTableWidgetItems ()
 Resets the current labels in the label set widget table. For each label a widget item is inserted into the table. More...
 
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 resetView ()
 

Public Member Functions

 QmitkLabelSetWidget (QWidget *parent=nullptr)
 
 ~QmitkLabelSetWidget () override
 
void SetDataStorage (mitk::DataStorage *storage)
 
void SetOrganColors (const QStringList &organColors)
 
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()

Member Function Documentation

◆ GetLabelStringList()

◆ goToLabel

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

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

Referenced by SetDataStorage(), SetOrganColors(), and ~QmitkLabelSetWidget().

◆ ResetAllTableWidgetItems

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.

Definition at line 824 of file QmitkLabelSetWidget.cpp.

References mitk::LabelSetImage::GetActiveLabel(), mitk::LabelSetImage::GetActiveLabelSet(), mitk::LabelSetImage::GetActiveLayer(), mitk::RenderingManager::GetInstance(), mitk::LabelSetImage::GetNumberOfLabels(), mitk::LabelSet::IteratorConstBegin(), mitk::LabelSet::IteratorConstEnd(), mitk::RenderingManager::RequestUpdateAll(), and SelectLabelByPixelValue().

Referenced by ~QmitkLabelSetWidget().

◆ resetView

void QmitkLabelSetWidget::resetView ( )
signal

◆ SelectLabelByPixelValue

◆ SetDataStorage()

◆ setEnabled()

void QmitkLabelSetWidget::setEnabled ( bool  enabled)
virtual

Definition at line 938 of file QmitkLabelSetWidget.cpp.

References UpdateControls().

◆ SetOrganColors()

◆ UpdateAllTableWidgetItems

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.

Definition at line 769 of file QmitkLabelSetWidget.cpp.

References mitk::LabelSetImage::GetActiveLayer(), mitk::Label::GetColor(), mitk::RenderingManager::GetInstance(), mitk::LabelSetImage::GetLabel(), mitk::Label::GetLocked(), mitk::Label::GetName(), mitk::Label::GetVisible(), and mitk::RenderingManager::RequestUpdateAll().

Referenced by ~QmitkLabelSetWidget().

◆ UpdateControls()


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