[Paraview] Setting a string property from list in information_only property

Moreland, Kenneth kmorel at sandia.gov
Wed Jan 13 13:48:12 EST 2010


Not until you just suggested it.  That works perfectly.  Thanks.

-Ken


On 1/13/10 11:41 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:

Have you tried StringListDomain?


On Wed, Jan 13, 2010 at 1:34 PM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> I have a reader that in RequestInformation loads a list of dimensions
> (represented by strings) and then requires that the user selects one of
> these dimensions.  I need the corresponding object inspector panel to show a
> combo box that gets populated with the list of strings provided by the
> reader and then set the selected string to the selection property.  I
> basically want something similar to the existing variable selection except
> that you are only able to select exactly one of the "variables".
>
> Is there a way to do this?  I tried using an ArraySelectionDomain, but that
> gave me a list with checkboxes, which is no good because you are only
> allowed to select one.  I also got a bunch of errors which I think are
> related to the panel trying to set two elements in a property that only
> accepts one.  I also tried an ArrayListDomain like below.  This gave a combo
> box, but it has nothing in it.  Any suggestions?
>
>      <StringVectorProperty name="VariableDimensionInfo"
>                             command="GetVariableDimensions"
>                             information_only="1">
>         <StringArrayHelper />
>       </StringVectorProperty>
>
>       <StringVectorProperty name="Dimensions"
>                             command="SetDimensions"
>                             number_of_elements="1"
>                             animatelable="0">
>         <ArrayListDomain name="array_list">
>           <RequiredProperties>
>             <Property name="VariableDimensionInfo" function="ArrayList" />
>           </RequiredProperties>
>         </ArrayListDomain>
>         <Documentation>
>           Load the grid with the given dimensions.  Any arrays that conform
>           to these dimensions will be loaded.
>         </Documentation>
>       </StringVectorProperty>
>
> -Ken
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: kmorel at sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel
>
>
> _______________________________________________
> 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://www.paraview.org/mailman/listinfo/paraview
>
>




   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100113/fec9e3bc/attachment.htm>


More information about the ParaView mailing list