RAII helper that captures state for undoing a group remove operation.
More...
#include <mitkSegChangeOperationApplier.h>
RAII helper that captures state for undoing a group remove operation.
On construction, a SegGroupInsertOperation is prepared as the undo operation (capturing the groups that are about to be removed). After the removal is performed, call RegisterUndoRedoOperationEvent() to register the undo/redo pair.
- See also
- SegGroupRemoveOperation
-
SegChangeOperationApplier
Definition at line 154 of file mitkSegChangeOperationApplier.h.
◆ GroupIndexSetType
◆ SegGroupRemoveUndoRedoHelper()
| mitk::SegGroupRemoveUndoRedoHelper::SegGroupRemoveUndoRedoHelper |
( |
MultiLabelSegmentation * |
segmentation, |
|
|
const GroupIndexSetType & |
relevantGroupIDs, |
|
|
bool |
noLabels = false, |
|
|
bool |
noGroupImages = false |
|
) |
| |
Capture the current state of the groups that will be removed (for undo).
- Parameters
-
| segmentation | The segmentation to operate on. |
| relevantGroupIDs | The group indices that will be removed. |
| noLabels | If true, label information is not captured. |
| noGroupImages | If true, group image data is not captured. |
◆ ~SegGroupRemoveUndoRedoHelper()
| mitk::SegGroupRemoveUndoRedoHelper::~SegGroupRemoveUndoRedoHelper |
( |
| ) |
|
◆ RegisterUndoRedoOperationEvent()
| void mitk::SegGroupRemoveUndoRedoHelper::RegisterUndoRedoOperationEvent |
( |
const std::string & |
description | ) |
|
Register the undo (insert) and redo (remove) operations on the undo stack.
- Parameters
-
| description | A human-readable description of the operation for the undo stack. |
◆ m_RelevantGroupIDs
◆ m_Segmentation
| MultiLabelSegmentation::Pointer mitk::SegGroupRemoveUndoRedoHelper::m_Segmentation |
|
protected |
◆ m_UndoOperation
The documentation for this class was generated from the following file: