pqAnimationManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqAnimationManager.h
5 
6  Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
7  All rights reserved.
8 
9  ParaView is a free software; you can redistribute it and/or modify it
10  under the terms of the ParaView license version 1.2.
11 
12  See License_v1.2.txt for the full ParaView license.
13  A copy of this license can be obtained by contacting
14  Kitware Inc.
15  28 Corporate Drive
16  Clifton Park, NY 12065
17  USA
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 ========================================================================*/
32 #ifndef pqAnimationManager_h
33 #define pqAnimationManager_h
34 
35 #include <QObject>
36 
37 #include "pqComponentsModule.h" // for exports
38 
39 class QSize;
40 
41 class pqAnimationCue;
42 class pqAnimationScene;
43 class pqProxy;
44 class pqServer;
45 class pqView;
46 class vtkSMProxy;
47 
55 {
56  Q_OBJECT
57 public:
58  pqAnimationManager(QObject* parent = nullptr);
59  ~pqAnimationManager() override;
60 
64  pqAnimationScene* getActiveScene() const;
65 
69  pqAnimationScene* getScene(pqServer* server) const;
70 
76  pqAnimationCue* getCue(
77  pqAnimationScene* scene, vtkSMProxy* proxy, const char* propertyname, int index) const;
78 
83  bool saveGeometry(const QString& filename, pqView* view);
84 
88  bool animationPlaying() const;
89 
90 Q_SIGNALS:
94  void activeSceneChanged(pqAnimationScene* scene);
95 
99  void activeServerChanged(pqServer* scene);
100 
104  void saveProgress(const QString&, int);
105 
110  void beginNonUndoableChanges();
111 
116  void endNonUndoableChanges();
117 
121  void writeAnimation(const QString& filename, int magnification, double frameRate);
122 
126  void beginPlay();
127 
131  void endPlay();
132 
133 public Q_SLOTS:
134  // Called when the active server changes.
135  void onActiveServerChanged(pqServer*);
136 
137 protected Q_SLOTS:
138  void onProxyAdded(pqProxy*);
139  void onProxyRemoved(pqProxy*);
140 
144  void onTick(int);
145 
149  void onBeginPlay();
150  void onEndPlay();
151 
152 private:
153  Q_DISABLE_COPY(pqAnimationManager)
154 
155  class pqInternals;
156  pqInternals* Internals;
157 };
158 
159 #endif
#define PQCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:54
pqAnimationManager manages the Animation sub-system.
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:56
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
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:63