ParaView
pqProxyModifiedStateUndoElement.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqProxyModifiedStateUndoElement.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 =========================================================================*/
23 
24 #ifndef pqProxyModifiedStateUndoElement_h
25 #define pqProxyModifiedStateUndoElement_h
26 
27 #include "pqCoreModule.h"
28 #include "vtkSMUndoElement.h"
29 
30 class pqProxy;
31 
32 class PQCORE_EXPORT pqProxyModifiedStateUndoElement : public vtkSMUndoElement
33 {
34 public:
35  static pqProxyModifiedStateUndoElement* New();
36  vtkTypeMacro(pqProxyModifiedStateUndoElement, vtkSMUndoElement);
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  virtual int Undo()
40  {
41  return this->InternalUndoRedo(true)? 1 : 0;
42  }
43  virtual int Redo()
44  {
45  return this->InternalUndoRedo(false)? 1 : 0;
46  }
47 
50  void MadeUnmodified(pqProxy*);
51 
54  void MadeUninitialized(pqProxy*);
55 
56 protected:
59 
60  bool InternalUndoRedo(bool undo);
61  vtkTypeUInt32 ProxySourceGlobalId;
62  bool Reverse;
63 private:
65  void operator=(const pqProxyModifiedStateUndoElement&) VTK_DELETE_FUNCTION;
66 };
67 
68 #endif
69 
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:52