pqEditColorMapReaction.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 pqEditColorMapReaction_h
5 #define pqEditColorMapReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include <QPointer>
10 
13 
19 {
20  Q_OBJECT
21  typedef pqReaction Superclass;
22 
23 public:
28  pqEditColorMapReaction(QAction* parent, bool track_active_objects = true);
29 
33  static void editColorMap(pqPipelineRepresentation* repr = nullptr);
34 
35 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
39  void updateEnableState() override;
40 
44  void setRepresentation(pqDataRepresentation*);
45 
46 protected:
50  void onTriggered() override;
51 
52 private:
53  Q_DISABLE_COPY(pqEditColorMapReaction)
54  QPointer<pqPipelineRepresentation> Representation;
55 };
56 
57 #endif
Reaction to edit the active representation&#39;s color map or solid color.
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
virtual void updateEnableState()
Definition: pqReaction.h:48
This is PQ representation for a single display.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46