pqProxyPropertyWidget.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 
5 #ifndef pqProxyPropertyWidget_h
6 #define pqProxyPropertyWidget_h
7 
8 #include "pqPropertyWidget.h"
9 #include <QPointer>
10 
13 class vtkSMProxy;
14 
19 class PQCOMPONENTS_EXPORT pqProxyPropertyWidget : public pqPropertyWidget
20 {
21  Q_OBJECT
22  typedef pqPropertyWidget Superclass;
23 
24 public:
25  pqProxyPropertyWidget(vtkSMProperty* property, vtkSMProxy* proxy, QWidget* parent = nullptr);
26 
30  void apply() override;
31  void reset() override;
32 
38  void select() override;
39  void deselect() override;
40 
45  void updateWidget(bool showing_advanced_properties) override;
46 
50  vtkSMProxy* chosenProxy() const;
51 
52 private:
53  QPointer<pqSelectionInputWidget> SelectionInputWidget;
54  QPointer<pqProxySelectionWidget> ProxySelectionWidget;
55 };
56 
57 #endif // pqProxyPropertyWidget_h
pqProxyPropertyWidget
This is a widget for a vtkSMProxyProperty.
Definition: pqProxyPropertyWidget.h:19
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition: pqPropertyWidget.h:25
pqSelectionInputWidget
pqSelectionInputWidget is a custom widget used for specifying the selection to use on filters that ha...
Definition: pqSelectionInputWidget.h:16
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMProxy
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqPropertyWidget::updateWidget
virtual void updateWidget(bool showing_advanced_properties)
Definition: pqPropertyWidget.h:59
pqPropertyWidget.h
pqPropertyWidget::deselect
virtual void deselect()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
Definition: pqPropertyWidget.h:50
pqPropertyWidget::apply
virtual void apply()
pqPropertyWidget::select
virtual void select()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
Definition: pqPropertyWidget.h:48
pqProxySelectionWidget
pqPropertyWidget that can be used for any proxy with a vtkSMProxyListDomain.
Definition: pqProxySelectionWidget.h:21
pqPropertyWidget::reset
virtual void reset()