<div class="gmail_quote"><br><br><br>Thank you, this was an oldie I found my way around :),<br>Instead of finding registered proxies and checking if their representation existed, I used the pipelines and iterated over their properties with an iterator.<br>
<br>
Thanks!<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 8:54 AM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The cout is never shown since GetProxyName() returns 0 for the second<br>
time around. A cleaner alternative would be to use the<br>
vtkSMProxyIterator to iterate &nbsp;over a group (using<br>
iter-&gt;Begin(&quot;sources&quot;)).<br>
<br>
Utkarsh<br>
<div><div></div><div><br>
On Wed, Feb 11, 2009 at 4:29 PM, Juan Fernando Duque Lombana<br>
&lt;<a href="mailto:jduquelo@eafit.edu.co" target="_blank">jduquelo@eafit.edu.co</a>&gt; wrote:<br>
&gt; Using the following c++ code:<br>
&gt;<br>
&gt; myBox=builder-&gt;createSource(&quot;sources&quot;, &quot;CubeSource&quot;, s);<br>
&gt; myBox-&gt;rename(QString(&quot;VWTBoundary&quot;));<br>
&gt; myBox-&gt;setModifiedState(pqProxy::UNMODIFIED);<br>
&gt; pqOutputPort* opPort = myBox-&gt;getOutputPort(0);<br>
&gt; builder-&gt;createDataRepresentation(opPort,myActiveView.current());<br>
&gt;<br>
&gt; I&#39;ve been able to create an unitary box named in my pipeline &quot;VWTBoundary&quot; .<br>
&gt;<br>
&gt; Using the following code:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;vtkSMProxyManager *pxm = vtkSMProxyManager::GetProxyManager();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;cout &lt;&lt; &quot;RUNNING&quot; &lt;&lt; endl;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;unsigned int nproxies=pxm-&gt;GetNumberOfProxies(&quot;sources&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Nproxies: &quot; &lt;&lt; nproxies &lt;&lt; endl;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; for(unsigned int i =0; i &lt; nproxies; i++)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSMProxy *proxy = pxm-&gt;GetProxy(&quot;sources&quot;,i);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; pxm-&gt;GetProxyName(&quot;sources&quot;,i) &lt;&lt; endl;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;FINNISHING&quot;&lt;&lt; endl;<br>
&gt;<br>
&gt; I&#39;m suppously able to get the proxy names of the group &quot;sources&quot;.<br>
&gt;<br>
&gt; The question is as follows:<br>
&gt;<br>
&gt; When I generate a single box, the code works flawlessly. When I have 2<br>
&gt; proxies with the same name on the pipeline, the code doesn&#39;t seems to finish<br>
&gt; (I never get the last cout output).<br>
&gt; Any Ideas?<br>
&gt;<br>
&gt; Thanks in advance!<br>
&gt;<br>
&gt; ... Juan Fernando Duque Lombana.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">... Juan Fernando Duque Lombana.<br>
</font></div><br><br clear="all"><br>-- <br>... Juan Fernando Duque Lombana.<br>