32 #ifndef pqPropertyLinksConnection_h 33 #define pqPropertyLinksConnection_h 38 #include "pqCoreModule.h" 39 #include "vtkEventQtSlotConnect.h" 41 #include "vtkSMProperty.h" 42 #include "vtkSMProxy.h" 43 #include "vtkWeakPointer.h" 55 typedef QObject Superclass;
60 QObject* qobject,
const char* qproperty,
const char* qsignal,
61 vtkSMProxy* smproxy, vtkSMProperty* smproperty,
int smindex,
62 bool use_unchecked_modified_event,
63 QObject* parentObject=0);
68 void setUseUncheckedProperties(
bool useUnchecked);
74 QObject*
objectQt()
const {
return this->ObjectQt; }
75 const QString&
propertyQt()
const {
return this->PropertyQt; }
78 vtkSMProxy*
proxy()
const {
return this->ProxySM; }
79 vtkSMProxy*
proxySM()
const {
return this->ProxySM; }
80 vtkSMProperty*
propertySM()
const {
return this->PropertySM; }
81 int indexSM()
const {
return this->IndexSM; }
86 void copyValuesFromServerManagerToQt(
bool use_unchecked);
90 void copyValuesFromQtToServerManager(
bool use_unchecked);
95 virtual void setQtValue(
const QVariant& value);
96 virtual void setServerManagerValue(
bool use_unchecked,
const QVariant& value);
97 virtual QVariant currentQtValue()
const;
98 virtual QVariant currentServerManagerValue(
bool use_unchecked)
const;
103 void qtpropertyModified();
107 void smpropertyModified();
111 vtkNew<vtkEventQtSlotConnect> VTKConnector;
113 QPointer<QObject> ObjectQt;
117 vtkWeakPointer<vtkSMProxy> ProxySM;
118 vtkWeakPointer<vtkSMProperty> PropertySM;
QObject * objectQt() const
Provides access to the Qt QObject and property name.
pqPropertyLinks is used to connect vtkSMProperty and subclasses to properties on QObject instances...
pqPropertyLinksConnection is used by pqPropertyLinks to keep a QObject and vtkSMProperty linked toget...
const QString & propertyQt() const
vtkSMProxy * proxySM() const
vtkSMProperty * propertySM() const
vtkSMProxy * proxy() const
Provides access to the ServerManager proxy/property/index.