RAII helper that captures the state of segmentation groups for undo/redo support.
More...
#include <mitkSegChangeOperationApplier.h>
RAII helper that captures the state of segmentation groups for undo/redo support.
On construction, a snapshot of the specified groups is taken (the undo operation). After the modification is performed, call RegisterUndoRedoOperationEvent() to capture the redo state and register both operations on the undo stack.
- See also
- SegGroupModifyOperation
-
SegChangeOperationApplier
Definition at line 67 of file mitkSegChangeOperationApplier.h.
◆ GroupIndexSetType
◆ SegGroupModifyUndoRedoHelper()
| mitk::SegGroupModifyUndoRedoHelper::SegGroupModifyUndoRedoHelper |
( |
MultiLabelSegmentation * |
segmentation, |
|
|
const GroupIndexSetType & |
relevantGroupIDs, |
|
|
bool |
coverAllTimeSteps, |
|
|
TimeStepType |
timeStep = 0, |
|
|
bool |
noLabels = false, |
|
|
bool |
noGroupImages = false, |
|
|
bool |
noNames = false |
|
) |
| |
Capture the current state of the given groups as the undo operation.
- Parameters
-
| segmentation | The segmentation to operate on. |
| relevantGroupIDs | The group indices to capture. |
| coverAllTimeSteps | If true, all time steps are captured; otherwise only the specified one. |
| timeStep | The time step to capture (only used if coverAllTimeSteps is false). |
| noLabels | If true, label information is not captured. |
| noGroupImages | If true, group image data is not captured. |
| noNames | If true, group names are not captured. |
◆ ~SegGroupModifyUndoRedoHelper()
| mitk::SegGroupModifyUndoRedoHelper::~SegGroupModifyUndoRedoHelper |
( |
| ) |
|
◆ RegisterUndoRedoOperationEvent()
| void mitk::SegGroupModifyUndoRedoHelper::RegisterUndoRedoOperationEvent |
( |
const std::string & |
description | ) |
|
Capture the current (modified) 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_CoverAllTimeSteps
| bool mitk::SegGroupModifyUndoRedoHelper::m_CoverAllTimeSteps |
|
protected |
◆ m_NoGroupImages
| bool mitk::SegGroupModifyUndoRedoHelper::m_NoGroupImages |
|
protected |
◆ m_NoLabels
| bool mitk::SegGroupModifyUndoRedoHelper::m_NoLabels |
|
protected |
◆ m_NoNames
| bool mitk::SegGroupModifyUndoRedoHelper::m_NoNames |
|
protected |
◆ m_RelevantGroupIDs
◆ m_Segmentation
| MultiLabelSegmentation::Pointer mitk::SegGroupModifyUndoRedoHelper::m_Segmentation |
|
protected |
◆ m_TimeStep
◆ m_UndoOperation
The documentation for this class was generated from the following file: