pqDisplaySizedImplicitPlanePropertyWidget.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 pqDisplaySizedImplicitPlanePropertyWidget_h
5 #define pqDisplaySizedImplicitPlanePropertyWidget_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 setDrawOutlineAndIntersectionEdges(bool val);
52 
56  void useXNormal() { this->setNormal(1, 0, 0); }
57 
61  void useYNormal() { this->setNormal(0, 1, 0); }
62 
66  void useZNormal() { this->setNormal(0, 0, 1); }
67 
71  void resetRadiusSize();
72 
76  void resetToDataBounds();
77 
81  void resetCameraToNormal();
82 
86  void useCameraNormal();
87 
88 protected Q_SLOTS:
92  void placeWidget() override;
93 
94 private Q_SLOTS:
95  void setOrigin(double x, double y, double z);
96  void setNormal(double x, double y, double z);
97 
98 private: // NOLINT(readability-redundant-access-specifiers)
100 };
101 
102 #endif
void reset() override
Overridden to call this->render() to ensure that the widget is redrawn.
void useZNormal()
Set the widget normal to be along the Z axis.
#define PQAPPLICATIONCOMPONENTS_EXPORT
void useXNormal()
Set the widget normal to be along the X axis.
void useYNormal()
Set the widget normal 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.
void showPlane()
Slots used to toggle the visibility of the translucent plane.
pqDisplaySizedImplicitPlanePropertyWidget is a custom property widget that uses "DisplaySizedImplicit...
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...
virtual void apply()