vtkSMInteractionUndoStackBuilder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMInteractionUndoStackBuilder.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 vtkSMInteractionUndoStackBuilder_h
26 #define vtkSMInteractionUndoStackBuilder_h
27 
28 #include "vtkRemotingMiscModule.h" //needed for exports
29 #include "vtkSMObject.h"
30 
31 class vtkSMInteractionUndoStackBuilderObserver;
33 class vtkSMUndoStack;
34 class vtkUndoSet;
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  void SetRenderView(vtkSMRenderViewProxy*);
49  vtkGetObjectMacro(RenderView, vtkSMRenderViewProxy);
51 
53 
56  vtkGetObjectMacro(UndoStack, vtkSMUndoStack);
57  virtual void SetUndoStack(vtkSMUndoStack*);
59 
63  void Clear();
64 
72  void StartInteraction();
73 
82  void EndInteraction();
83 
84 protected:
87 
91 
95  void ExecuteEvent(vtkObject* caller, unsigned long event, void* data);
96 
97  void PropertyModified(const char* pname);
98 
99  friend class vtkSMInteractionUndoStackBuilderObserver;
100 
101 private:
103  void operator=(const vtkSMInteractionUndoStackBuilder&) = delete;
104 
105  vtkSMInteractionUndoStackBuilderObserver* Observer;
106 };
107 
108 #endif
This is the undo/redo stack for the Server Manager.
superclass for most server manager classes
Definition: vtkSMObject.h:29
implementation for View that includes render window and renderers.
builder server manager undo sets for render view interactions and pushes them on the undo stack...
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
Definition: vtkUndoSet.h:42
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override