pqUndoStackBuilder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqUndoStackBuilder_h
5 #define pqUndoStackBuilder_h
6 
7 #include "pqComponentsModule.h"
8 #include "vtkSMMessageMinimal.h"
10 
11 class vtkCommand;
12 
47 {
48 public:
49  static pqUndoStackBuilder* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
59  vtkGetMacro(IgnoreIsolatedChanges, bool);
60  vtkSetMacro(IgnoreIsolatedChanges, bool);
61 
66  void SetUndoStack(vtkSMUndoStack*) override;
67 
71  void OnStateChange(vtkSMSession* session, vtkTypeUInt32 globalId,
72  const vtkSMMessage* previousState, const vtkSMMessage* newState) override;
73 
74 protected:
76  ~pqUndoStackBuilder() override;
77 
81  bool Filter(vtkSMSession* session, vtkTypeUInt32 globalId);
82 
85 
86 private:
87  pqUndoStackBuilder(const pqUndoStackBuilder&) = delete;
88  void operator=(const pqUndoStackBuilder&) = delete;
89 };
90 
91 #endif
builds server manager undo sets and pushes them on the undo stack.
#define PQCOMPONENTS_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:22
virtual void OnStateChange(vtkSMSession *session, vtkTypeUInt32 globalId, const vtkSMMessage *previousState, const vtkSMMessage *newState)
This is the undo/redo stack for the Server Manager.
void PrintSelf(ostream &os, vtkIndent indent) override
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
virtual void SetUndoStack(vtkSMUndoStack *)
Get/Set the undo stack that this builder will build.
static vtkSMUndoStackBuilder * New()
pqUndoStackBuilder extends the vtkSMUndoStackBuilder as follows: