38 #ifndef vtkUndoStack_h 39 #define vtkUndoStack_h 52 UndoSetRemovedEvent = 1989,
53 UndoSetClearedEvent = 1990
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);
#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