38 #ifndef vtkUndoStack_h 39 #define vtkUndoStack_h 41 #include "vtkObject.h" 42 #include "vtkPVVTKExtensionsCoreModule.h" 47 class VTKPVVTKEXTENSIONSCORE_EXPORT
vtkUndoStack :
public vtkObject
52 UndoSetRemovedEvent = 1989,
53 UndoSetClearedEvent = 1990
58 void PrintSelf(ostream& os, vtkIndent indent);
64 virtual void Push(
const char* label,
vtkUndoSet* changeSet);
73 const char* GetUndoSetLabel(
unsigned int position);
82 const char* GetRedoSetLabel(
unsigned int position);
87 unsigned int GetNumberOfUndoSets();
92 unsigned int GetNumberOfRedoSets();
97 int CanUndo() {
return (this->GetNumberOfUndoSets() > 0); }
102 int CanRedo() {
return (this->GetNumberOfRedoSets() > 0); }
155 vtkGetMacro(InUndo,
bool);
162 vtkGetMacro(InRedo,
bool);
171 vtkSetClampMacro(StackDepth,
int, 1, 100);
172 vtkGetMacro(StackDepth,
int);
184 void operator=(const
vtkUndoStack&) VTK_DELETE_FUNCTION;
int CanUndo()
Returns if undo operation can be performed.
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
int CanRedo()
Returns if redo operation can be performed.
vtkUndoStackInternal * Internal