[Paraview] Dynamically updating GUI list components
Andy Heather
a.heather at opencfd.co.uk
Thu Jul 19 06:57:52 EDT 2007
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
More information about the ParaView
mailing list