<div dir="ltr">How big is the array? For 100s of values, I'd say IntVectorProperty is still reasonable. Any other approach will mean that those values are not going to get saved in state files and such. For a one off push to server side for values you don't care to be saved in state files, you can directly call API using the vtkClientServerStream on the proxy as follows:<div><br></div><div><div>  vtkClientServerStream stream;</div></div><div>  stream << vtkClientServerStream::Invoke</div><div>              << VTKOBJECT(proxy)</div><div>          <br></div><div>  for (int cc=0; cc < maxValues; cc++)</div><div>    {</div><div>    }</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 6:22 AM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I’m afraid I’ve forgotten how to write plugins for paraview and I have a simple-ish question :<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve got a vtkUnsignedIntArray in my custom panel and I’d like to set it as a property on a reader,<u></u><u></u></p>
<p class="MsoNormal">the reader has a member<u></u><u></u></p>
<p class="MsoNormal">vtkSetObjectMacro(SelectedGIDs)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">and in the panel I’ve generated a list of IDs, but I cannot recall how I’m supposed to set them as the proxyproperty for the source.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is there an example (I do remember that I don’t want to use an IntVectorProperty, but pass a whole array as a proxy property)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">(I’m considering using a vtkSelection, but the GIDs are not the same as the cell Ids, so I wanted to try a direct array method first)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">thanks<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">JB<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">--
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">John Biddiscombe,                        email:biddisco @.at.@ <a href="http://cscs.ch" target="_blank">cscs.ch</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><a href="http://www.cscs.ch/" target="_blank"><span style="color:windowtext">http://www.cscs.ch/</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">CSCS, Swiss National Supercomputing Centre  | Tel:  <a href="tel:%2B41%20%2891%29%20610.82.07" value="+41916108207" target="_blank">+41 (91) 610.82.07</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="IT-CH" style="font-size:10.0pt;font-family:"Courier New"">Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  <a href="tel:%2B41%20%2891%29%20610.82.82" value="+41916108282" target="_blank">+41 (91) 610.82.82</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="IT-CH"><u></u> <u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>