<div dir="ltr"><div><div><div>Dear Utkarsh,<br></div>may I ask you to check again, which step is missing for following another user's view using collaboration? It is definitely not the missing ProcessEvents call. This problem is a real show-stopper for my batch visualization system.<br><br></div>Unfortunately this is documented nowhere, and the comments in the header files are not sufficient for me to reproduce how the event observation mechanism is set up in ParaView.<br><br></div>Peter<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-07 16:58 GMT+02:00 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See pqServer::processServerNotification() [1]. You'll need to call<br>
vtkNetworkAccessManager::ProcessEvents(..) "on idle" to process events<br>
being received from the other client.<br>
<br>
<br>
[1] <a href="https://gitlab.kitware.com/paraview/paraview/blob/master/Qt/Core/pqServer.cxx#L376-401" rel="noreferrer" target="_blank">https://gitlab.kitware.com/paraview/paraview/blob/master/Qt/Core/pqServer.cxx#L376-401</a><br>
<div><div class="h5"><br>
On Tue, Jun 7, 2016 at 8:54 AM, Peter Debuchev <<a href="mailto:peterdebuchev@gmail.com">peterdebuchev@gmail.com</a>> wrote:<br>
> Hello,<br>
> I have attached a short custom client example which I would like to always<br>
> show the same perspective as a ParaView session connected to the same<br>
> pvserver.<br>
><br>
> However, although this example renders once the objects that are available<br>
> in the ParaView session, it does not update itself when the camera is<br>
> changed in ParaView, despite of the line<br>
> "collaboration->FollowUser(collaboration->GetMasterId());" (see attached<br>
> code).<br>
><br>
> Apparently I am missing one important step, maybe register the view with<br>
> some proxymanager, call some *::AddObserver(...) or something similar? I<br>
> don't know and couldn't find out after several attempts to understand<br>
> ParaView with the help of a debugger.<br>
><br>
> As a side note: collaboration in the other direction runs successfully. If I<br>
> choose ParaView to follow this custom client by double-clicking on the eye<br>
> symbol in the collaboration panel, then the ParaView view always displays<br>
> the same perspective as the custom client.<br>
><br>
> Which are the missing steps to have the client update its view, when the<br>
> (master) ParaView camera changes?<br>
><br>
> Steps to reproduce:<br>
> + compile attached main.cxx<br>
> + run "pvserver --multi-clients &"<br>
> + run "paraview --server-url=cs://localhost:11111 &"<br>
> + create a simple pipeline in paraview<br>
> + run "./main" -> same pipeline as in paraview is rendered in custom client<br>
> + interact with view in ParaView -> client view does not update although it<br>
> is expected to follow the master<br>
><br>
> Peter<br>
><br>
</div></div>> _______________________________________________<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<br>
> <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:<br>
> <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>