close but no.<div><br></div><div>This method is one of the ways that one can tell an vtkAlgorithm what array it should operate on.<br><div><br></div><div>Algorithms can have multiple input ports and each one of those can actually have multiple algorithms connected two it.</div>

<div><br></div><div>Ports are (by custom) for fundamentally distinct things, like the Input and Source inputs to a vtkProbeFilter.</div><div><br></div><div>Connections on those ports are (again by custom) for fundamentally similar things, like the multiple datasets fed into the single port of the vtkAppendPolyData filter.</div>

<div><br></div><div>The data fed into each of those connections has a set of arrays that are centered on the Cells another set of arrays that are centered on the Points, and a third set of arrays which aren&#39;t centered on anything Field. This is what field association means, the choice between the three.</div>

<div><br></div><div>Each of those are sets of arrays, and while arrays are typically named in modern vtk usage it was not always so, so often you still see choosing a particular array by its position in the set.</div><div>

<br></div><div>Using this method then, one can tell an algorithm that it should process the idx&#39;th array in the cell/point or field set of arrays on the connection&#39;th connection on the port&#39;th input port. Most but not all algorithms will respect your choice.</div>

<div><br></div><div><br></div><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Fri, Jun 17, 2011 at 11:06 PM, pratik <span dir="ltr">&lt;<a href="http://pratik.mallya.ml">pratik.mallya.ml</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Everyone,<br>
After a bit more inspection, i think that the idx *probably* acts as a &quot;proxy&quot; for a &quot;connection-on-a-port&quot; specified when using SetInputArrayToProcess(i.e instead of using a port and a connection number, one just uses idx as a  &quot;proxy&quot; number). I got this idea by the way GetinputArraytoProcess is used(where only the idx integer can be used to fetch the required DataArray).<br>


<br>
 It would be really helpful if someone can confirm/deny this guess.<br>
<br>
Thanks in advance,<br><font color="#888888">
Pratik</font><div><div></div><div class="h5"><br>
<br>
On Saturday 18 June 2011 06:42 AM, pratik wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br>
Can anyone please tell me what the SetInputArraytoProcess method does? In particular, I was confused about the &#39;idx&#39; value that it uses...what does that stand for? I believed that the input/output interface to vtkobjects consisted of:<br>


1) ports and<br>
2) connections<br>
so what is this &quot;idx array&quot; referring to exactly?<br>
<br>
 The man page left me quite confused:<br>
 // Set the input data arrays that this algorithm will<br>
  // process. Specifically the idx array that this algorithm will process<br>
(what is idx array?)<br>
  // (starting from 0) is the array on port, connection with the specified<br>
  // association and name or attribute type (such as SCALARS).<br>
(what do these last two sentences mean? In particular what does  &quot;array on port&quot; mean? Is it the &quot;connections&quot;? )<br>
   // The<br>
  // fieldAssociation refers to which field in the data object the array is<br>
  // stored. See vtkDataObject::<u></u>FieldAssociations for detail.<br>
<br>
<br>
Also, just out of curiosity, if there is no documentation for these methods , then how are developers using them?<br>
<br>
Thanks in advance,<br>
Pratik<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div>