pqSaveDataReaction.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 pqSaveDataReaction_h
5 #define pqSaveDataReaction_h
6 
7 #include "pqReaction.h"
8 
9 class pqPipelineSource;
11 
16 class PQAPPLICATIONCOMPONENTS_EXPORT pqSaveDataReaction : public pqReaction
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
25  pqSaveDataReaction(QAction* parent);
26 
35  static bool saveActiveData(const QString& files, const QString& writerName = "");
36  static bool saveActiveData();
37 
38 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
42  void updateEnableState() override;
46  void dataUpdated(pqPipelineSource* source);
47 
48 protected:
53 
54 private:
55  Q_DISABLE_COPY(pqSaveDataReaction)
56 
57  static QString defaultExtension(vtkPVDataInformation* info);
58  static void setDefaultExtension(vtkPVDataInformation* info, const QString& ext);
59 };
60 
61 #endif
provides meta data about a vtkDataObject subclass.
virtual void updateEnableState()
Definition: pqReaction.h:48
info
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
Reaction to save data files.
source
PQ representation for a vtkSMProxy that can be involved in a pipeline.
static bool saveActiveData()
void onTriggered() override
Called when the action is triggered.