pqAnnulusPropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef pqAnnulusPropertyWidget_h
5 #define pqAnnulusPropertyWidget_h
6 
8 
9 #include <array>
10 
11 class QWidget;
12 class vtkVector3d;
13 
27 class PQAPPLICATIONCOMPONENTS_EXPORT pqAnnulusPropertyWidget : public pqInteractivePropertyWidget
28 {
29  Q_OBJECT
31 
32 public:
34  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
35  ~pqAnnulusPropertyWidget() override = default;
36 
37 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
41  void useXAxis();
42 
46  void useYAxis();
47 
51  void useZAxis();
52 
56  void resetCameraToAxis();
57 
61  void useCameraAxis();
62 
63 private Q_SLOTS:
67  void placeWidget() override;
68 
69  void resetBounds();
70 
71 private: // NOLINT(readability-redundant-access-specifiers)
72  Q_DISABLE_COPY(pqAnnulusPropertyWidget)
73 
74  void setAxis(const vtkVector3d& axis);
75  void updateWidget(bool showingAdvancedProperties) override;
76 
77  pqPropertyLinks WidgetLinks;
78  std::array<QWidget*, 2> AdvancedPropertyWidgets;
79 };
80 
81 #endif
virtual void updateWidget(bool showing_advanced_properties)
pqAnnulusPropertyWidget is a custom property widget that uses "ImplicitAnnulusWidgetRepresentation" t...
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...