pqAnglePropertyWidget.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 pqAnglePropertyWidget_h
5 #define pqAnglePropertyWidget_h
6 
8 
9 #include <QScopedPointer>
10 
20 class PQAPPLICATIONCOMPONENTS_EXPORT pqAnglePropertyWidget : public pqInteractivePropertyWidget
21 {
22  Q_OBJECT;
23  Q_PROPERTY(QList<QVariant> points READ points WRITE setPoints NOTIFY pointsChanged);
25 
26 public:
27  pqAnglePropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
28  ~pqAnglePropertyWidget() override;
29 
31 
34  QList<QVariant> points() const;
35  void setPoints(const QList<QVariant>& points);
37 
38 Q_SIGNALS:
42  void pointsChanged();
43 
44 protected Q_SLOTS:
45  void placeWidget() override;
46  void updateLabels();
47 
48 private Q_SLOTS:
53  void onRepositionToViewClicked();
54 
55 private: // NOLINT(readability-redundant-access-specifiers)
56  Q_DISABLE_COPY(pqAnglePropertyWidget)
57 
58  struct pqInternals;
59  QScopedPointer<pqInternals> Internals;
60 };
61 
62 #endif
pqAnglePropertyWidget is a custom property widget that uses "PolyLineWidgetRepresentation" to help us...
points
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual void placeWidget()=0
Places the interactive widget using current data source information.
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...