[Paraview] source with optional input port

burlen burlen.loring at gmail.com
Fri Dec 18 18:36:31 EST 2009


Hi folks,

I'd like to have a PV data source that can be used either as a 
source(without an input dataset) or as a filter(with an input dataset). 
Based on what I have observed, to accomplish it the source has to show 
up both in the sources menu and the filters menu, which is easy to do 
with the XML by adding an entry in both the sources and filters groups 
that points back to the same class and base proxy. It all works except 
for sharing a custom qt panel between them, specifically sharing the 
panel across proxy groups isn't currently allowed.

The attached patch enables a custom panel to be shared across the 
sources/filters proxy groups. Assuming that this is the right way to 
accomplish this can this patch be committed?

Why would you want to do this?  For one example:
a source with an optional input used like a filter can then extract 
spatial bounds from the input dataset and then position itself 
automatically in the scene. This makes the source faster/easier to use 
than if you have to type in the coordinates to position it. There are 
plenty of other examples, with one thing in common, the potential to 
make the source easier/faster to use.

Burlen







-------------- next part --------------
A non-text attachment was scrubbed...
Name: sharePqPanel.patch
Type: text/x-diff
Size: 1237 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091218/2824c5c9/attachment.patch>


More information about the ParaView mailing list