pqColorAnnotationsPropertyWidget.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 pqColorAnnotationsPropertyWidget_h
5 #define pqColorAnnotationsPropertyWidget_h
6 
8 #include "pqPropertyWidget.h"
9 
10 class QItemSelection;
11 class vtkSMPropertyGroup;
12 
19 {
20  Q_OBJECT;
21  Q_PROPERTY(QList<QVariant> annotations READ annotations WRITE setAnnotations);
22  Q_PROPERTY(QList<QVariant> indexedColors READ indexedColors WRITE setIndexedColors);
23  Q_PROPERTY(QList<QVariant> indexedOpacities READ indexedOpacities WRITE setIndexedOpacities);
24  Q_PROPERTY(QVariant opacityMapping READ opacityMapping WRITE setOpacityMapping);
25 
27 
28 public:
30  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
32 
34 
39  QList<QVariant> annotations() const;
40  void setAnnotations(const QList<QVariant>&);
42 
44 
48  QList<QVariant> indexedColors() const;
49  void setIndexedColors(const QList<QVariant>&);
51 
53 
56  QList<QVariant> indexedOpacities() const;
57  void setIndexedOpacities(const QList<QVariant>&);
59 
61 
64  QVariant opacityMapping() const;
65  void setOpacityMapping(const QVariant&);
67 
68 Q_SIGNALS:
72  void annotationsChanged();
73 
77  void indexedColorsChanged();
78 
82  void indexedOpacitiesChanged();
83 
87  void opacityMappingChanged();
88 
89 private Q_SLOTS:
90 
95  void updateIndexedLookupState();
96 
97 private: // NOLINT(readability-redundant-access-specifiers)
98  Q_DISABLE_COPY(pqColorAnnotationsPropertyWidget)
99 
100  class pqInternals;
101  pqInternals* Internals;
102 };
103 
104 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqColorAnnotationsPropertyWidget is used to edit the Annotations property on the "PVLookupTable" prox...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140