|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget that behaves like a QLabel and displays selected labels of a segmentation with name and color. More...
#include <QmitkMultiLabelSelectionLabel.h>


Public Types | |
| using | LabelValueType = mitk::MultiLabelSegmentation::LabelValueType |
| using | LabelValueVectorType = mitk::MultiLabelSegmentation::LabelValueVectorType |
Public Slots | |
| void | SetSelectedLabels (const LabelValueVectorType &selectedLabels) |
| Transform a list of label values into the new selection of the inspector. More... | |
| void | SetSelectedLabel (mitk::MultiLabelSegmentation::LabelValueType selectedLabel) |
| The passed label will be used as new selection in the widget. More... | |
| void | SetMultiLabelSegmentation (mitk::MultiLabelSegmentation *segmentation) |
| Sets the segmentation that will be used and monitored by the widget. More... | |
| void | SetMultiLabelNode (mitk::DataNode *node) |
| Sets the segmentation node that will be used /monitored by the widget. More... | |
| void | SetHighlightingActivated (bool visiblityMod) |
| void | SetEmptyInfo (QString info) |
Signals | |
| void | CurrentSelectionChanged (LabelValueVectorType labels) const |
| A signal that will be emitted if the selected labels change. More... | |
Public Member Functions | |
| QmitkMultiLabelSelectionLabel (QWidget *parent=nullptr) | |
| Constructs the multi-label selection label widget. More... | |
| ~QmitkMultiLabelSelectionLabel () | |
| bool | GetHighlightingActivated () const |
| Returns whether label highlighting in render windows is activated. More... | |
| mitk::MultiLabelSegmentation * | GetMultiLabelSegmentation () const |
| Returns the currently set segmentation. More... | |
| mitk::DataNode * | GetMultiLabelNode () const |
| Returns the segmentation data node. More... | |
| QString | GetEmptyInfo () const |
| Returns the info text displayed when no label is selected. More... | |
| LabelValueVectorType | GetSelectedLabels () const |
| Retrieve the currently selected labels (equals the last CurrentSelectionChanged values). More... | |
Protected Member Functions | |
| void | Initialize () |
| void | UpdateWidget () |
Protected Attributes | |
| mitk::MultiLabelSegmentation::Pointer | m_Segmentation |
| LabelValueVectorType | m_LastValidSelectedLabels |
| std::unique_ptr< Ui::QmitkMultiLabelSelectionLabel > | m_Controls |
Widget that behaves like a QLabel and displays selected labels of a segmentation with name and color.
Also allows label highlighting in render windows if the node is set and the mouse hovers over the widget.
Definition at line 35 of file QmitkMultiLabelSelectionLabel.h.
Definition at line 53 of file QmitkMultiLabelSelectionLabel.h.
| using QmitkMultiLabelSelectionLabel::LabelValueVectorType = mitk::MultiLabelSegmentation::LabelValueVectorType |
Definition at line 54 of file QmitkMultiLabelSelectionLabel.h.
| QmitkMultiLabelSelectionLabel::QmitkMultiLabelSelectionLabel | ( | QWidget * | parent = nullptr | ) |
Constructs the multi-label selection label widget.
| QmitkMultiLabelSelectionLabel::~QmitkMultiLabelSelectionLabel | ( | ) |
|
signal |
A signal that will be emitted if the selected labels change.
| labels | A list of label values that are now selected. |
| QString QmitkMultiLabelSelectionLabel::GetEmptyInfo | ( | ) | const |
Returns the info text displayed when no label is selected.
| bool QmitkMultiLabelSelectionLabel::GetHighlightingActivated | ( | ) | const |
Returns whether label highlighting in render windows is activated.
| mitk::DataNode* QmitkMultiLabelSelectionLabel::GetMultiLabelNode | ( | ) | const |
Returns the segmentation data node.
| mitk::MultiLabelSegmentation* QmitkMultiLabelSelectionLabel::GetMultiLabelSegmentation | ( | ) | const |
Returns the currently set segmentation.
| LabelValueVectorType QmitkMultiLabelSelectionLabel::GetSelectedLabels | ( | ) | const |
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).
|
protected |
|
slot |
Set the info text that should be displayed if no label is selected. The string can contain HTML code, if desired.
|
slot |
|
slot |
Sets the segmentation node that will be used /monitored by the widget.
| node | A pointer to the segmentation node. |
|
slot |
Sets the segmentation that will be used and monitored by the widget.
| segmentation | A pointer to the segmentation to set. |
|
slot |
The passed label will be used as new selection in the widget.
| selectedLabel | Value of the selected label. |
|
slot |
Transform a list of label values into the new selection of the inspector.
| selectedLabels | A list of selected label values. |
|
protected |
|
protected |
Definition at line 118 of file QmitkMultiLabelSelectionLabel.h.
|
protected |
Definition at line 116 of file QmitkMultiLabelSelectionLabel.h.
|
protected |
Definition at line 114 of file QmitkMultiLabelSelectionLabel.h.