pqInteractivePropertyWidget.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 pqInteractivePropertyWidget_h
5 #define pqInteractivePropertyWidget_h
6 
7 #include "pqApplicationComponentsModule.h"
10 
11 #include <QScopedPointer>
12 
13 class vtkObject;
14 class vtkSMPropertyGroup;
15 class vtkRenderer;
17 class vtkVector3d;
18 
30 class PQAPPLICATIONCOMPONENTS_EXPORT pqInteractivePropertyWidget
32 {
33  Q_OBJECT
35 
36 public:
37  pqInteractivePropertyWidget(const char* widget_smgroup, const char* widget_smname,
38  vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
39  ~pqInteractivePropertyWidget() override;
40 
44  vtkSMNewWidgetRepresentationProxy* widgetProxy() const { return this->WidgetProxy; };
45 
46 protected:
51  {
52  return this->WidgetProxy;
53  };
54 
59  std::vector<vtkVector3d> displayToWorldCoordinates(
60  const std::vector<vtkVector3d>& displayCoordPoints);
61 
66  double getFocalPointDepth();
67 
72  vtkRenderer* getRenderer();
73 
74 private:
75  Q_DISABLE_COPY(pqInteractivePropertyWidget)
76 
78 };
79 
80 #endif
proxy for 3D widgets and their representations in ParaView.
vtkSMNewWidgetRepresentationProxyAbstract * internalWidgetProxy() final
Get the internal instance of the widget proxy.
vtkSMNewWidgetRepresentationProxy * widgetProxy() const
Returns the proxy for the 3D interactive widget.
implementation for View that includes render window and renderers.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqInteractivePropertyWidgetAbstract is an abstract pqPropertyWidget subclass designed to serve as the...
Abstract class for proxies for 2D and 3D widgets.
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...