pqDisplayRepresentationWidget.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 pqDisplayRepresentationWidget_h
5 #define pqDisplayRepresentationWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include "pqPropertyWidget.h"
9 #include <QWidget>
10 
12 class vtkSMProxy;
13 class vtkSMViewProxy;
14 
22 {
23  Q_OBJECT;
24  Q_PROPERTY(QString representationText READ representationText WRITE setRepresentationText NOTIFY
25  representationTextChanged);
26  typedef QWidget Superclass;
27 
28 public:
29  pqDisplayRepresentationWidget(QWidget* parent = nullptr);
31 
35  QString representationText() const;
36 
40  vtkSMViewProxy* viewProxy() const;
41 
42 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
46  void setRepresentation(pqDataRepresentation* display);
47  void setRepresentation(vtkSMProxy* proxy);
48 
52  void setRepresentationText(const QString&);
53 
54 private Q_SLOTS:
60  void comboBoxChanged(const QString&);
61 
62 Q_SIGNALS:
63  void representationTextChanged(const QString&);
64 
65 private:
66  Q_DISABLE_COPY(pqDisplayRepresentationWidget)
67 
68  class pqInternals;
69  pqInternals* Internal;
70 
71  class PropertyLinksConnection;
72 
73  pqDataRepresentation* Representation = nullptr;
74 };
75 
80 {
81  Q_OBJECT
82 
83 public:
84  pqDisplayRepresentationPropertyWidget(vtkSMProxy* proxy, QWidget* parent = nullptr);
86 
87 private:
89 };
90 
91 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
A widget for representation type for a vtkSMRepresentationProxy.
#define PQCOMPONENTS_EXPORT
Superclass for all view proxies.
A property widget for selecting the display representation.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140