[Paraview] Properties not exposed

Erik Rasmussen rasmWD at rasmsys.com
Fri Nov 20 18:12:29 EST 2009


I have written a reader for some cloud model output arrays that are a 
custom binary format.  I essentially cloned the netCDF reader, and 
rewrote the internals of the methods of that reader.  It seems to work fine.

However, I can't seem to get the array names to display in the 
Properties tab after the file is selected.

This is the relevant XML, stolen from /ServerManager/readers.xml:

<StringVectorProperty name="VariableArrayInfo"

    information_only="1">

   <ArraySelectionInformationHelper attribute_name="Variable"/>

</StringVectorProperty>


<StringVectorProperty name="VariableArrayStatus"

   command="SetVariableArrayStatus"

   number_of_elements="0"

   repeat_command="1"

   number_of_elements_per_command="2"

   element_types="2 0"

   information_property="VariableArrayInfo"

   label="Variables">

   <ArraySelectionDomain name="array_list">

      <RequiredProperties>

         <Property name="VariableArrayInfo" function="ArrayList" />

      </RequiredProperties>

   </ArraySelectionDomain>

   <Documentation>

      This property lists which SAM variables to load.

   </Documentation>

</StringVectorProperty>


When the Apply button is pressed, my debug output shows me a whole lot 
of these messages which lead me to believe that the Properties tab is 
about to be filled in, but I've done something wrong that just prevents 
the process from completing:

vtkSAMReader::GetVariableArrayName will return mixing coefficient (m^2/s)
vtkSAMReader::GetVariableArrayStatus .. will return 1 for mixing 
coefficient (m^2/s)
vtkSAMReader::GetVariableArrayName will return potential temperature (K)
vtkSAMReader::GetVariableArrayStatus .. will return 1 for potential 
temperature (K)

I'm using paraview-3.6.1-Linux-i686

I'm just getting started with writing and implementing filters, so the 
problem is probably pretty obvious.  Thanks for any help!

Erik



More information about the ParaView mailing list