pqCatalystExportReaction.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 pqCatalystExportReaction_h
5 #define pqCatalystExportReaction_h
6 
8 #include "pqReaction.h"
9 
10 #include "vtkType.h" // For vtkTypeUInt32
11 
18 {
19  Q_OBJECT
20  typedef pqReaction Superclass;
21 
22 public:
23  pqCatalystExportReaction(QAction* parent);
24  ~pqCatalystExportReaction() override;
25 
29  static bool exportScript(
30  const QString& name, vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
31 
36  static QString exportScript();
37 
38 protected Q_SLOTS:
42  void onTriggered() override { this->exportScript(); }
43 
44 private:
45  Q_DISABLE_COPY(pqCatalystExportReaction)
46 };
47 
48 #endif
location
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction to export a Catalyst script that will produce configured catalyst data products.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
name
void onTriggered() override
Called when the action is triggered.