vtkSMUndoElement.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMUndoElement.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 =========================================================================*/
25 #ifndef vtkSMUndoElement_h
26 #define vtkSMUndoElement_h
27 
28 #include "vtkRemotingServerManagerModule.h" //needed for exports
29 #include "vtkUndoElement.h"
30 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
31 
32 class vtkSMSession;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  // Get/Set the Session that has been used to generate that undoElement.
42  virtual vtkSMSession* GetSession();
43  virtual void SetSession(vtkSMSession*);
44 
48  virtual vtkSMSessionProxyManager* GetSessionProxyManager();
49 
50 protected:
52  ~vtkSMUndoElement() override;
53 
54  // Identifies the session to which this object is related.
56 
57 private:
58  vtkSMUndoElement(const vtkSMUndoElement&) = delete;
59  void operator=(const vtkSMUndoElement&) = delete;
60 };
61 
62 #endif
unit undo-redo-able operation.
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:34
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.