<div dir="ltr"><div><div><div><div>Yes, I have tried already for a few days to figure out what is going on in the python wrappers. I didn't get too far, because the architecture of the wrappers and their generation is not documented.<br></div>So, please, if you can quickly derive a working C++ solution from the python code, I will highly appreciate it.<br></div>Otherwise I would hope that somebody else will answer my question.<br><br></div>Thanks<br></div>Peter<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 5:09 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@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="ltr">The python code do call the C++ layer underneath, so if you follow the path of the calls you could figure out the C++ part of it.<div>Unless someone else provide a C++ example.</div><div><br></div><div>Seb</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 9:06 AM, Peter Vogt <span dir="ltr"><<a href="mailto:vogtpeter5@gmail.com" target="_blank">vogtpeter5@gmail.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="ltr"><div><div>Thank you, but we need a pure C++ solution. There is plenty of information how this is done with python scripting, but I can't find anything for C++.<br></div>I really need nothing more than a minimal example.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Peter<br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 4:52 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@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="ltr">I would go with Python instead of C++ and use the same principal as ParaViewWeb but in a script mode instead.<div><br></div><div>On a Mac here is what I did</div><div><br></div><div><div>$ cd /Applications/paraview.app/Contents/</div><div>$ ./bin/pvserver</div><div><br></div><div>$ cd /Applications/paraview.app/Contents/</div><div>$ ./bin/pvpython ~/Desktop/demo.py</div></div><div><br></div><div>Hope that helps,</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt <span dir="ltr"><<a href="mailto:vogtpeter5@gmail.com" target="_blank">vogtpeter5@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<br>we aim at implementing an image processing application that interpretes the rendered images from a remote parallel visualization of large datasets.<br><br>For this purpose we need to connect to a running pvserver, send a few commands to set up the visualization pipeline, and receive a sequence of rendered images. If possible, we would use the core classes without a necessity to include the Qt framework.<br><br>I am currently stuck with the first step, how to connect to a remote pvserver.<br>My first attempt failed:<br>...<br>int main(){<br>  vtkSMSessionClient *session=vtkSMSessionClient::New();<br>  session->Connect("cs://<remote.host>");<br>}<br><br>These lines segfault as follows:<br>  Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not available.<br>  Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController for Session. The session won't work correctly.<br>  Segmentation fault (core dumped)<br><br>May I ask, if somebody can send me a working C++ code snippet or explain in words, how to<br>1. connect a client to a remote pvserver<br>2. let the client create a sphere or any other data source on the server<br>3. receive a rendered image from the server (I might be able to figure this out myself if I have a solution for steps 1. and 2.)<br><br>Thank you<span><font color="#888888"><br>Peter<br></font></span></div>
<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 <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>