[Paraview-developers] establish client connection to pvserver from C++
Sebastien Jourdain
sebastien.jourdain at kitware.com
Wed Apr 20 10:52:16 EDT 2016
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/fee97095/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.py
Type: text/x-python-script
Size: 444 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160420/fee97095/attachment.bin>
More information about the Paraview-developers
mailing list