32 #ifndef pqInteractivePropertyWidget_h 33 #define pqInteractivePropertyWidget_h 35 #include "pqApplicationComponentsModule.h" 38 #include "vtkBoundingBox.h" 39 #include <QScopedPointer> 42 class vtkSMNewWidgetRepresentationProxy;
43 class vtkSMPropertyGroup;
58 Q_PROPERTY(
pqSMProxy dataSource READ dataSource WRITE setDataSource);
61 const char* widget_smgroup,
const char* widget_smname,
62 vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent=0);
69 vtkSMNewWidgetRepresentationProxy* widgetProxy()
const;
79 bool isWidgetVisible()
const;
82 vtkSMProxy* dataSource()
const;
91 vtkBoundingBox dataBounds()
const;
97 void setWidgetVisible(
bool val);
102 void setDataSource(vtkSMProxy* dataSource);
106 virtual void placeWidget() = 0;
113 void widgetVisibilityToggled(
bool);
117 void widgetVisibilityUpdated(
bool);
121 void startInteraction();
123 void endInteraction();
131 void updateWidgetVisibility();
134 void handleUserEvent(vtkObject*,
unsigned long,
void*);
140 QScopedPointer<pqInternals> Internals;
This is a PQ abstraction of a generic view module.
vtkSmartPointer< vtkSMProxy > pqSMProxy
make pqSMProxy synonymous to a smart pointer of a vtkSMProxy