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 
46 class PQCOMPONENTS_EXPORT pqUndoStackBuilder : public vtkSMUndoStackBuilder
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
pqUndoStackBuilder
pqUndoStackBuilder extends the vtkSMUndoStackBuilder as follows:
Definition: pqUndoStackBuilder.h:46
pqUndoStackBuilder::IgnoreIsolatedChanges
bool IgnoreIsolatedChanges
Definition: pqUndoStackBuilder.h:83
vtkSMUndoStackBuilder::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkCommand
pqUndoStackBuilder::UndoRedoing
bool UndoRedoing
Definition: pqUndoStackBuilder.h:84
vtkSMUndoStackBuilder::OnStateChange
virtual void OnStateChange(vtkSMSession *session, vtkTypeUInt32 globalId, const vtkSMMessage *previousState, const vtkSMMessage *newState)
vtkSMUndoStackBuilder::New
static vtkSMUndoStackBuilder * New()
vtkSMSession
Definition: vtkSMSession.h:22
vtkIndent
vtkSMMessage
vtkSMUndoStackBuilder::SetUndoStack
virtual void SetUndoStack(vtkSMUndoStack *)
Get/Set the undo stack that this builder will build.
vtkSMUndoStackBuilder.h
vtkSMUndoStackBuilder
builds server manager undo sets and pushes them on the undo stack.
Definition: vtkSMUndoStackBuilder.h:31
vtkSMUndoStack
Definition: vtkSMUndoStack.h:35
vtkSMMessageMinimal.h