pqAnimationManager.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 pqAnimationManager_h
5 #define pqAnimationManager_h
6 
7 #include <QObject>
8 
9 #include "pqComponentsModule.h" // for exports
10 
11 class QSize;
12 
13 class pqAnimationCue;
14 class pqAnimationScene;
15 class pqProxy;
16 class pqServer;
17 class pqView;
18 class vtkSMProxy;
19 class vtkObject;
20 
28 {
29  Q_OBJECT
30 public:
31  pqAnimationManager(QObject* parent = nullptr);
32  ~pqAnimationManager() override;
33 
37  pqAnimationScene* getActiveScene() const;
38 
42  pqAnimationScene* getScene(pqServer* server) const;
43 
49  pqAnimationCue* getCue(
50  pqAnimationScene* scene, vtkSMProxy* proxy, const char* propertyname, int index) const;
51 
56  bool saveGeometry(const QString& filename, pqView* view);
57 
61  bool animationPlaying() const;
62 
63 Q_SIGNALS:
67  void activeSceneChanged(pqAnimationScene* scene);
68 
72  void activeServerChanged(pqServer* scene);
73 
77  void saveProgress(const QString&, int);
78 
83  void beginNonUndoableChanges();
84 
89  void endNonUndoableChanges();
90 
94  void writeAnimation(const QString& filename, int magnification, double frameRate);
95 
99  void beginPlay(vtkObject* caller, unsigned long, void*, void* reversed);
100 
104  void endPlay(vtkObject* caller, unsigned long, void*, void* reversed);
105 
106 public Q_SLOTS:
107  // Called when the active server changes.
108  void onActiveServerChanged(pqServer*);
109 
110 protected Q_SLOTS:
111  void onProxyAdded(pqProxy*);
112  void onProxyRemoved(pqProxy*);
113 
117  void onTick(int);
118 
122  void onBeginPlay(vtkObject* caller, unsigned long, void*, void* reversed);
123  void onEndPlay(vtkObject* caller, unsigned long, void*, void* reversed);
124 
125 private:
126  Q_DISABLE_COPY(pqAnimationManager)
127 
128  class pqInternals;
129  pqInternals* Internals;
130 };
131 
132 #endif
#define PQCOMPONENTS_EXPORT
pqAnimationCue is the pqProxy wrapping an animation proxy.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqAnimationManager manages the Animation sub-system.
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
index
pqAnimationScene is a representation for a vtkSMAnimationScene proxy.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35