[Paraview-developers] establish client connection to pvserver from C++

Peter Vogt vogtpeter5 at gmail.com
Wed Apr 20 11:06:01 EDT 2016


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++.
I really need nothing more than a minimal example.

Peter

On Wed, Apr 20, 2016 at 4:52 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> I would go with Python instead of C++ and use the same principal as
> ParaViewWeb but in a script mode instead.
>
> On a Mac here is what I did
>
> $ cd /Applications/paraview.app/Contents/
> $ ./bin/pvserver
>
> $ cd /Applications/paraview.app/Contents/
> $ ./bin/pvpython ~/Desktop/demo.py
>
> Hope that helps,
>
> Seb
>
> On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt <vogtpeter5 at gmail.com> wrote:
>
>> Hello,
>> we aim at implementing an image processing application that interpretes
>> the rendered images from a remote parallel visualization of large datasets.
>>
>> 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.
>>
>> I am currently stuck with the first step, how to connect to a remote
>> pvserver.
>> My first attempt failed:
>> ...
>> int main(){
>>   vtkSMSessionClient *session=vtkSMSessionClient::New();
>>   session->Connect("cs://<remote.host>");
>> }
>>
>> These lines segfault as follows:
>>   Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not
>> available.
>>   Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController for
>> Session. The session won't work correctly.
>>   Segmentation fault (core dumped)
>>
>> May I ask, if somebody can send me a working C++ code snippet or explain
>> in words, how to
>> 1. connect a client to a remote pvserver
>> 2. let the client create a sphere or any other data source on the server
>> 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.)
>>
>> Thank you
>> Peter
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at:
>> http://markmail.org/search/?q=Paraview-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160420/f8502493/attachment.html>


More information about the Paraview-developers mailing list