pqColorMapEditor.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 pqColorMapEditor_h
5 #define pqColorMapEditor_h
6 
8 #include <QWidget>
9 
10 class vtkSMProxy;
12 
22 {
23  Q_OBJECT
24  typedef QWidget Superclass;
25 
26 public:
27  pqColorMapEditor(QWidget* parent = nullptr);
28  ~pqColorMapEditor() override;
29 
30 protected Q_SLOTS:
34  void updateActive();
35 
39  void updatePanel();
40 
44  void renderViews();
45 
49  void saveAsDefault();
50 
55  void saveAsArrayDefault();
56 
60  void restoreDefaults();
61 
65  void setAutoUpdate(bool);
66 
67  void updateIfNeeded();
68 
69 protected: // NOLINT(readability-redundant-access-specifiers)
70  void setDataRepresentation(pqDataRepresentation* repr);
71  void setColorTransferFunction(vtkSMProxy* ctf);
72 
73 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
77  void updateScalarBarButtons();
78  void updateColorArraySelectorWidgets();
79  void updateOpacityArraySelectorWidgets();
80  void updateColor2ArraySelectorWidgets();
81 
82 private:
83  Q_DISABLE_COPY(pqColorMapEditor)
84  class pqInternals;
85  pqInternals* Internals;
86  friend class pqInternals;
87 };
88 
89 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqColorMapEditor is a widget that can be used to edit the active color-map, if any.
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140