pqCatalystPauseSimulationReaction.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 pqCatalystPauseSimulationReaction_h
5 #define pqCatalystPauseSimulationReaction_h
6 
7 #include "pqReaction.h"
8 #include <QPointer>
9 
12 
20 {
21  Q_OBJECT
22  typedef pqReaction Superclass;
23 
24 public:
25  pqCatalystPauseSimulationReaction(QAction* parent = nullptr);
26 
27 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
28  void updateEnableState() override { updateEnableState(PAUSE); }
29 
30 protected:
31  enum Type
32  {
34  PAUSE
35  };
36 
40  void onTriggered() override { this->setPauseSimulation(true); }
41 
42  void setPauseSimulation(bool pause);
44 
45 private:
46  Q_DISABLE_COPY(pqCatalystPauseSimulationReaction)
47 };
48 
49 #endif
void onTriggered() override
Called when the action is triggered.
Manages the live-coprocessing link.
Performs additional operation on the Live client.
type
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
Reaction for setting a breakpoint to Catalyst CoProcessing Engine for Live-Data Visualization.