pqTimeKeeper.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 pqTimeKeeper_h
5 #define pqTimeKeeper_h
6 
7 #include "pqProxy.h"
8 #include <QPair>
9 
10 class vtkSMProxy;
11 
19 {
20  Q_OBJECT
21 public:
22  pqTimeKeeper(const QString& group, const QString& name, vtkSMProxy* timekeeper, pqServer* server,
23  QObject* parent = nullptr);
24  ~pqTimeKeeper() override;
25 
29  int getNumberOfTimeStepValues() const;
30 
35  double getTimeStepValue(int index) const;
36 
41  int getTimeStepValueIndex(double time) const;
42 
46  QList<double> getTimeSteps() const;
47 
52  QPair<double, double> getTimeRange() const;
53 
57  double getTime() const;
58 
62  void setTime(double time);
63 
64 Q_SIGNALS:
68  void timeStepsChanged();
69 
73  void timeChanged();
74 
78  void timeRangeChanged();
79 
80 private:
81  Q_DISABLE_COPY(pqTimeKeeper)
82 
83  class pqInternals;
84  pqInternals* Internals;
85 };
86 
87 #endif
pqTimeKeeper is pqProxy for "TimeKeeper" proxy.
Definition: pqTimeKeeper.h:18
name
time
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
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
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35