pqLiveSourceBehavior.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 pqLiveSourceBehavior_h
5 #define pqLiveSourceBehavior_h
6 
8 #include <QObject>
9 #include <QScopedPointer>
10 
11 class pqPipelineSource;
12 class pqView;
13 
26 {
27  Q_OBJECT
28  typedef QObject Superclass;
29 
30 public:
31  pqLiveSourceBehavior(QObject* parent = nullptr);
32  ~pqLiveSourceBehavior() override;
33 
37  static void pause();
38 
42  static void resume();
43 
47  static bool isPaused() { return pqLiveSourceBehavior::PauseLiveUpdates; }
48 
49 protected Q_SLOTS:
50  void viewAdded(pqView*);
51  void sourceAdded(pqPipelineSource*);
52  void timeout();
53 
54 private:
55  Q_DISABLE_COPY(pqLiveSourceBehavior);
56  void startInteractionEvent();
57  void endInteractionEvent();
58 
59  class pqInternals;
60  QScopedPointer<pqInternals> Internals;
61 
62  static bool PauseLiveUpdates;
63 };
64 
65 #endif
static bool isPaused()
Returns true if live updates are paused.
pqLiveSourceBehavior adds support for "live" algorithms.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
PQ representation for a vtkSMProxy that can be involved in a pipeline.