ParaView
|
This is the concrete implementation for the Undo element for a property modification event. More...
#include <vtkSMPropertyModificationUndoElement.h>
Public Types | |
typedef vtkSMUndoElement | Superclass |
![]() | |
typedef vtkUndoElement | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Undo () |
Undo the operation encapsulated by this element. More... | |
virtual int | Redo () |
Redo the operation encaspsulated by this element. More... | |
void | ModifiedProperty (vtkSMProxy *proxy, const char *propertyname) |
Set the property/proxy that was modified. More... | |
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 are mergeable . More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkSMSession * | GetSession () |
virtual void | SetSession (vtkSMSession *) |
virtual vtkSMSessionProxyManager * | GetSessionProxyManager () |
Return the corresponding ProxyManager if any. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetUndoSetWorkingContext (vtkCollection *workCTX) |
virtual bool | GetMergeable () |
Returns if this undo element can be merged with other undo elements. More... | |
Static Public Member Functions | |
static vtkSMPropertyModificationUndoElement * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMPropertyModificationUndoElement * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSMUndoElement * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkUndoElement * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSMPropertyModificationUndoElement () | |
~vtkSMPropertyModificationUndoElement () | |
int | RevertToState () |
virtual void | SetPropertyName (const char *) |
![]() | |
vtkSMUndoElement () | |
~vtkSMUndoElement () | |
![]() | |
vtkUndoElement () | |
~vtkUndoElement () | |
virtual void | SetMergeable (bool) |
Subclasses must set this flag to enable merging of consecutive elements in an UndoSet. More... | |
Protected Attributes | |
vtkTypeUInt32 | ProxyGlobalID |
char * | PropertyName |
vtkSMMessage * | PropertyState |
![]() | |
vtkWeakPointer< vtkSMSession > | Session |
![]() | |
bool | Mergeable |
Subclasses must set this flag to enable merging of consecutive elements in an UndoSet. More... | |
vtkCollection * | UndoSetWorkingContext |
Subclasses must set this flag to enable merging of consecutive elements in an UndoSet. More... | |
This is the concrete implementation for the Undo element for a property modification event.
The undo action sets the property to the value that was pushed on to the server previous to the modification. The redo action sets the property to the modified value.
Definition at line 33 of file vtkSMPropertyModificationUndoElement.h.
Definition at line 38 of file vtkSMPropertyModificationUndoElement.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkSMUndoElement.
|
static |
|
virtual |
Reimplemented from vtkSMUndoElement.
|
static |
void vtkSMPropertyModificationUndoElement::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Undo the operation encapsulated by this element.
Implements vtkUndoElement.
|
virtual |
Redo the operation encaspsulated by this element.
Implements vtkUndoElement.
void vtkSMPropertyModificationUndoElement::ModifiedProperty | ( | vtkSMProxy * | proxy, |
const char * | propertyname | ||
) |
Set the property/proxy that was modified.
|
virtual |
Called on the older element in the UndoSet to merge with the element being added if both the elements are mergeable
.
vtkSMPropertyModificationUndoElement is mergeable with vtkSMPropertyModificationUndoElement alone if both represent change to the same property. Returns if the merge was successful.
Reimplemented from vtkUndoElement.
|
protected |
|
protectedvirtual |
|
protected |
Definition at line 72 of file vtkSMPropertyModificationUndoElement.h.
|
protected |
Definition at line 75 of file vtkSMPropertyModificationUndoElement.h.
|
protected |
Definition at line 76 of file vtkSMPropertyModificationUndoElement.h.