RAII helper that captures state for undoing label property modifications.
More...
#include <mitkSegChangeOperationApplier.h>
RAII helper that captures state for undoing label property modifications.
On construction, the current label properties are captured as the undo operation. After the label properties are modified, call RegisterUndoRedoOperationEvent() to capture the new state and register both on the undo stack.
- See also
- SegLabelPropModifyOperation
-
SegChangeOperationApplier
Definition at line 193 of file mitkSegChangeOperationApplier.h.
◆ SegLabelPropModifyUndoRedoHelper()
Capture the current properties of the specified labels for undo.
- Parameters
-
| segmentation | The segmentation to operate on. |
| relevantLabels | The label values whose properties will be modified. |
◆ ~SegLabelPropModifyUndoRedoHelper()
| mitk::SegLabelPropModifyUndoRedoHelper::~SegLabelPropModifyUndoRedoHelper |
( |
| ) |
|
◆ RegisterUndoRedoOperationEvent()
| void mitk::SegLabelPropModifyUndoRedoHelper::RegisterUndoRedoOperationEvent |
( |
const std::string & |
description | ) |
|
Capture the modified label properties as the redo operation and register the pair.
- Parameters
-
| description | A human-readable description of the operation for the undo stack. |
◆ m_RelevantLabels
◆ m_Segmentation
| MultiLabelSegmentation::Pointer mitk::SegLabelPropModifyUndoRedoHelper::m_Segmentation |
|
protected |
◆ m_UndoOperation
The documentation for this class was generated from the following file: