pqAnimatablePropertiesComboBox.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 pqAnimatablePropertiesComboBox_h
5 #define pqAnimatablePropertiesComboBox_h
6 
7 #include "pqComponentsModule.h"
8 #include <QComboBox>
9 
10 class vtkSMProxy;
11 
17 {
18  Q_OBJECT
19  typedef QComboBox Superclass;
20 
21 public:
22  pqAnimatablePropertiesComboBox(QWidget* parent = nullptr);
24 
25  vtkSMProxy* getCurrentProxy() const;
26  QString getCurrentPropertyName() const;
27  int getCurrentIndex() const;
28 
33  bool getCollapseVectors() const;
34 
40  int getVectorSizeFilter() const;
41 
46  void setUseBlankEntry(bool b) { this->UseBlankEntry = b; }
47 
48 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
53  void setSource(vtkSMProxy* proxy);
54 
59  void setSourceWithoutProperties(vtkSMProxy* proxy);
60 
65  void setCollapseVectors(bool val);
66 
72  void setVectorSizeFilter(int size);
73 
77  void addSMProperty(const QString& label, const QString& propertyname, int index);
78 
79 protected Q_SLOTS:
83  void buildPropertyList();
84 
85 private:
86  Q_DISABLE_COPY(pqAnimatablePropertiesComboBox)
87 
88  void buildPropertyListInternal(vtkSMProxy* proxy, const QString& labelPrefix);
89  void addSMPropertyInternal(const QString& label, vtkSMProxy* proxy, const QString& propertyname,
90  int index, bool is_display_property = false, unsigned int display_port = 0);
91 
95  void addDisplayProperties(vtkSMProxy* proxy);
96  bool UseBlankEntry;
97 
98 public:
99  class pqInternal;
100 
101 private:
102  pqInternal* Internal;
103 };
104 
105 #endif
#define PQCOMPONENTS_EXPORT
void setUseBlankEntry(bool b)
Sometimes, we want the combo to show a empty field that does not represent any property.
size
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
index
pqAnimatablePropertiesComboBox is a combo box that can list the animatable properties of any proxy...