18 #ifndef vtkUndoElement_h 19 #define vtkUndoElement_h 35 virtual int Undo() = 0;
41 virtual int Redo() = 0;
52 vtkGetMacro(Mergeable,
bool);
72 this->UndoSetWorkingContext = workCTX;
85 vtkSetMacro(Mergeable,
bool);
unit undo-redo-able operation.
virtual void SetUndoSetWorkingContext(vtkCollection *workCTX)
#define VTKPVVTKEXTENSIONSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
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.
void operator=(const vtkObjectBase &)