[Paraview] Paraview Plugin: two enumerations next to each other

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Sun Dec 7 12:53:51 EST 2014


Attached is an example plugin code that demonstrates how this could be done.

Utkarsh

On Wed, Nov 19, 2014 at 12:24 PM, Gonzalo Brito Gadeschi
<g.brito at aia.rwth-aachen.de> wrote:
> I'm trying to write an IntVectorProperty with two drop down list next to
> each other.
>
> Ideally it would call a function that takes to arguments, and passes the
> value of each drop down menu to each argument. I am however open to
> workarounds.
>
> This is my best attempt but of course it crashes paraview:
>
> <IntVectorProperty name="Neighbors"
>                                command="set_load_node_neighbors"
>                                number_of_elements="2"
>                                default_values="-1 -2">
>     <EnumerationDomain name="enum">
>         <Entry value="-1" text="None"/>
>         <Entry value="1" text="Faces"/>
>         <Entry value="2" text="Edges"/>
>         <Entry value="3" text="Corners"/>
>         </EnumerationDomain>
>      <EnumerationDomain name="enum">
>          <Entry value="-2" text="None"/>
>          <Entry value="4" text="Same level"/>
>          <Entry value="5" text="Children level"/>
>          <Entry value="6" text="Both"/>
>       </EnumerationDomain>
> </IntVectorProperty>
>
> Any ideas / suggestions about how to achieve this?
>
> Bests,
> Gonzalo
>
> --
> Dipl.-Ing. Gonzalo Brito Gadeschi
> Institute of Aerodynamics and Chair of Fluid Mechanics
> RWTH Aachen University
> Wuellnerstraße 5a
> D-52062 Aachen
> Germany
> Phone: ++49-(0)241-80-94821
> Fax: ++49-(0)241-80-92257
> E-mail:  g.brito at aia.rwth-aachen.de
> Internet: www.aia.rwth-aachen.de
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DualComboBoxPropertyWidget.tar.gz
Type: application/x-gzip
Size: 4952 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141207/89eb3155/attachment.bin>


More information about the ParaView mailing list