pqViewStreamingBehavior.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 pqViewStreamingBehavior_h
5 #define pqViewStreamingBehavior_h
6 
8 #include "pqTimer.h"
9 #include <QObject>
10 
11 class pqView;
12 class vtkObject;
13 
27 {
28  Q_OBJECT
29  typedef QObject Superclass;
30 
31 public:
32  pqViewStreamingBehavior(QObject* parent = nullptr);
33  ~pqViewStreamingBehavior() override;
34 
39  void stopAutoUpdates();
40  void resumeAutoUpdates();
41  void triggerSingleUpdate();
42 
43 protected Q_SLOTS:
44  void onViewAdded(pqView*);
45  void onViewUpdated(vtkObject*, unsigned long, void*);
46  void onTimeout();
47 
48 private:
49  Q_DISABLE_COPY(pqViewStreamingBehavior)
50  pqTimer Timer;
51  int Pass;
52  bool DelayUpdate;
53  bool DisableAutomaticUpdates;
54 
55  void onStartInteractionEvent();
56  void onEndInteractionEvent();
57 };
58 
59 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqViewStreamingBehavior is used to manage rendering of render-view when streaming is enabled...