[Paraview] Dynamically updating GUI list components

Andy Heather a.heather at opencfd.co.uk
Mon Jul 23 06:01:11 EDT 2007


Hi Clint,

I've attached a tar file with an example reader - it creates simple
client/server side plugins for files with extension '.test'. When you
select 'PVTestReader.test', the code will generate a cube.

The check-box on the properties panel switches between two data sets -
one with five arrays, and the other with ten. The list view on the
properties panel does not get updated, but if you go to the display
panel, you can see that the relevant fields have been generated by
looking at the 'color by' drop down selection.

Thanks,

Andy


clinton at elemtech.com wrote:
> 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
>>     
>
>
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PVTestReader.tar
Type: application/x-tar
Size: 20480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20070723/455f0894/PVTestReader-0001.tar


More information about the ParaView mailing list