26 #ifndef vtkUndoStack_h 27 #define vtkUndoStack_h 40 UndoSetRemovedEvent = 1989,
41 UndoSetClearedEvent = 1990
52 virtual void Push(
const char* label,
vtkUndoSet* changeSet);
61 const char* GetUndoSetLabel(
unsigned int position);
70 const char* GetRedoSetLabel(
unsigned int position);
75 unsigned int GetNumberOfUndoSets();
80 unsigned int GetNumberOfRedoSets();
85 int CanUndo() {
return (this->GetNumberOfUndoSets() > 0); }
90 int CanRedo() {
return (this->GetNumberOfRedoSets() > 0); }
143 vtkGetMacro(InUndo,
bool);
150 vtkGetMacro(InRedo,
bool);
159 vtkSetClampMacro(StackDepth,
int, 1, 100);
160 vtkGetMacro(StackDepth,
int);
#define VTKPVVTKEXTENSIONSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
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.
void operator=(const vtkObjectBase &)
vtkUndoStackInternal * Internal