pqCylinderPropertyWidget.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 pqCylinderPropertyWidget_h
5 #define pqCylinderPropertyWidget_h
6 
8 
9 class QWidget;
10 
28 {
29  Q_OBJECT
31 
32 public:
34  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
35  ~pqCylinderPropertyWidget() override;
36 
37 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
41  void useXAxis() { this->setAxis(1, 0, 0); }
42 
46  void useYAxis() { this->setAxis(0, 1, 0); }
47 
51  void useZAxis() { this->setAxis(0, 0, 1); }
52 
56  void resetCameraToAxis();
57 
61  void useCameraAxis();
62 
63 protected Q_SLOTS:
67  void placeWidget() override;
68 
69  void resetBounds();
70 
71 private:
72  Q_DISABLE_COPY(pqCylinderPropertyWidget)
73 
74  void setAxis(double x, double y, double z);
75  void updateWidget(bool showing_advanced_properties) override;
76 
77  pqPropertyLinks WidgetLinks;
78  QWidget* AdvancedPropertyWidgets[2];
79 };
80 
81 #endif
void useZAxis()
Set the cylinder axis to be along the Z axis.
virtual void updateWidget(bool showing_advanced_properties)
#define PQAPPLICATIONCOMPONENTS_EXPORT
void useXAxis()
Set the cylinder axis to be along the X axis.
void useYAxis()
Set the cylinder axis to be along the Y axis.
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...
pqCylinderPropertyWidget is a custom property widget that uses "ImplicitCylinderWidgetRepresentation"...