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 =========================================================================*/
26 #ifndef pqProxyModifiedStateUndoElement_h
27 #define pqProxyModifiedStateUndoElement_h
28 
29 #include "pqCoreModule.h"
30 #include "vtkSMUndoElement.h"
31 
32 class pqProxy;
33 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  int Undo() override { return this->InternalUndoRedo(true) ? 1 : 0; }
42  int Redo() override { return this->InternalUndoRedo(false) ? 1 : 0; }
43 
48  void MadeUnmodified(pqProxy*);
49 
54  void MadeUninitialized(pqProxy*);
55 
56 protected:
59 
60  bool InternalUndoRedo(bool undo);
61  vtkTypeUInt32 ProxySourceGlobalId;
62  bool Reverse;
63 
64 private:
66  void operator=(const pqProxyModifiedStateUndoElement&) = delete;
67 };
68 
69 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
int Redo() override
Redo the operation encaspsulated by this element.
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
int Undo() override
Undo the operation encapsulated by this element.
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:56
static vtkObject * New()
abstract superclass for Server Manager undo elements.