src
paraview-5.12
Qt
ApplicationComponents
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
;
10
class
vtkPVDataInformation
;
11
16
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqSaveDataReaction
:
public
pqReaction
17
{
18
Q_OBJECT
19
typedef
pqReaction
Superclass;
20
21
public
:
25
pqSaveDataReaction
(QAction* parent);
26
34
static
bool
saveActiveData(
const
QString& files);
35
static
bool
saveActiveData();
36
37
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
41
void
updateEnableState
()
override
;
45
void
dataUpdated(
pqPipelineSource
*
source
);
46
47
protected
:
51
void
onTriggered
()
override
{
pqSaveDataReaction::saveActiveData
(); }
52
53
private
:
54
Q_DISABLE_COPY(
pqSaveDataReaction
)
55
56
static
QString defaultExtension(
vtkPVDataInformation
* info);
57
static
void
setDefaultExtension(
vtkPVDataInformation
* info,
const
QString& ext);
58
};
59
60
#endif
source
source
pqReaction.h
pqSaveDataReaction
Definition:
pqSaveDataReaction.h:16
pqPipelineSource
PQ representation for a vtkSMProxy that can be involved in a pipeline.
Definition:
pqPipelineSource.h:32
vtkPVDataInformation
provides meta data about a vtkDataObject subclass.
Definition:
vtkPVDataInformation.h:42
pqReaction::updateEnableState
virtual void updateEnableState()
Definition:
pqReaction.h:48
pqSaveDataReaction::onTriggered
void onTriggered() override
Called when the action is triggered.
Definition:
pqSaveDataReaction.h:51
pqReaction
Definition:
pqReaction.h:25
pqSaveDataReaction::saveActiveData
static bool saveActiveData()
Generated by
1.8.17 on Wed Mar 27 2024