pqConePropertyWidget.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 pqConePropertyWidget_h
5 #define pqConePropertyWidget_h
6 
8 
9 #include <array>
10 
11 class QWidget;
12 class vtkVector3d;
13 
30 class PQAPPLICATIONCOMPONENTS_EXPORT pqConePropertyWidget : public pqInteractivePropertyWidget
31 {
32  Q_OBJECT
34 
35 public:
36  pqConePropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
37  ~pqConePropertyWidget() override = default;
38 
39 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
43  void useXAxis();
44 
48  void useYAxis();
49 
53  void useZAxis();
54 
58  void resetCameraToAxis();
59 
63  void useCameraAxis();
64 
65 private Q_SLOTS:
69  void placeWidget() override;
70 
71  void resetBounds();
72 
73 private: // NOLINT(readability-redundant-access-specifiers)
74  Q_DISABLE_COPY(pqConePropertyWidget)
75 
76  void setAxis(const vtkVector3d& axis);
77  void updateWidget(bool showingAdvancedProperties) override;
78 
79  pqPropertyLinks WidgetLinks;
80  std::array<QWidget*, 2> AdvancedPropertyWidgets;
81 };
82 
83 #endif
virtual void updateWidget(bool showing_advanced_properties)
pqConePropertyWidget is a custom property widget that uses "ImplicitConeWidgetRepresentation" to help...
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...