<HTML>
<HEAD>
<TITLE>Re: [Paraview] Properties not exposed</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I’m not sure we can diagnose the problem with this information. Are you sure that the variable names are being read and stored in the RequestInformation method? If you don’t read them until RequestData, then it is too late.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 11/20/09 4:12 PM, "Erik Rasmussen" <<a href="rasmWD@rasmsys.com">rasmWD@rasmsys.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have written a reader for some cloud model output arrays that are a<BR>
custom binary format. I essentially cloned the netCDF reader, and<BR>
rewrote the internals of the methods of that reader. It seems to work fine.<BR>
<BR>
However, I can't seem to get the array names to display in the<BR>
Properties tab after the file is selected.<BR>
<BR>
This is the relevant XML, stolen from /ServerManager/readers.xml:<BR>
<BR>
<StringVectorProperty name="VariableArrayInfo"<BR>
<BR>
information_only="1"><BR>
<BR>
<ArraySelectionInformationHelper attribute_name="Variable"/><BR>
<BR>
</StringVectorProperty><BR>
<BR>
<BR>
<StringVectorProperty name="VariableArrayStatus"<BR>
<BR>
command="SetVariableArrayStatus"<BR>
<BR>
number_of_elements="0"<BR>
<BR>
repeat_command="1"<BR>
<BR>
number_of_elements_per_command="2"<BR>
<BR>
element_types="2 0"<BR>
<BR>
information_property="VariableArrayInfo"<BR>
<BR>
label="Variables"><BR>
<BR>
<ArraySelectionDomain name="array_list"><BR>
<BR>
<RequiredProperties><BR>
<BR>
<Property name="VariableArrayInfo" function="ArrayList" /><BR>
<BR>
</RequiredProperties><BR>
<BR>
</ArraySelectionDomain><BR>
<BR>
<Documentation><BR>
<BR>
This property lists which SAM variables to load.<BR>
<BR>
</Documentation><BR>
<BR>
</StringVectorProperty><BR>
<BR>
<BR>
When the Apply button is pressed, my debug output shows me a whole lot<BR>
of these messages which lead me to believe that the Properties tab is<BR>
about to be filled in, but I've done something wrong that just prevents<BR>
the process from completing:<BR>
<BR>
vtkSAMReader::GetVariableArrayName will return mixing coefficient (m^2/s)<BR>
vtkSAMReader::GetVariableArrayStatus .. will return 1 for mixing<BR>
coefficient (m^2/s)<BR>
vtkSAMReader::GetVariableArrayName will return potential temperature (K)<BR>
vtkSAMReader::GetVariableArrayStatus .. will return 1 for potential<BR>
temperature (K)<BR>
<BR>
I'm using paraview-3.6.1-Linux-i686<BR>
<BR>
I'm just getting started with writing and implementing filters, so the<BR>
problem is probably pretty obvious. Thanks for any help!<BR>
<BR>
Erik<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>