pqSplinePropertyWidget.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 pqSplinePropertyWidget_h
5 #define pqSplinePropertyWidget_h
6 
8 
9 #include <QScopedPointer>
10 
11 class QColor;
12 
29 {
30  Q_OBJECT;
31  Q_PROPERTY(QList<QVariant> points READ points WRITE setPoints NOTIFY pointsChanged);
32  Q_PROPERTY(int currentRow READ currentRow WRITE setCurrentRow NOTIFY currentRowChanged);
34 
35 public:
36  enum ModeTypes
37  {
38  SPLINE = 0,
39  POLYLINE = 1
40  };
41 
42  pqSplinePropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, ModeTypes mode = SPLINE,
43  QWidget* parent = nullptr);
44  ~pqSplinePropertyWidget() override;
45 
47 
50  QList<QVariant> points() const;
51  void setPoints(const QList<QVariant>& points);
53 
55  int currentRow() const;
56  void setCurrentRow(int idx);
58 Q_SIGNALS:
62  void pointsChanged();
63 
67  void currentRowChanged();
68 
69 public Q_SLOTS:
73  void setLineColor(const QColor&);
74 
75 protected Q_SLOTS:
76  void placeWidget() override;
77 
78 private:
79  Q_DISABLE_COPY(pqSplinePropertyWidget)
80  class pqInternals;
81  QScopedPointer<pqInternals> Internals;
82 };
83 
84 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqSplinePropertyWidget is a custom property widget that uses "SplineWidgetRepresentation" to help use...
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.
pqInteractivePropertyWidgetAbstract is an abstract pqPropertyWidget subclass designed to serve as the...
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...