30 #ifndef vtkUndoElement_h 31 #define vtkUndoElement_h 33 #include "vtkObject.h" 34 #include "vtkPVVTKExtensionsCoreModule.h" 41 void PrintSelf(ostream& os, vtkIndent indent);
47 virtual int Undo() = 0;
53 virtual int Redo() = 0;
64 vtkGetMacro(Mergeable,
bool);
84 this->UndoSetWorkingContext = workCTX;
97 vtkSetMacro(Mergeable,
bool);
unit undo-redo-able operation.
virtual void SetUndoSetWorkingContext(vtkCollection *workCTX)
virtual bool Merge(vtkUndoElement *vtkNotUsed(new_element))
Called on the older element in the UndoSet to merge with the element being added if both the elements...
vtkCollection * UndoSetWorkingContext
Subclasses must set this flag to enable merging of consecutive elements in an UndoSet.
bool Mergeable
Subclasses must set this flag to enable merging of consecutive elements in an UndoSet.