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 
24 class VTKREMOTINGMISC_EXPORT vtkSMInteractionUndoStackBuilder : public vtkSMObject
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
vtkSMObject
superclass for most server manager classes
Definition: vtkSMObject.h:17
vtkSMObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMRenderViewProxy
implementation for View that includes render window and renderers.
Definition: vtkSMRenderViewProxy.h:27
vtkUndoSet
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
Definition: vtkUndoSet.h:30
vtkSMObject.h
vtkObject
vtkIndent
vtkSMInteractionUndoStackBuilder
builder server manager undo sets for render view interactions and pushes them on the undo stack.
Definition: vtkSMInteractionUndoStackBuilder.h:24
vtkSMInteractionUndoStackBuilder::RenderView
vtkSMRenderViewProxy * RenderView
Definition: vtkSMInteractionUndoStackBuilder.h:76
vtkSMObject::New
static vtkSMObject * New()
vtkSMInteractionUndoStackBuilder::UndoStack
vtkSMUndoStack * UndoStack
Definition: vtkSMInteractionUndoStackBuilder.h:77
vtkSMUndoStack
Definition: vtkSMUndoStack.h:35
vtkSMInteractionUndoStackBuilder::UndoSet
vtkUndoSet * UndoSet
Definition: vtkSMInteractionUndoStackBuilder.h:78