13 #ifndef QmitkMultiLabelSelectionLabel_h
14 #define QmitkMultiLabelSelectionLabel_h
113 std::unique_ptr<Ui::QmitkMultiLabelSelectionLabel>
m_Controls;
116 void enterEvent(QEnterEvent* event)
override;
117 void leaveEvent(QEvent* event)
override;
120 bool m_HighlightingActivated =
true;
121 mitk::DataNode::Pointer m_SegmentationNode;
122 unsigned long m_SegmentationNodeDataMTime;
#define MITKSEGMENTATIONUI_EXPORT
mitk::MultiLabelSegmentation::LabelValueType LabelValueType
QString GetEmptyInfo() const
LabelValueVectorType GetSelectedLabels() const
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values).
QmitkMultiLabelSelectionLabel(QWidget *parent=nullptr)
~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
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
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
Class for nodes of the DataTree.
Convenience class that helps to manage the lifetime of itk event observers.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
std::vector< LabelValueType > LabelValueVectorType
mitk::Label::PixelType LabelValueType