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 #include <QPointer> // For QPointer
9 
10 #include <vtkNew.h> // For vtkNew
11 
15 
21 {
22  Q_OBJECT
23  typedef pqReaction Superclass;
24 
25 public:
30  pqEditColorMapReaction(QAction* parent, bool track_active_objects = true);
31  ~pqEditColorMapReaction() override;
32 
36  void editColorMap(pqPipelineRepresentation* repr = nullptr);
37 
38 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
42  void updateEnableState() override;
43 
45 
48  void setRepresentation(pqDataRepresentation*, int selectedPropertiesType);
50  {
51  this->setRepresentation(repr, 0 /*Representation*/);
52  }
53  void setActiveRepresentation();
55 
56 protected:
60  void onTriggered() override;
61 
62 private:
63  Q_DISABLE_COPY(pqEditColorMapReaction)
64  QPointer<pqPipelineRepresentation> Representation;
65 
66  vtkNew<vtkSMColorMapEditorHelper> ColorMapEditorHelper;
67 };
68 
69 #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
void setRepresentation(pqDataRepresentation *repr)
Set the active representation.
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46
helper for color map editor handling