ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkSMPropertyModificationUndoElement Class Reference

This is the concrete implementation for the Undo element for a property modification event. More...

#include <vtkSMPropertyModificationUndoElement.h>

Inheritance diagram for vtkSMPropertyModificationUndoElement:
Inheritance graph
[legend]
Collaboration diagram for vtkSMPropertyModificationUndoElement:
Collaboration graph
[legend]

Public Types

typedef vtkSMUndoElement Superclass
 
- Public Types inherited from vtkSMUndoElement
typedef vtkUndoElement Superclass
 
- Public Types inherited from vtkUndoElement
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...
 
- Public Member Functions inherited from vtkSMUndoElement
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkSMSessionGetSession ()
 
virtual void SetSession (vtkSMSession *)
 
virtual vtkSMSessionProxyManagerGetSessionProxyManager ()
 Return the corresponding ProxyManager if any. More...
 
- Public Member Functions inherited from vtkUndoElement
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 vtkSMPropertyModificationUndoElementNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSMPropertyModificationUndoElementSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSMUndoElement
static int IsTypeOf (const char *type)
 
static vtkSMUndoElementSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkUndoElement
static int IsTypeOf (const char *type)
 
static vtkUndoElementSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkSMPropertyModificationUndoElement ()
 
 ~vtkSMPropertyModificationUndoElement ()
 
int RevertToState ()
 
virtual void SetPropertyName (const char *)
 
- Protected Member Functions inherited from vtkSMUndoElement
 vtkSMUndoElement ()
 
 ~vtkSMUndoElement ()
 
- Protected Member Functions inherited from vtkUndoElement
 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
 
vtkSMMessagePropertyState
 
- Protected Attributes inherited from vtkSMUndoElement
vtkWeakPointer< vtkSMSessionSession
 
- Protected Attributes inherited from vtkUndoElement
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...
 

Detailed Description

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.

Member Typedef Documentation

§ Superclass

Definition at line 38 of file vtkSMPropertyModificationUndoElement.h.

Constructor & Destructor Documentation

§ vtkSMPropertyModificationUndoElement()

vtkSMPropertyModificationUndoElement::vtkSMPropertyModificationUndoElement ( )
protected

§ ~vtkSMPropertyModificationUndoElement()

vtkSMPropertyModificationUndoElement::~vtkSMPropertyModificationUndoElement ( )
protected

Member Function Documentation

§ New()

static vtkSMPropertyModificationUndoElement* vtkSMPropertyModificationUndoElement::New ( )
static

§ GetClassName()

virtual const char* vtkSMPropertyModificationUndoElement::GetClassName ( )
virtual

Reimplemented from vtkSMUndoElement.

§ IsTypeOf()

static int vtkSMPropertyModificationUndoElement::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkSMPropertyModificationUndoElement::IsA ( const char *  type)
virtual

Reimplemented from vtkSMUndoElement.

§ SafeDownCast()

static vtkSMPropertyModificationUndoElement* vtkSMPropertyModificationUndoElement::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

void vtkSMPropertyModificationUndoElement::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

§ Undo()

virtual int vtkSMPropertyModificationUndoElement::Undo ( )
virtual

Undo the operation encapsulated by this element.

Implements vtkUndoElement.

§ Redo()

virtual int vtkSMPropertyModificationUndoElement::Redo ( )
virtual

Redo the operation encaspsulated by this element.

Implements vtkUndoElement.

§ ModifiedProperty()

void vtkSMPropertyModificationUndoElement::ModifiedProperty ( vtkSMProxy proxy,
const char *  propertyname 
)

Set the property/proxy that was modified.

§ Merge()

virtual bool vtkSMPropertyModificationUndoElement::Merge ( vtkUndoElement vtkNotUsednew_element)
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.

§ RevertToState()

int vtkSMPropertyModificationUndoElement::RevertToState ( )
protected

§ SetPropertyName()

virtual void vtkSMPropertyModificationUndoElement::SetPropertyName ( const char *  )
protectedvirtual

Member Data Documentation

§ ProxyGlobalID

vtkTypeUInt32 vtkSMPropertyModificationUndoElement::ProxyGlobalID
protected

Definition at line 72 of file vtkSMPropertyModificationUndoElement.h.

§ PropertyName

char* vtkSMPropertyModificationUndoElement::PropertyName
protected

Definition at line 75 of file vtkSMPropertyModificationUndoElement.h.

§ PropertyState

vtkSMMessage* vtkSMPropertyModificationUndoElement::PropertyState
protected

Definition at line 76 of file vtkSMPropertyModificationUndoElement.h.


The documentation for this class was generated from the following file: