[Paraview] ParaViewSocketPlugin

Pat Marion pat.marion at kitware.com
Sat Dec 8 00:56:08 EST 2012


That's great!  Thanks for sharing.  What are we seeing in the video, you're
doing some displacement of the mesh?

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-
http://vtk.org/Wiki/VES/ParaView_Mobile_Remote_Control

Pat

On Sat, Dec 8, 2012 at 4:33 AM, Robert Maynard
<robert.maynard at kitware.com>wrote:

> That is really cool to see. Thanks for sharing the video.
>
> Sent from my iPhone
>
> On Dec 7, 2012, at 1:18 PM, Felipe Bordeu <felipe.bordeu at ec-nantes.fr>
> wrote:
>
> Thanks pat,
>
>
> This is the result. https://www.youtube.com/watch?v=6vqPQAWEqBk
>
>
> Felipe
>
>
> Le 06/12/2012 13:57, Pat Marion a écrit :
>
> 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():
>
>   PyObject* mainModule = PyImport_AddModule("__main__");
>   PyObject* mainDict = PyModule_GetDict(mainModule);
>   this->Internal->Callback = PyDict_GetItemString(mainDict, "myFunction");
>
> 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.
>
> Pat
>
>  On Thu, Dec 6, 2012 at 12:42 AM, Felipe Bordeu <
> felipe.bordeu at ec-nantes.fr> wrote:
>
>> hi everybody,
>>
>> 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.
>>
>> Is this possible, using the plugin (or some minor modifications) ???
>>
>> Felipe
>>
>> --
>> Felipe Bordeu Weldt
>> Ingénieur de Recherche
>> -------------------------------------
>> Tél. : 33 (0)2 40 37 16 57
>> Fax. : 33 (0)2 40 74 74 06
>> Felipe.Bordeu at ec-nantes.fr
>> Institut GeM - UMR CNRS 6183
>> École Centrale Nantes
>> 1 Rue de La Noë, 44321 Nantes, FRANCE
>> -------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
>
> --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06Felipe.Bordeu at ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> -------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121208/66da82b0/attachment.htm>


More information about the ParaView mailing list