ParaView
vtkSMGlobalPropertiesLinkUndoElement.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMGlobalPropertiesLinkUndoElement.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkSMGlobalPropertiesLinkUndoElement_h
27 #define vtkSMGlobalPropertiesLinkUndoElement_h
28 
29 #include "vtkPVServerManagerCoreModule.h" //needed for exports
30 #include "vtkSMUndoElement.h"
31 
32 class vtkSMProxy;
33 
34 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMGlobalPropertiesLinkUndoElement : public vtkSMUndoElement
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
44  virtual int Undo();
45 
49  virtual int Redo();
50 
54  void SetLinkState(const char* mgrname, const char* globalpropname, vtkSMProxy* proxy,
55  const char* propname, bool isAddAction);
56 
57 protected:
60 
61  // State ivars
64  vtkTypeUInt32 ProxyGlobalID;
67 
68  // Setter for iVar
69  vtkSetStringMacro(GlobalPropertyManagerName);
70  vtkSetStringMacro(GlobalPropertyName);
71  vtkSetStringMacro(ProxyPropertyName);
72 
73  int UndoRedoInternal(bool undo);
74 
75 private:
77  const vtkSMGlobalPropertiesLinkUndoElement&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkSMGlobalPropertiesLinkUndoElement&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual int Undo()=0
Undo the operation encapsulated by this element.
virtual int Redo()=0
Redo the operation encaspsulated by this element.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
This UndoElement is used to link or unlink GlobalPropertyManager property to a property of an arbitra...
abstract superclass for Server Manager undo elements.