|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Button that displays information about selected labels of a given multi-label segmentation. More...
#include <QmitkMultiLabelSelectionButton.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 | |
| QmitkMultiLabelSelectionButton (QWidget *parent=nullptr) | |
| Constructs the multi-label selection button. More... | |
| ~QmitkMultiLabelSelectionButton () | |
| 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 | paintEvent (QPaintEvent *p) override |
| void | changeEvent (QEvent *event) override |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
Button that displays information about selected labels of a given multi-label segmentation.
If the given node is a nullptr the node info text will be shown. The node info can be formatted text (e.g. HTML code; like the tooltip text).
Definition at line 31 of file QmitkMultiLabelSelectionButton.h.
Definition at line 49 of file QmitkMultiLabelSelectionButton.h.
| using QmitkMultiLabelSelectionButton::LabelValueVectorType = mitk::MultiLabelSegmentation::LabelValueVectorType |
Definition at line 50 of file QmitkMultiLabelSelectionButton.h.
| QmitkMultiLabelSelectionButton::QmitkMultiLabelSelectionButton | ( | QWidget * | parent = nullptr | ) |
Constructs the multi-label selection button.
| QmitkMultiLabelSelectionButton::~QmitkMultiLabelSelectionButton | ( | ) |
|
overrideprotected |
|
signal |
A signal that will be emitted if the selected labels change.
| labels | A list of label values that are now selected. |
|
overrideprotected |
| QString QmitkMultiLabelSelectionButton::GetEmptyInfo | ( | ) | const |
Returns the info text displayed when no label is selected.
| bool QmitkMultiLabelSelectionButton::GetHighlightingActivated | ( | ) | const |
Returns whether label highlighting in render windows is activated.
| mitk::DataNode* QmitkMultiLabelSelectionButton::GetMultiLabelNode | ( | ) | const |
Returns the segmentation data node.
| mitk::MultiLabelSegmentation* QmitkMultiLabelSelectionButton::GetMultiLabelSegmentation | ( | ) | const |
Returns the currently set segmentation.
| LabelValueVectorType QmitkMultiLabelSelectionButton::GetSelectedLabels | ( | ) | const |
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).
|
overrideprotected |
|
overrideprotected |
|
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. |