pqImplicitPlanePropertyWidget.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 pqImplicitPlanePropertyWidget_h
5 #define pqImplicitPlanePropertyWidget_h
6 
8 
25 {
26  Q_OBJECT
28 
29 public:
31  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
33 
37  void apply() override;
38  void reset() override;
39 
40 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
44  void showPlane() { this->setDrawPlane(true); }
45  void hidePlane() { this->setDrawPlane(false); }
46  void setDrawPlane(bool val);
47 
51  void useXNormal() { this->setNormal(1, 0, 0); }
52 
56  void useYNormal() { this->setNormal(0, 1, 0); }
57 
61  void useZNormal() { this->setNormal(0, 0, 1); }
62 
66  void resetToDataBounds();
67 
71  void resetCameraToNormal();
72 
76  void useCameraNormal();
77 
78 protected Q_SLOTS:
82  void placeWidget() override;
83 
84 private Q_SLOTS:
85  void setOrigin(double x, double y, double z);
86 
87 private: // NOLINT(readability-redundant-access-specifiers)
88  Q_DISABLE_COPY(pqImplicitPlanePropertyWidget)
89 
90  void setNormal(double x, double y, double z);
91 };
92 
93 #endif
void reset() override
Overridden to call this->render() to ensure that the widget is redrawn.
void useXNormal()
Set the widget normal to be along the X axis.
#define PQAPPLICATIONCOMPONENTS_EXPORT
void useZNormal()
Set the widget normal to be along the Z axis.
pqImplicitPlanePropertyWidget is a custom property widget that uses "ImplicitPlaneWidgetRepresentatio...
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.
void useYNormal()
Set the widget normal to be along the Y axis.
void showPlane()
Slots used to toggle the visibility of the translucent plane.
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...
virtual void apply()