pqInteractivePropertyWidgetAbstract is an abstract pqPropertyWidget subclass designed to serve as the superclass for all pqPropertyWidget types that have interactive widget, either in a chart or in a 3D view.
More...
#include <pqInteractivePropertyWidgetAbstract.h>
|
virtual vtkSMNewWidgetRepresentationProxyAbstract * | internalWidgetProxy ()=0 |
| Get the internal instance of the widget proxy. More...
|
|
void | setupConnections (vtkSMNewWidgetRepresentationProxyAbstract *widget, vtkSMPropertyGroup *smgroup, vtkSMProxy *smproxy) |
| Setup all the links and events for the given widget and SM property group. More...
|
|
void | setupUserObserver (vtkSMProxy *smproxy) |
|
void | addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1) |
|
void | addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1) |
|
void | removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1) |
|
void | removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1) |
|
void | setShowLabel (bool show) |
|
void | setChangeAvailableAsChangeFinished (bool status) |
| For most pqPropertyWidget subclasses a changeAvailable() signal, corresponds to a changeFinished() signal. More...
|
|
void | addDecorator (pqPropertyWidgetDecorator *) |
| Register a decorator. More...
|
|
void | removeDecorator (pqPropertyWidgetDecorator *) |
| Unregisters a decorator. More...
|
|
pqPropertyLinks & | links () |
| Provides access to the pqPropertyLinks instance. More...
|
|
pqInteractivePropertyWidgetAbstract is an abstract pqPropertyWidget subclass designed to serve as the superclass for all pqPropertyWidget types that have interactive widget, either in a chart or in a 3D view.
pqInteractivePropertyWidgetAbstract is intended to provide a Qt widget (along with an interactive widget in the active view) for controlling properties on the proxy
identified by a vtkSMPropertyGroup passed to the constructor. Subclasses are free to determine which interactive widget to create and how to setup the UI for it.
Definition at line 30 of file pqInteractivePropertyWidgetAbstract.h.
◆ pqInteractivePropertyWidgetAbstract()
pqInteractivePropertyWidgetAbstract::pqInteractivePropertyWidgetAbstract |
( |
const char * |
widget_smgroup, |
|
|
const char * |
widget_smname, |
|
|
vtkSMProxy * |
proxy, |
|
|
vtkSMPropertyGroup * |
smgroup, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ ~pqInteractivePropertyWidgetAbstract()
pqInteractivePropertyWidgetAbstract::~pqInteractivePropertyWidgetAbstract |
( |
| ) |
|
|
override |
◆ reset()
void pqInteractivePropertyWidgetAbstract::reset |
( |
| ) |
|
|
overridevirtual |
◆ setView()
void pqInteractivePropertyWidgetAbstract::setView |
( |
pqView * |
view | ) |
|
|
overridevirtual |
Overridden to show the widget proxy in the new view.
Reimplemented from pqPropertyWidget.
◆ isWidgetVisible()
bool pqInteractivePropertyWidgetAbstract::isWidgetVisible |
( |
| ) |
const |
Returns the interactive widget's visibility.
Note that the widget may still not be visible in the view if the pqPropertyWidget is not selected. An interactive widget may be visible in the view when this->isWidgetVisible() and this->isSelected() both return true and the view is of the right type.
◆ dataSource()
vtkSMProxy* pqInteractivePropertyWidgetAbstract::dataSource |
( |
| ) |
const |
◆ select()
void pqInteractivePropertyWidgetAbstract::select |
( |
| ) |
|
|
overridevirtual |
In these methods, we show/hide the widget since the interactive widget is not supposed to be visible except when the panel is "active" or "selected".
selectPort(int) allows to make the selection only if the given port index is linked with the vtkSMPropertyGroup this interactive widget represents.
Reimplemented from pqPropertyWidget.
◆ deselect()
void pqInteractivePropertyWidgetAbstract::deselect |
( |
| ) |
|
|
overridevirtual |
In these methods, we show/hide the widget since the interactive widget is not supposed to be visible except when the panel is "active" or "selected".
selectPort(int) allows to make the selection only if the given port index is linked with the vtkSMPropertyGroup this interactive widget represents.
Reimplemented from pqPropertyWidget.
◆ selectPort()
void pqInteractivePropertyWidgetAbstract::selectPort |
( |
int |
portIndex | ) |
|
|
finalvirtual |
In these methods, we show/hide the widget since the interactive widget is not supposed to be visible except when the panel is "active" or "selected".
selectPort(int) allows to make the selection only if the given port index is linked with the vtkSMPropertyGroup this interactive widget represents.
Reimplemented from pqPropertyWidget.
◆ dataBounds()
vtkBoundingBox pqInteractivePropertyWidgetAbstract::dataBounds |
( |
bool |
visibleOnly = false | ) |
const |
Returns bounds from the dataSource, if possible.
May return invalid bounds when no dataSource exists of hasn't been updated to produce valid data. If the input source is a vtkMultiBlockDataSet and "visibleOnly" is set to "true", this function returns the bounds of the visible blocks only.
◆ propertyGroup()
◆ hideEvent()
void pqInteractivePropertyWidgetAbstract::hideEvent |
( |
QHideEvent * |
| ) |
|
|
override |
Overriden in order to hide the VTK widget.
◆ showEvent()
void pqInteractivePropertyWidgetAbstract::showEvent |
( |
QShowEvent * |
| ) |
|
|
override |
Overriden in order to show the VTK widget.
◆ setWidgetVisible
virtual void pqInteractivePropertyWidgetAbstract::setWidgetVisible |
( |
bool |
val | ) |
|
|
virtualslot |
Toggle the interactive widget's visibility.
This, along with pqPropertyWidget's selected state controls whether the widget proxy is visible in a view.
◆ setDataSource
void pqInteractivePropertyWidgetAbstract::setDataSource |
( |
vtkSMProxy * |
dataSource | ) |
|
|
slot |
DataSource is used by interactive widgets to determine now to place the widget in the view e.g.
the bounds to use for placing the widget or when re-centering the interactive widget.
◆ placeWidget
virtual void pqInteractivePropertyWidgetAbstract::placeWidget |
( |
| ) |
|
|
protectedpure virtualslot |
Places the interactive widget using current data source information.
◆ render
void pqInteractivePropertyWidgetAbstract::render |
( |
| ) |
|
|
protectedslot |
Safe call render on the view.
◆ updateWidgetVisibility
virtual void pqInteractivePropertyWidgetAbstract::updateWidgetVisibility |
( |
| ) |
|
|
protectedvirtualslot |
This method is called to update the state of Visibility and Enabled properties on the widget based on the state of isWidgetVisible(), isSelected() and the active view.
◆ widgetVisibilityToggled
void pqInteractivePropertyWidgetAbstract::widgetVisibilityToggled |
( |
bool |
| ) |
|
|
signal |
◆ widgetVisibilityUpdated
void pqInteractivePropertyWidgetAbstract::widgetVisibilityUpdated |
( |
bool |
| ) |
|
|
signal |
Fired whenever the widgets visibility is updated for whatever reason, be it because the panel was selected/deselected or the view changed, etc.
◆ startInteraction
void pqInteractivePropertyWidgetAbstract::startInteraction |
( |
| ) |
|
|
signal |
Fired by the underlying interactive widget representation proxy, for each respective events.
◆ interaction
void pqInteractivePropertyWidgetAbstract::interaction |
( |
| ) |
|
|
signal |
Fired by the underlying interactive widget representation proxy, for each respective events.
◆ endInteraction
void pqInteractivePropertyWidgetAbstract::endInteraction |
( |
| ) |
|
|
signal |
Fired by the underlying interactive widget representation proxy, for each respective events.
◆ internalWidgetProxy()
◆ setupConnections()
Setup all the links and events for the given widget and SM property group.
This should be call by subclasses in their constructor once their widget is initialized.
◆ setupUserObserver()
void pqInteractivePropertyWidgetAbstract::setupUserObserver |
( |
vtkSMProxy * |
smproxy | ) |
|
|
protected |
◆ VisibleState
bool pqInteractivePropertyWidgetAbstract::VisibleState = true |
|
protected |
◆ WidgetVisibility
bool pqInteractivePropertyWidgetAbstract::WidgetVisibility = false |
|
protected |
◆ LinkedPortIndex
int pqInteractivePropertyWidgetAbstract::LinkedPortIndex = -1 |
|
protected |
◆ dataSource
pqSMProxy pqInteractivePropertyWidgetAbstract::dataSource |
|
readwrite |
The documentation for this class was generated from the following file: