[Paraview] Create a Drop Down Menu for a Custom Filter that takes its entries from arrays of all inputs
Cory Quammen
cory.quammen at kitware.com
Thu Jul 7 11:27:18 EDT 2016
Evan,
1. Is it possible to populate the drop-down menu with the array names from
> a specific input?
>
Yes, it should be possible, with some finagling. Take a look at the
RibbonFilter in
ParaViewCore/ServerManager/SMApplication/Resources/filters.xml. In the
Input property, an InputArrayDomain is defined - actually, two are defined,
but the point is they are named differently and referred to differently in
the ArrayListDomains in the SelectInputScalars and SelectInputVectors
properties.
In your case, I would try to define two inputs as two different properties,
define at least the one InputArrayDomain in the input property for the
input from which you want the arrays, and use that in your ArrayListDomain.
If you are talking about picking the input first and then the array from
the chosen input, I'm not sure how to do that.
> 2. Is it possible to populate the drop-down menu with the array names
> from all inputs?
>
Hmm, not sure about that one. Probably not without some
modifications/additions to the ParaView code.
HTH,
Cory
> Right now, it will only take array names from one of the inputs (from
> testing, it seems like whichever object was created first).
>
> Thanks,
> Evan Kao
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160707/d43fa2e7/attachment.html>
More information about the ParaView
mailing list