pqUseSeparateOpacityArrayReaction.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 pqUseSeparateOpacityArrayReaction_h
5 #define pqUseSeparateOpacityArrayReaction_h
6 
7 #include "pqPropertyLinks.h" // For Links
8 #include "pqReaction.h"
9 
10 #include <QPointer>
11 
13 
19 {
20  Q_OBJECT
21  using Superclass = pqReaction;
22 
23 public:
28  pqUseSeparateOpacityArrayReaction(QAction* parent, bool track_active_objects = true);
30 
34  pqDataRepresentation* representation() const;
35 
36 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
40  void setRepresentation(pqDataRepresentation*);
41 
42 protected Q_SLOTS:
46  void updateEnableState() override;
47 
48 private:
49  Q_DISABLE_COPY(pqUseSeparateOpacityArrayReaction)
50 
51  pqPropertyLinks Links;
52  QPointer<pqDataRepresentation> CachedRepresentation;
53  bool TrackActiveObjects;
54 };
55 
56 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqReaction(QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
Constructor.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
Reaction to toggle the use of separated array for opacity in a representation.