pqUseSeparateColorMapReaction.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 pqUseSeparateColorMapReaction_h
5 #define pqUseSeparateColorMapReaction_h
6 
7 #include "pqPropertyLinks.h" // For Links
8 #include "pqReaction.h"
9 #include <QPointer>
10 
13 
19 {
20  Q_OBJECT
21  typedef pqReaction Superclass;
22 
23 public:
30  QAction* parent, pqDisplayColorWidget* colorWidget, bool track_active_objects = true);
32 
36  pqDataRepresentation* representation() const;
37 
38 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
42  void setRepresentation(pqDataRepresentation*);
43 
44 protected Q_SLOTS:
48  void updateEnableState() override;
49 
53  void onTriggered() override;
54 
55 private:
56  Q_DISABLE_COPY(pqUseSeparateColorMapReaction)
57 
58  pqPropertyLinks Links;
59  QPointer<pqDataRepresentation> CachedRepresentation;
60  pqDisplayColorWidget* ColorWidget;
61  bool TrackActiveObjects;
62  bool BlockSignals;
63 };
64 
65 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
pqDisplayColorWidget is a widget that can be used to select the array to with for representations (al...
Reaction to toggle the use of separated color map for an array in a representation.
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46