pqYoungsMaterialPropertyWidget.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 pqYoungsMaterialPropertyWidget_h
5 #define pqYoungsMaterialPropertyWidget_h
6 
9 
10 #include <QScopedPointer>
11 
12 class vtkSMPropertyGroup;
13 class QStandardItem;
14 
22 {
23  Q_OBJECT
25  Q_PROPERTY(QList<QVariant> orderingArrays READ orderingArrays WRITE setOrderingArrays NOTIFY
26  orderingArraysChanged);
27  Q_PROPERTY(QList<QVariant> normalArrays READ normalArrays WRITE setNormalArrays NOTIFY
28  normalArraysChanged);
29 
30 public:
32  vtkSMProxy* proxy, vtkSMPropertyGroup* group, QWidget* parent = nullptr);
34 
36 
39  void setOrderingArrays(const QList<QVariant>&);
40  QList<QVariant> orderingArrays() const;
42 
44 
47  void setNormalArrays(const QList<QVariant>&);
48  QList<QVariant> normalArrays() const;
50 
51 Q_SIGNALS:
52 
56  void orderingArraysChanged();
57 
61  void normalArraysChanged();
62 
63 protected:
67  QStandardItem* currentItem();
68 
69 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
73  void onOrderingArraysChanged();
74 
78  void onNormalArraysChanged();
79 
83  void updateComboBoxes();
84 
85 private:
86  Q_DISABLE_COPY(pqYoungsMaterialPropertyWidget)
87 
88  class pqInternals;
89  QScopedPointer<pqInternals> Internals;
90 };
91 
92 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
This is a custom widget for YoungsMaterialInterface filter.