Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <mitkLabelHighlightGuard.h>
Public Member Functions | |
void | SetSegmentationNode (DataNode *node) |
DataNode::Pointer | GetSegmentationNode () const |
void | SetHighlightedLabels (LabelSetImage::LabelValueVectorType labels) |
void | SetHighlightInvisibleLabels (bool highlightInvisible) |
~LabelHighlightGuard () | |
Static Public Member Functions | |
constexpr static const char * | PROPERTY_NAME_LABELS_HIGHLIGHTED () |
constexpr static const char * | PROPERTY_NAME_HIGHLIGHT_INVISIBLE () |
Static Protected Member Functions | |
static void | UpdateNode (DataNode *node, LabelSetImage::LabelValueVectorType labels, bool highlightInvisible) |
Protected Attributes | |
LabelSetImage::LabelValueVectorType | m_Labels |
bool | m_HighlightInvisible |
WeakPointer< DataNode > | m_Node |
Helper class that allows to manage the node properties for label highlighting. Using the class ensures that the highlighting will always be removed if needed: (a) the destructor of the guard is called, or (b) the node changes (highlight of former node will be removed). The guard also manages the triggering the RenderWindowManager, if need, to refresh the render windows.
Definition at line 29 of file mitkLabelHighlightGuard.h.
mitk::LabelHighlightGuard::~LabelHighlightGuard | ( | ) |
DataNode::Pointer mitk::LabelHighlightGuard::GetSegmentationNode | ( | ) | const |
|
inlinestaticconstexpr |
Definition at line 45 of file mitkLabelHighlightGuard.h.
|
inlinestaticconstexpr |
Definition at line 40 of file mitkLabelHighlightGuard.h.
void mitk::LabelHighlightGuard::SetHighlightedLabels | ( | LabelSetImage::LabelValueVectorType | labels | ) |
void mitk::LabelHighlightGuard::SetHighlightInvisibleLabels | ( | bool | highlightInvisible | ) |
void mitk::LabelHighlightGuard::SetSegmentationNode | ( | DataNode * | node | ) |
|
staticprotected |
|
protected |
Definition at line 53 of file mitkLabelHighlightGuard.h.
|
protected |
Definition at line 52 of file mitkLabelHighlightGuard.h.
|
protected |
Definition at line 54 of file mitkLabelHighlightGuard.h.