pqLiveSourceItem.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqLiveSourceItem_h
4 #define pqLiveSourceItem_h
5 
6 #include "pqComponentsModule.h"
7 #include <QObject>
8 
9 #include "vtkType.h" // for vtkTypeUInt32.
10 
11 class pqPipelineSource;
12 class pqView;
13 class vtkPVXMLElement;
14 
32 class PQCOMPONENTS_EXPORT pqLiveSourceItem : public QObject
33 {
34  Q_OBJECT
35  typedef QObject Superclass;
36 
37 public:
38  pqLiveSourceItem(pqPipelineSource* src, vtkPVXMLElement* liveHints, QObject* parent = nullptr);
39  ~pqLiveSourceItem() override;
40 
45  void update(double time);
46 
48 
51  void pause();
52  void resume();
54 
58  bool isPaused();
59 
64  double* getTimestampRange();
65 
69  bool isEmulatedTimeAlgorithm();
70 
74  vtkTypeUInt32 getSourceId();
75 
76 Q_SIGNALS:
80  void refreshSource();
81 
86  void onInformationUpdated();
87 
91  void stateChanged(bool isPaused);
92 
93 private Q_SLOTS:
94  void onViewAdded(pqView*);
95 
96 private: // NOLINT(readability-redundant-access-specifiers)
97  Q_DISABLE_COPY(pqLiveSourceItem)
98 
99 
100 
103  void startInteractionEvent();
104  void endInteractionEvent();
106 
111  void onUpdateInformation();
112 
113  class pqInternals;
114  QScopedPointer<pqInternals> Internals;
115 };
116 
117 #endif
#define PQCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
time
PQ representation for a vtkSMProxy that can be involved in a pipeline.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
This component is used by pqLiveSourceManager to interact with the underlying proxy of the LiveSource...