pqFourLinesPropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqFourLinesPropertyWidget_h
4 #define pqFourLinesPropertyWidget_h
5 
7 #include <QScopedPointer>
8 class QColor;
9 class QLabel;
10 
25 class PQAPPLICATIONCOMPONENTS_EXPORT pqFourLinesPropertyWidget : public pqInteractivePropertyWidget
26 {
27  Q_OBJECT
29 
30 public:
32  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
33  ~pqFourLinesPropertyWidget() override;
34 
35 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
39  void switchPoints(int index);
40 
44  void setLineColor(const QColor& color);
45 
46 protected Q_SLOTS:
50  void placeWidget() override;
51 
53 
56  void updateLengthLabels();
57  void updateLengthLabel(QLabel* lengthLabel, int index);
59 
60 private:
61  Q_DISABLE_COPY(pqFourLinesPropertyWidget)
62  class pqInternals;
63  QScopedPointer<pqInternals> Internals;
64 };
65 
66 #endif
color
pqFourLinesPropertyWidget is a custom property widget that uses "FourLinesSourceWidgetRepresentation"...
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.
index
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...