|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
|
void | Push (const char *label, vtkUndoSet *changeSet) override |
| Push an undo set on the Undo stack. More...
|
|
int | Undo () override |
| Performs an Undo using the set on the top of the undo stack. More...
|
|
int | Redo () override |
| Performs a Redo using the set on the top of the redo stack. More...
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
|
const char * | GetUndoSetLabel (unsigned int position) |
| Returns the label for the set at the given Undo position. More...
|
|
const char * | GetRedoSetLabel (unsigned int position) |
| Returns the label for the set at the given Redo position. More...
|
|
unsigned int | GetNumberOfUndoSets () |
| Returns the number of sets on the undo stack. More...
|
|
unsigned int | GetNumberOfRedoSets () |
| Returns the number of sets on the undo stack. More...
|
|
int | CanUndo () |
| Returns if undo operation can be performed. More...
|
|
int | CanRedo () |
| Returns if redo operation can be performed. More...
|
|
virtual vtkUndoSet * | GetNextUndoSet () |
| Get the UndoSet on the top of the Undo stack, if any. More...
|
|
virtual vtkUndoSet * | GetNextRedoSet () |
| Get the UndoSet on the top of the Redo stack, if any. More...
|
|
void | PopUndoStack () |
| Pop the undo stack. More...
|
|
void | PopRedoStack () |
| Pop the redo stack. More...
|
|
void | Clear () |
| Clears all the undo/redo elements from the stack. More...
|
|
virtual bool | GetInUndo () |
| Returns if the stack is currently being undone. More...
|
|
virtual bool | GetInRedo () |
| Returns if the stack is currently being redone. More...
|
|
virtual void | SetStackDepth (int) |
| Get set the maximum stack depth. More...
|
|
virtual int | GetStackDepth () |
| Get set the maximum stack depth. More...
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual vtkMTimeType | GetMTime () |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
void | PrintRevisions (ostream &) |
|
This is the undo/redo stack for the Server Manager.
This provides a unified face for undo/redo irrespective of number of connections, their type etc etc.
On every undo/redo, it fetches the XML state change from the server. vtkSMUndoRedoStateLoader is used to generate a vtkUndoSet object from the XML. GUI can subclass vtkSMUndoRedoStateLoader to handle GUI specific XML elements. The loader instance must be set before performing the undo, otherwise vtkSMUndoRedoStateLoader is used.
This class also provides API to push any vtkUndoSet instance on to a server. GUI can use this to push its own changes that is undoable across connections.
- See also
- vtkSMUndoStackBuilder
Definition at line 35 of file vtkSMUndoStack.h.