That's great! Thanks for sharing. What are we seeing in the video, you're doing some displacement of the mesh?<br><br>By the way there is a new plugin that was just added to ParaView, it's called MobileRemoteControl. It's not general purpose like the ParaViewSocketPlugin, it has no python scripting, but it uses a similar socket design. It uses the ParaViewWeb protocol (provided by the vtkWebGLExporter library) to send the ParaView scene geometry to a mobile device, and receives camera state information back from the device. It runs on Android and iOS, but so far I've only developed a UI for iOS. It's still work in progress, but there is some information here- <a href="http://vtk.org/Wiki/VES/ParaView_Mobile_Remote_Control">http://vtk.org/Wiki/VES/ParaView_Mobile_Remote_Control</a><br>
<br>Pat<br><br><div class="gmail_quote">On Sat, Dec 8, 2012 at 4:33 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>That is really cool to see. Thanks for sharing the video. <br><br>Sent from my iPhone</div><div><div class="h5"><div><br>On Dec 7, 2012, at 1:18 PM, Felipe Bordeu <<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>> wrote:<br>
<br></div><blockquote type="cite"><div>
<div>Thanks pat,<br>
<br>
<br>
This is the result. <a href="https://www.youtube.com/watch?v=6vqPQAWEqBk" target="_blank">https://www.youtube.com/watch?v=6vqPQAWEqBk</a><br>
<br>
<br>
Felipe<br>
<br>
<br>
Le 06/12/2012 13:57, Pat Marion a écrit :<br>
</div>
<blockquote type="cite">Yes, you can send information back through the
socket. If you're using the socket to invoke python code, then
any string returned by your python code will be written to the
socket. But, by default the python handler method doesn't return
anything. If you edit pqPythonSocketHandler.cxx, you can change
the python handler function that is used. Just put some code like
this at the top of onSocketReadReady():<br>
<br>
PyObject* mainModule = PyImport_AddModule("__main__");<br>
PyObject* mainDict = PyModule_GetDict(mainModule);<br>
this->Internal->Callback = PyDict_GetItemString(mainDict,
"myFunction");<br>
<br>
That will make the socket forward the string to a python function
you've implemented called "myFunction()", and any string returned
by that will be written to the socket.<br>
<br>
Pat<br>
<br>
<div class="gmail_quote">
On Thu, Dec 6, 2012 at 12:42 AM, Felipe Bordeu <span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi everybody,<br>
<br>
I'm using the great plugin ;) ParaViewSocketPlugin, to control
ParaView. But now I will like to have some information sent
back to the client. I look at the sources but I couldn't
figure out the way to do it.<br>
<br>
Is this possible, using the plugin (or some minor
modifications) ???<br>
<br>
Felipe<br>
<br>
-- <br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
-------------------------------------<br>
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57<br>
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06<br>
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a><br>
Institut GeM - UMR CNRS 6183<br>
École Centrale Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
-------------------------------------<br>
<br>
_______________________________________________<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:
<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>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br><span></span><br>
<span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a></span><br>
<span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a></span><br>
</div></blockquote></div></div></div><br>_______________________________________________<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/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <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></blockquote></div><br>