vtkSMRemoteObjectUpdateUndoElement.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkSMRemoteObjectUpdateUndoElement_h
13 #define vtkSMRemoteObjectUpdateUndoElement_h
14 
15 #include "vtkRemotingServerManagerModule.h" //needed for exports
16 #include "vtkSMMessageMinimal.h" // needed for vtkSMMessage
17 #include "vtkSMUndoElement.h"
18 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
19 
20 class vtkSMProxyLocator;
21 
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
33  int Undo() override;
34 
39  int Redo() override;
40 
44  virtual void SetProxyLocator(vtkSMProxyLocator*);
45 
49  virtual void SetUndoRedoState(const vtkSMMessage* before, const vtkSMMessage* after);
50 
51  // Current full state of the UndoElement
54 
55  virtual vtkTypeUInt32 GetGlobalId();
56 
57 protected:
60 
61  // Internal method used to update proxy state based on the state info
62  int UpdateState(const vtkSMMessage* state);
63 
65 
66 private:
68  void operator=(const vtkSMRemoteObjectUpdateUndoElement&) = delete;
69 };
70 
71 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
virtual int Undo()=0
Undo the operation encapsulated by this element.
virtual int Redo()=0
Redo the operation encaspsulated by this element.
is used to locate proxies referred to in state xmls while loading state files.
static vtkObject * New()
abstract superclass for Server Manager undo elements.