vtkSMRemoteObjectUpdateUndoElement.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMRemoteObjectUpdateUndoElement.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 =========================================================================*/
24 #ifndef vtkSMRemoteObjectUpdateUndoElement_h
25 #define vtkSMRemoteObjectUpdateUndoElement_h
26 
27 #include "vtkRemotingServerManagerModule.h" //needed for exports
28 #include "vtkSMMessageMinimal.h" // needed for vtkSMMessage
29 #include "vtkSMUndoElement.h"
30 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
31 
32 class vtkSMProxyLocator;
33 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  int Undo() override;
46 
51  int Redo() override;
52 
56  virtual void SetProxyLocator(vtkSMProxyLocator*);
57 
61  virtual void SetUndoRedoState(const vtkSMMessage* before, const vtkSMMessage* after);
62 
63  // Current full state of the UndoElement
66 
67  virtual vtkTypeUInt32 GetGlobalId();
68 
69 protected:
72 
73  // Internal method used to update proxy state based on the state info
74  int UpdateState(const vtkSMMessage* state);
75 
77 
78 private:
80  void operator=(const vtkSMRemoteObjectUpdateUndoElement&) = delete;
81 };
82 
83 #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.