13 #ifndef mitkLabelHighlightGuard_h
14 #define mitkLabelHighlightGuard_h
101 return "org.mitk.multilabel.labels.highlighted";
110 return "org.mitk.multilabel.highlight_invisible";
116 bool m_HighlightInvisible =
false;
#define MITKMULTILABEL_EXPORT
Central node class of the MITK data tree, associating a data object with properties and mappers.
RAII guard for managing label highlighting on data nodes.
constexpr static const char * PROPERTY_NAME_LABELS_HIGHLIGHTED()
Returns the property name used to store highlighted label values on a data node.
void SetHighlightedLabels(MultiLabelSegmentation::LabelValueVectorType labels)
Sets the label values that should be highlighted.
MultiLabelSegmentation::LabelValueVectorType GetHighlightedLabels() const
Returns the currently highlighted label values.
static void UpdateNode(DataNode *node, MultiLabelSegmentation::LabelValueVectorType labels, bool highlightInvisible)
void SetHighlightInvisibleLabels(bool highlightInvisible)
Sets whether invisible labels should also be highlighted.
DataNode::Pointer GetSegmentationNode() const
Returns the currently associated segmentation data node.
~LabelHighlightGuard()
Destructor. Removes all highlighting from the associated node.
constexpr static const char * PROPERTY_NAME_HIGHLIGHT_INVISIBLE()
Returns the property name used to control highlighting of invisible labels.
void SetSegmentationNode(DataNode *node)
Sets the segmentation node on which labels should be highlighted.
WeakPointer< DataNode > m_Node
std::vector< LabelValueType > LabelValueVectorType
A weak pointer that observes an itk::Object without preventing its deletion.
Find image slices visible on a given plane.
constexpr double HIGHLIGHTED_LABEL_OPACITY
Opacity applied to a hovered/highlighted label by the multi-label mappers.
constexpr double FADED_LABEL_OPACITY
Opacity floor applied to the other labels while one is hovered/highlighted.