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)
38 
41  void setRepresentation(pqDataRepresentation*);
42  void setActiveRepresentation();
44 
45 protected Q_SLOTS:
49  void updateEnableState() override;
50 
51 private:
52  Q_DISABLE_COPY(pqUseSeparateOpacityArrayReaction)
53 
54  pqPropertyLinks Links;
55  QPointer<pqDataRepresentation> Representation;
56  bool TrackActiveObjects;
57 };
58 
59 #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.