pqLiveSourceManager.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqLiveSourceManager_h
4 #define pqLiveSourceManager_h
5 
6 #include <QObject>
7 
8 #include "pqComponentsModule.h" // for exports
9 
10 class pqPipelineSource;
11 class pqLiveSourceItem;
12 class vtkSMProxy;
13 
22 {
23  Q_OBJECT
24  typedef QObject Superclass;
25 
26 public:
27  pqLiveSourceManager(QObject* parent = nullptr);
28  ~pqLiveSourceManager() override;
29 
31 
35  void pause();
36  void resume();
38 
42  bool isPaused();
43 
47  pqLiveSourceItem* getLiveSourceItem(vtkSMProxy*);
48 
50 
53  void pauseEmulatedTime();
54  void resumeEmulatedTime();
56 
60  bool isEmulatedTimePaused();
61 
63 
67  void setEmulatedSpeedMultiplier(double speed);
68  double getEmulatedSpeedMultiplier();
70 
74  void setEmulatedCurrentTime(double time);
75 
76 Q_SIGNALS:
80  void emulatedTimeStateChanged(bool isPaused);
81 
82 private Q_SLOTS:
84 
87  void onSourceAdded(pqPipelineSource*);
88  void onSourceRemove(pqPipelineSource*);
90 
95  void onUpdateTimeRanges();
96 
97 private: // NOLINT(readability-redundant-access-specifiers)
98  Q_DISABLE_COPY(pqLiveSourceManager);
99 
100  class pqInternals;
101  QScopedPointer<pqInternals> Internals;
102 };
103 
104 #endif
pqLiveSourceManager is the manager that handle all live sources in ParaView It is usually instantiate...
#define PQCOMPONENTS_EXPORT
speed
time
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
PQ representation for a vtkSMProxy that can be involved in a pipeline.
This component is used by pqLiveSourceManager to interact with the underlying proxy of the LiveSource...