#include <QmitkMultiLabelSelectionWidget.h>
◆ LabelValueType
◆ LabelValueVectorType
◆ QmitkMultiLabelSelectionWidget()
QmitkMultiLabelSelectionWidget::QmitkMultiLabelSelectionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QmitkMultiLabelSelectionWidget()
QmitkMultiLabelSelectionWidget::~QmitkMultiLabelSelectionWidget |
( |
| ) |
|
◆ CreateSelectedLabelMask()
Convenience function that creates a binary mask that represents the selected label in the segmentation. If no segmentation is defined or no label is selected, a null ptr is returned.
- Precondition
- Currently the function is only implemented for MultiSelectionMode==false;
◆ CurrentSelectionChanged
A signal that will be emitted if the selected labels change.
- Parameters
-
labels | A list of label values that are now selected. |
◆ GetEmptyInfo()
QString QmitkMultiLabelSelectionWidget::GetEmptyInfo |
( |
| ) |
const |
◆ GetHighlightingActivated()
bool QmitkMultiLabelSelectionWidget::GetHighlightingActivated |
( |
| ) |
const |
◆ GetMultiLabelNode()
mitk::DataNode* QmitkMultiLabelSelectionWidget::GetMultiLabelNode |
( |
| ) |
const |
◆ GetMultiLabelSegmentation()
◆ GetMultiSelectionMode()
bool QmitkMultiLabelSelectionWidget::GetMultiSelectionMode |
( |
| ) |
const |
◆ GetSelectedLabels()
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).
◆ resizeEvent()
void QmitkMultiLabelSelectionWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ SegmentationChanged
void QmitkMultiLabelSelectionWidget::SegmentationChanged |
( |
| ) |
const |
|
signal |
Signal is emitted, if the segmentation is changed that is observed by the inspector.
◆ SetEmptyInfo
void QmitkMultiLabelSelectionWidget::SetEmptyInfo |
( |
QString |
info | ) |
|
|
slot |
Set the info text that should be displayed if no label is selected. The string can contain HTML code, if desired.
◆ SetHighlightingActivated
void QmitkMultiLabelSelectionWidget::SetHighlightingActivated |
( |
bool |
visiblityMod | ) |
|
|
slot |
◆ SetMultiLabelNode
void QmitkMultiLabelSelectionWidget::SetMultiLabelNode |
( |
mitk::DataNode * |
node | ) |
|
|
slot |
Sets the segmentation node that will be used /monitored by the widget.
- Parameters
-
node | A pointer to the segmentation node. |
◆ SetMultiLabelSegmentation
Sets the segmentation that will be used and monitored by the widget.
- Parameters
-
segmentation | A pointer to the segmentation to set. |
- Precondition
- Segmentation node is nullptr.
◆ SetMultiSelectionMode
void QmitkMultiLabelSelectionWidget::SetMultiSelectionMode |
( |
bool |
multiMode | ) |
|
|
slot |
◆ SetSelectedLabel
The passed label will be used as new selection in the widget.
- Parameters
-
selectedLabel | Value of the selected label. |
◆ SetSelectedLabels
void QmitkMultiLabelSelectionWidget::SetSelectedLabels |
( |
const LabelValueVectorType & |
selectedLabels | ) |
|
|
slot |
Transform a list of label values into the new selection of the inspector.
- Parameters
-
selectedLabels | A list of selected label values. |
The documentation for this class was generated from the following file: