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