vtkSMInteractionUndoStackBuilder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSMInteractionUndoStackBuilder_h
14 #define vtkSMInteractionUndoStackBuilder_h
15 
16 #include "vtkRemotingMiscModule.h" //needed for exports
17 #include "vtkSMObject.h"
18 
19 class vtkSMInteractionUndoStackBuilderObserver;
21 class vtkSMUndoStack;
22 class vtkUndoSet;
23 
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
36  void SetRenderView(vtkSMRenderViewProxy*);
37  vtkGetObjectMacro(RenderView, vtkSMRenderViewProxy);
39 
41 
44  vtkGetObjectMacro(UndoStack, vtkSMUndoStack);
45  virtual void SetUndoStack(vtkSMUndoStack*);
47 
51  void Clear();
52 
60  void StartInteraction();
61 
70  void EndInteraction();
71 
72 protected:
75 
79 
83  void ExecuteEvent(vtkObject* caller, unsigned long event, void* data);
84 
85  void PropertyModified(const char* pname);
86 
87  friend class vtkSMInteractionUndoStackBuilderObserver;
88 
89 private:
91  void operator=(const vtkSMInteractionUndoStackBuilder&) = delete;
92 
93  vtkSMInteractionUndoStackBuilderObserver* Observer;
94 };
95 
96 #endif
This is the undo/redo stack for the Server Manager.
superclass for most server manager classes
Definition: vtkSMObject.h:17
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:30
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override