<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"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></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 over a group (using<br>
iter->Begin("sources")).<br>
<br>
Utkarsh<br>
<div><div></div><div><br>
On Wed, Feb 11, 2009 at 4:29 PM, Juan Fernando Duque Lombana<br>
<<a href="mailto:jduquelo@eafit.edu.co" target="_blank">jduquelo@eafit.edu.co</a>> wrote:<br>
> Using the following c++ code:<br>
><br>
> myBox=builder->createSource("sources", "CubeSource", s);<br>
> myBox->rename(QString("VWTBoundary"));<br>
> myBox->setModifiedState(pqProxy::UNMODIFIED);<br>
> pqOutputPort* opPort = myBox->getOutputPort(0);<br>
> builder->createDataRepresentation(opPort,myActiveView.current());<br>
><br>
> I've been able to create an unitary box named in my pipeline "VWTBoundary" .<br>
><br>
> Using the following code:<br>
><br>
> vtkSMProxyManager *pxm = vtkSMProxyManager::GetProxyManager();<br>
> cout << "RUNNING" << endl;<br>
> unsigned int nproxies=pxm->GetNumberOfProxies("sources");<br>
> cout << "Nproxies: " << nproxies << endl;<br>
> for(unsigned int i =0; i < nproxies; i++)<br>
> {<br>
> vtkSMProxy *proxy = pxm->GetProxy("sources",i);<br>
> cout << pxm->GetProxyName("sources",i) << endl;<br>
> }<br>
> cout << "FINNISHING"<< endl;<br>
><br>
> I'm suppously able to get the proxy names of the group "sources".<br>
><br>
> The question is as follows:<br>
><br>
> When I generate a single box, the code works flawlessly. When I have 2<br>
> proxies with the same name on the pipeline, the code doesn't seems to finish<br>
> (I never get the last cout output).<br>
> Any Ideas?<br>
><br>
> Thanks in advance!<br>
><br>
> ... Juan Fernando Duque Lombana.<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><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>