[Paraview] Dynamically updating GUI list components

clinton at elemtech.com clinton at elemtech.com
Thu Jul 19 11:47:54 EDT 2007


Umm.. yeah, that looks like a bug.
Could you could possibly provide me some sample code to test against?

Clint

On Thursday 19 July 2007 4:57:52 am Andy Heather wrote:
> Hi,
>
> I'm updating a reader to ParaView 3.1, and having difficulties getting
> the GUI list components to update when new data sets are loaded - i.e.
> they remain fixed after the first instance they are populated, instead
> of growing/shrinking/changing array name entries etc. The list
> components are described by StringVectorProperty entries in the server
> manager XML, where each list entry contains a label and a check box, e.g.
>
>
>         <StringVectorProperty
>             name="RegionArrayInfo"
>             information_only="1"
>             label="Region Arrays">
>             <ArraySelectionInformationHelper attribute_name="Region"/>
>         </StringVectorProperty>
>         <StringVectorProperty
>             name="RegionStatus"
>             command="SetRegionArrayStatus"
>             number_of_elements="0"
>             repeat_command="1"
>             number_of_elements_per_command="2"
>             element_types="2 0"
>             information_property="RegionArrayInfo">
>             <ArraySelectionDomain name="array_list">
>                 <RequiredProperties>
>                     <Property name="RegionArrayInfo"
>                         function="ArrayList"/>
>                 </RequiredProperties>
>             </ArraySelectionDomain>
>         </StringVectorProperty>
>
> The 'SetRegionArrayStatus' command simply enables/disables an array. The
> properties shown by the list are linked to a vtkDataArraySelection
> object. I can add/remove arrays from the object in the C++ code, but the
> changes are not shown by the GUI elements... Does anyone have a working
> example of using the XML StringVectorProperty component so that it
> automatically updates itself based on the current status of the
> vtkDataArraySelection object?
>
> Many thanks,
>
> Andy
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview




More information about the ParaView mailing list