33 #ifndef _pqSMAdaptor_h 34 #define _pqSMAdaptor_h 40 #include "pqCoreModule.h" 42 #include "vtkVariant.h" 47 Q_DECLARE_METATYPE(QList<QList<QVariant> >)
58 static const int metaId;
86 static PropertyType getPropertyType(vtkSMProperty* Property);
90 static pqSMProxy getProxyProperty(vtkSMProperty* Property,
95 static void addProxyProperty(vtkSMProperty* Property,
97 static void removeProxyProperty(vtkSMProperty* Property,
99 static void setProxyProperty(vtkSMProperty* Property,
101 static void setUncheckedProxyProperty(vtkSMProperty* Property,
103 static void addInputProperty(vtkSMProperty* Property,
105 static void setInputProperty(vtkSMProperty* Property,
110 static QList<pqSMProxy> getProxyListProperty(vtkSMProperty* Property);
113 static void setProxyListProperty(vtkSMProperty* Property,
114 QList<pqSMProxy> Value);
117 static QList<pqSMProxy> getProxyPropertyDomain(vtkSMProperty* Property);
121 static QList<QList<QVariant> > getSelectionProperty(vtkSMProperty* Property,
124 static QList<QVariant> getSelectionProperty(vtkSMProperty* Property,
128 static void setSelectionProperty(vtkSMProperty* Property,
129 QList<QList<QVariant> > Value,
135 static void setSelectionProperty(vtkSMProperty* Property,
136 QList<QVariant> Value,
140 static QList<QVariant> getSelectionPropertyDomain(vtkSMProperty* Property);
143 static QVariant getEnumerationProperty(vtkSMProperty* Property,
146 static void setEnumerationProperty(vtkSMProperty* Property,
150 static QList<QVariant> getEnumerationPropertyDomain(vtkSMProperty* Property);
153 static QVariant getElementProperty(vtkSMProperty* Property,
156 static void setElementProperty(vtkSMProperty* Property,
160 static QList<QVariant> getElementPropertyDomain(vtkSMProperty* Property);
163 static QList<QVariant> getMultipleElementProperty(vtkSMProperty* Property,
166 static void setMultipleElementProperty(vtkSMProperty* Property,
167 QList<QVariant> Value,
171 static QList<QList<QVariant> > getMultipleElementPropertyDomain(vtkSMProperty* Property);
175 static QVariant getMultipleElementProperty(vtkSMProperty* Property,
180 static void setMultipleElementProperty(vtkSMProperty* Property,
187 static QList<QVariant> getMultipleElementPropertyDomain(vtkSMProperty* Property,
191 static QStringList getFileListProperty(vtkSMProperty* Property,
194 static void setFileListProperty(vtkSMProperty* Property,
199 static QStringList getFieldSelection(vtkSMProperty *Property,
201 static void setFieldSelection(vtkSMProperty *Property,
202 const QStringList &Value,
206 static QString getFieldSelectionMode(vtkSMProperty* prop,
208 static void setFieldSelectionMode(vtkSMProperty* Property,
209 const QString& Value,
211 static QList<QString> getFieldSelectionModeDomain(vtkSMProperty*);
214 static QString getFieldSelectionScalar(vtkSMProperty* Property,
216 static void setFieldSelectionScalar(vtkSMProperty* Property,
217 const QString& Value,
219 static QList<QString> getFieldSelectionScalarDomain(vtkSMProperty*);
220 static QList<QPair<QString, bool> > getFieldSelectionScalarDomainWithPartialArrays(vtkSMProperty*);
226 static QList<QString> getDomainTypes(vtkSMProperty* property);
229 static void clearUncheckedProperties(vtkSMProperty *property);
232 static QVariant convertToQVariant(
const vtkVariant &variant);
235 #endif // !_pqSMAdaptor_h
Translates server manager events into Qt-compatible slots and signals.
PropertyType
enumeration for types of properties this class handles
vtkSmartPointer< vtkSMProxy > pqSMProxy
make pqSMProxy synonymous to a smart pointer of a vtkSMProxy