pqTimeInspectorWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqTimeInspectorWidget.h
5 
6  Copyright (c) 2005,2006 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 pqTimeInspectorWidget_h
33 #define pqTimeInspectorWidget_h
34 
36 
37 #include <QScopedPointer>
38 #include <QVariant>
39 #include <QWidget>
40 
41 class pqAnimationScene;
42 class pqAnimationTrack;
43 class pqServer;
45 class vtkSMProxy;
46 
64 {
65  Q_OBJECT
66  Q_PROPERTY(double sceneStartTime READ sceneStartTime WRITE setSceneStartTime)
67  Q_PROPERTY(double sceneEndTime READ sceneEndTime WRITE setSceneEndTime)
68  Q_PROPERTY(QString scenePlayMode READ scenePlayMode WRITE setScenePlayMode)
69  Q_PROPERTY(QList<QVariant> sceneTimeSteps READ sceneTimeSteps WRITE setSceneTimeSteps)
70  Q_PROPERTY(int sceneNumberOfFrames READ sceneNumberOfFrames WRITE setSceneNumberOfFrames)
71  Q_PROPERTY(QList<QVariant> timeSources READ timeSources WRITE setTimeSources)
72  Q_PROPERTY(
73  QList<QVariant> suppressedTimeSources READ suppressedTimeSources WRITE setSuppressedTimeSources)
74 
75  typedef QWidget Superclass;
76 
77 public:
78  pqTimeInspectorWidget(QWidget* parent = nullptr);
79  ~pqTimeInspectorWidget() override;
80 
84  pqServer* server() const;
85 
89  double sceneStartTime() const;
90  void setSceneStartTime(double);
91 
95  double sceneEndTime() const;
96  void setSceneEndTime(double);
97 
102  QString scenePlayMode() const;
103  void setScenePlayMode(const QString&);
104 
109  QList<QVariant> sceneTimeSteps() const;
110  void setSceneTimeSteps(const QList<QVariant>& val);
111 
116  int sceneNumberOfFrames() const;
117  void setSceneNumberOfFrames(int val);
118 
124  QList<QVariant> timeSources() const;
125  void setTimeSources(const QList<QVariant>& proxies);
126 
131  QList<QVariant> suppressedTimeSources() const;
132  void setSuppressedTimeSources(const QList<QVariant>& proxies);
133 
134 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
138  void setServer(pqServer* server);
139 
143  void setSceneCurrentTime(double);
144 
145  void setAnimationScene(pqAnimationScene* scene);
146 
147 protected Q_SLOTS:
151  void updateSceneTime();
152 
153 private Q_SLOTS:
157  void updateScene();
158 
162  void handleProxyNameChanged(pqServerManagerModelItem*);
163 
167  void toggleTrackSuppression(pqAnimationTrack*);
168 
169  void generalSettingsChanged();
170 
171 Q_SIGNALS:
172  void dummySignal();
173  void suppressedTimeSourcesChanged();
174 
175 private:
176  Q_DISABLE_COPY(pqTimeInspectorWidget)
177 
178  class pqInternals;
179  const QScopedPointer<pqInternals> Internals;
180  class PropertyLinksConnection;
181  class TimeTrack;
182 };
183 
184 #endif
pqTimeInspectorWidget is a widget that allows the user to look at all sources that provide time...
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
#define const
Definition: zconf.h:238
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