pqCatalystConnectReaction.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 pqCatalystConnectReaction_h
5 #define pqCatalystConnectReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include "vtkSmartPointer.h"
10 
18 {
19  Q_OBJECT
20  typedef pqReaction Superclass;
21 
22 public:
23  pqCatalystConnectReaction(QAction* parent = nullptr);
24  ~pqCatalystConnectReaction() override;
25 
29  bool connect();
30 
34  bool disconnect();
35 
36 protected:
40  void onTriggered() override;
41 
46  void updateEnableState() override;
47 
48 private:
49  Q_DISABLE_COPY(pqCatalystConnectReaction)
50 
51  bool IsEstablished = false;
52 };
53 
54 #endif
Reaction for connecting to Catalyst CoProcessing Engine for Live-Data Visualization.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
connect
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46