13 #ifndef QmitkMultiLabelSelectionLabel_h
14 #define QmitkMultiLabelSelectionLabel_h
118 std::unique_ptr<Ui::QmitkMultiLabelSelectionLabel>
m_Controls;
121 void enterEvent(QEnterEvent* event)
override;
122 void leaveEvent(QEvent* event)
override;
125 bool m_HighlightingActivated =
true;
126 mitk::DataNode::Pointer m_SegmentationNode;
127 unsigned long m_SegmentationNodeDataMTime;
#define MITKSEGMENTATIONUI_EXPORT
Widget that behaves like a QLabel and displays selected labels of a segmentation with name and color.
mitk::MultiLabelSegmentation::LabelValueType LabelValueType
QString GetEmptyInfo() const
Returns the info text displayed when no label is selected.
LabelValueVectorType GetSelectedLabels() const
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).
QmitkMultiLabelSelectionLabel(QWidget *parent=nullptr)
Constructs the multi-label selection label widget.
~QmitkMultiLabelSelectionLabel()
void SetEmptyInfo(QString info)
mitk::MultiLabelSegmentation::LabelValueVectorType LabelValueVectorType
void SetSelectedLabels(const LabelValueVectorType &selectedLabels)
Transform a list of label values into the new selection of the inspector.
void SetMultiLabelSegmentation(mitk::MultiLabelSegmentation *segmentation)
Sets the segmentation that will be used and monitored by the widget.
bool GetHighlightingActivated() const
Returns whether label highlighting in render windows is activated.
mitk::MultiLabelSegmentation::Pointer m_Segmentation
LabelValueVectorType m_LastValidSelectedLabels
void SetHighlightingActivated(bool visiblityMod)
void CurrentSelectionChanged(LabelValueVectorType labels) const
A signal that will be emitted if the selected labels change.
mitk::MultiLabelSegmentation * GetMultiLabelSegmentation() const
Returns the currently set segmentation.
void SetMultiLabelNode(mitk::DataNode *node)
Sets the segmentation node that will be used /monitored by the widget.
void SetSelectedLabel(mitk::MultiLabelSegmentation::LabelValueType selectedLabel)
The passed label will be used as new selection in the widget.
std::unique_ptr< Ui::QmitkMultiLabelSelectionLabel > m_Controls
mitk::DataNode * GetMultiLabelNode() const
Returns the segmentation data node.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Convenience class that helps to manage the lifetime of itk event observers.
RAII guard for managing label highlighting on data nodes.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
std::vector< LabelValueType > LabelValueVectorType
mitk::Label::PixelType LabelValueType