[Paraview] Populate drop down list from filter data

Antoine Dechaume boolegue at gmail.com
Wed Apr 22 14:03:36 EDT 2015


Hi Utkarsh,

your approach works fine, thanks a lot!

Cheers

On Fri, Apr 17, 2015 at 6:07 AM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> Here's a potential approach:
>
> <StringVectorProperty name="ChooseOne"
>                       command="SetChosenOne">
>   <StringListDomain name="list">
>     <RequiredProperties>
>       <Property function="StringList"
>                 name="AvailableOptionsInfo" />
>     </RequiredProperties>
>   </StringListDomain>
> </StringVectorProperty>
> <StringVectorProperty name="AvailableOptionsInfo"
>                       information_only="1"
>                       command="GetAvailableOptions"
>                       si_class="vtkSIDataArrayProperty">
> </StringVectorProperty>
>
>
> With the following method prototypes:
>
>   void SetChosenOne(const char*);
>   vtkStringArray* GetAvailableOptions();
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150422/1e30051b/attachment.html>


More information about the ParaView mailing list