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 
72 
75  void setEmulatedCurrentTime(double time);
76  double getEmulatedCurrentTime();
78 
79 Q_SIGNALS:
83  void emulatedTimeStateChanged(bool isPaused);
84 
85 private Q_SLOTS:
87 
90  void onSourceAdded(pqPipelineSource*);
91  void onSourceRemove(pqPipelineSource*);
93 
98  void onUpdateTimeRanges();
99 
100 private: // NOLINT(readability-redundant-access-specifiers)
101  Q_DISABLE_COPY(pqLiveSourceManager);
102 
103  class pqInternals;
104  QScopedPointer<pqInternals> Internals;
105 };
106 
107 #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...