#include <vtkUndoStack.h>
◆ EventIds
| Enumerator |
|---|
| UndoSetRemovedEvent | |
| UndoSetClearedEvent | |
◆ vtkUndoStack()
| vtkUndoStack::vtkUndoStack |
( |
| ) |
|
|
protected |
◆ ~vtkUndoStack()
| vtkUndoStack::~vtkUndoStack |
( |
| ) |
|
|
overrideprotected |
◆ CanRedo()
| int vtkUndoStack::CanRedo |
( |
| ) |
|
|
inline |
◆ CanUndo()
| int vtkUndoStack::CanUndo |
( |
| ) |
|
|
inline |
◆ Clear()
| void vtkUndoStack::Clear |
( |
| ) |
|
◆ GetNextRedoSet()
Get the UndoSet on the top of the Redo stack, if any.
References CanRedo(), and NULL.
◆ GetNextUndoSet()
Get the UndoSet on the top of the Undo stack, if any.
References CanUndo(), and NULL.
◆ GetNumberOfRedoSets()
| unsigned int vtkUndoStack::GetNumberOfRedoSets |
( |
| ) |
|
Returns the number of sets on the undo stack.
◆ GetNumberOfUndoSets()
| unsigned int vtkUndoStack::GetNumberOfUndoSets |
( |
| ) |
|
Returns the number of sets on the undo stack.
◆ GetRedoSetLabel()
| const char * vtkUndoStack::GetRedoSetLabel |
( |
unsigned int |
position | ) |
|
Returns the label for the set at the given Redo position. 0 is the next set to redo, 1 is the one after the next one and so on.
- Returns
- NULL is no set exists at the given index, otherwise the label for the change set.
References NULL, and position.
◆ GetUndoSetLabel()
| const char * vtkUndoStack::GetUndoSetLabel |
( |
unsigned int |
position | ) |
|
Returns the label for the set at the given Undo position. 0 is the current undo set, 1 is the one preceding to the current one and so on.
- Returns
- NULL is no set exists at the given index, otherwise the label for the change set.
References NULL, and position.
◆ New()
◆ PopRedoStack()
| void vtkUndoStack::PopRedoStack |
( |
| ) |
|
Pop the redo stack. The UndoElement on the top of the redo stack is popped and then pushed on the undo stack. This is same as Redo() except that vtkUndoElement::Redo() is not invoked.
Referenced by Redo().
◆ PopUndoStack()
| void vtkUndoStack::PopUndoStack |
( |
| ) |
|
Pop the undo stack. The UndoElement on the top of the undo stack is popped from the undo stack and pushed on the redo stack. This is same as Undo() except that the vtkUndoElement::Undo() is not invoked.
Referenced by Undo().
◆ PrintSelf()
| void vtkUndoStack::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
◆ Push()
| void vtkUndoStack::Push |
( |
const char * |
label, |
|
|
vtkUndoSet * |
changeSet |
|
) |
| |
|
virtual |
Push an undo set on the Undo stack. This will clear any sets in the Redo stack.
References UndoSetRemovedEvent.
◆ Redo()
| int vtkUndoStack::Redo |
( |
| ) |
|
|
virtual |
Performs a Redo using the set on the top of the redo stack. The set is poped from the redo stack and pushed at the top of the undo stack. Before redo begins, it fires vtkCommand::StartEvent and when redo completes, it fires vtkCommand::EndEvent.
- Returns
- the status of the operation.
References PopRedoStack().
◆ Undo()
| int vtkUndoStack::Undo |
( |
| ) |
|
|
virtual |
Performs an Undo using the set on the top of the undo stack. The set is poped from the undo stack and pushed at the top of the redo stack. Before undo begins, it fires vtkCommand::StartEvent and when undo completes, it fires vtkCommand::EndEvent.
- Returns
- the status of the operation.
References PopUndoStack().
◆ vtkGetMacro() [1/3]
| vtkUndoStack::vtkGetMacro |
( |
InRedo |
, |
|
|
bool |
|
|
) |
| |
Returns if the stack is currently being redone.
◆ vtkGetMacro() [2/3]
| vtkUndoStack::vtkGetMacro |
( |
InUndo |
, |
|
|
bool |
|
|
) |
| |
Returns if the stack is currently being undone.
◆ vtkGetMacro() [3/3]
◆ vtkSetClampMacro()
| vtkUndoStack::vtkSetClampMacro |
( |
StackDepth |
, |
|
|
int |
, |
|
|
1 |
, |
|
|
100 |
|
|
) |
| |
Get set the maximum stack depth. As more entries are pushed on the stack, if its size exceeds this limit then old entries will be removed. Default is 10.
◆ vtkTypeMacro()
◆ StackDepth
| int vtkUndoStack::StackDepth |
|
protected |
The documentation for this class was generated from the following files: