vtkSMUndoElement.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSMUndoElement_h
14 #define vtkSMUndoElement_h
15 
16 #include "vtkRemotingServerManagerModule.h" //needed for exports
17 #include "vtkUndoElement.h"
18 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
19 
20 class vtkSMSession;
22 
24 {
25 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  // Get/Set the Session that has been used to generate that undoElement.
30  virtual vtkSMSession* GetSession();
31  virtual void SetSession(vtkSMSession*);
32 
36  virtual vtkSMSessionProxyManager* GetSessionProxyManager();
37 
38 protected:
40  ~vtkSMUndoElement() override;
41 
42  // Identifies the session to which this object is related.
44 
45 private:
46  vtkSMUndoElement(const vtkSMUndoElement&) = delete;
47  void operator=(const vtkSMUndoElement&) = delete;
48 };
49 
50 #endif
unit undo-redo-able operation.
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:22
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
vtkWeakPointer< vtkSMSession > Session
void PrintSelf(ostream &os, vtkIndent indent) override
abstract superclass for Server Manager undo elements.