pqLinePropertyWidget.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 pqLinePropertyWidget_h
5 #define pqLinePropertyWidget_h
6 
8 #include <QScopedPointer>
9 class QColor;
10 
31 {
32  Q_OBJECT
34 
35 public:
36  pqLinePropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
37  ~pqLinePropertyWidget() override;
38 
39 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
40  void useXAxis() { this->useAxis(0); }
41  void useYAxis() { this->useAxis(1); }
42  void useZAxis() { this->useAxis(2); }
43  void flipP2();
44  void centerOnBounds();
45 
49  void setLineColor(const QColor& color);
50 
51 protected Q_SLOTS:
55  void placeWidget() override;
56 
60  void pick(double x, double y, double z);
61  void pickPoint1(double x, double y, double z);
62  void pickPoint2(double x, double y, double z);
63  void pickNormal(double x, double y, double z, double nx, double ny, double nz);
64 
68  void updateLengthLabel();
69 
70 private:
71  Q_DISABLE_COPY(pqLinePropertyWidget)
72  class pqInternals;
73  QScopedPointer<pqInternals> Internals;
74  vtkBoundingBox referenceBounds() const;
75 
76  void useAxis(int axis);
77 };
78 
79 #endif
color
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqLinePropertyWidget is a custom property widget that uses "LineWidgetRepresentation" to help the use...
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...