pqProxyModifiedStateUndoElement.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef pqProxyModifiedStateUndoElement_h
15 #define pqProxyModifiedStateUndoElement_h
16 
17 #include "pqCoreModule.h"
18 #include "vtkSMUndoElement.h"
19 
20 class pqProxy;
21 
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  int Undo() override { return this->InternalUndoRedo(true) ? 1 : 0; }
30  int Redo() override { return this->InternalUndoRedo(false) ? 1 : 0; }
31 
36  void MadeUnmodified(pqProxy*);
37 
42  void MadeUninitialized(pqProxy*);
43 
44 protected:
47 
48  bool InternalUndoRedo(bool undo);
49  vtkTypeUInt32 ProxySourceGlobalId;
50  bool Reverse;
51 
52 private:
54  void operator=(const pqProxyModifiedStateUndoElement&) = delete;
55 };
56 
57 #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:28
static vtkObject * New()
abstract superclass for Server Manager undo elements.