pqDataAssemblyPropertyWidget.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 pqDataAssemblyPropertyWidget_h
5 #define pqDataAssemblyPropertyWidget_h
6 
8 #include "pqPropertyWidget.h"
9 
10 #include "vtkParaViewDeprecation.h" // for PARAVIEW_DEPRECATED
11 
12 #include <QScopedPointer> // for QScopedPointer
13 
156 class vtkObject;
158 {
159  Q_OBJECT
161 
163 
166  Q_PROPERTY(QList<QVariant> selectors READ selectorsAsVariantList WRITE setSelectors NOTIFY
167  selectorsChanged);
168  Q_PROPERTY(QList<QVariant> compositeIndices READ compositeIndicesAsVariantList WRITE
169  setCompositeIndices NOTIFY selectorsChanged);
171 
173 
176  // PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
177  Q_PROPERTY(QList<QVariant> selectorColors READ selectorColorsAsVariantList WRITE setSelectorColors
178  NOTIFY colorsChanged);
179  // PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
180  Q_PROPERTY(QList<QVariant> compositeIndexColors READ compositeIndexColorsAsVariantList WRITE
181  setCompositeIndexColors NOTIFY colorsChanged);
183 
185 
188  // PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
189  Q_PROPERTY(QList<QVariant> selectorOpacities READ selectorOpacitiesAsVariantList WRITE
190  setSelectorOpacities NOTIFY opacitiesChanged);
191  // PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
192  Q_PROPERTY(QList<QVariant> compositeIndexOpacities READ compositeIndexOpacitiesAsVariantList WRITE
193  setCompositeIndexOpacities NOTIFY opacitiesChanged);
195 public:
197  vtkSMProxy* smproxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
199  vtkSMProxy* smproxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
200  ~pqDataAssemblyPropertyWidget() override;
201 
203 
206  void setSelectors(const QStringList& paths);
207  const QStringList& selectors() const;
208  void setSelectors(const QList<QVariant>& paths);
209  QList<QVariant> selectorsAsVariantList() const;
211 
213 
216  void setCompositeIndices(const QList<QVariant>& values);
217  QList<QVariant> compositeIndicesAsVariantList() const;
219 
221 
226  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
227  void setCompositeIndexColors(const QList<QVariant>& values) { Q_UNUSED(values); }
228  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
229  QList<QVariant> compositeIndexColorsAsVariantList() const { return QList<QVariant>(); }
230 
231  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
232  void setSelectorColors(const QList<QVariant>& values) { Q_UNUSED(values); }
233  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
234  QList<QVariant> selectorColorsAsVariantList() const { return QList<QVariant>(); }
236 
238 
243  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
244  void setCompositeIndexOpacities(const QList<QVariant>& values) { Q_UNUSED(values); }
245  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
246  QList<QVariant> compositeIndexOpacitiesAsVariantList() const { return QList<QVariant>(); }
247 
248  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
249  void setSelectorOpacities(const QList<QVariant>& values) { Q_UNUSED(values); }
250  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
251  QList<QVariant> selectorOpacitiesAsVariantList() const { return QList<QVariant>(); }
253 
254  void updateWidget(bool showing_advanced_properties) override;
255 
256 Q_SIGNALS:
257  void selectorsChanged();
258  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
259  void colorsChanged();
260  PARAVIEW_DEPRECATED_IN_5_13_0("No longer used.")
261  void opacitiesChanged();
262 
263 private Q_SLOTS:
264  void updateDataAssembly(vtkObject* sender);
265  void assemblyTreeModified(int role);
266  void selectorsTableModified();
267 
268 private: // NOLINT(readability-redundant-access-specifiers)
269  Q_DISABLE_COPY(pqDataAssemblyPropertyWidget);
270  class pqInternals;
271  QScopedPointer<pqInternals> Internals;
272 };
273 
274 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
virtual void updateWidget(bool showing_advanced_properties)
#define PQAPPLICATIONCOMPONENTS_EXPORT
superclass for all SM properties
#define PARAVIEW_DEPRECATED_IN_5_13_0(reason)
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
#define const
Definition: zconf.h:238
pqPropertyWidget for properties with vtkDataAssembly