[Paraview] Can a collaborative client share a pipeline without creating a view itself?

Peter Debuchev peterdebuchev at gmail.com
Thu Jun 16 12:47:27 EDT 2016


Hello again,
I have a follow-up question concerning my attempts to create a
collaborative standalone client. The attached example connects to a
pvserver running on localhost (with --multi-clients option) and creates a
SphereSource together with its representation. Depending on whether
"USEVIEW" is defined or undefined in the beginning, also a RenderView is
created and shows the sphere.

The plan is that other clients can pick up and display the created
pipeline. Unfortunately this doesn't work if the example code doesn't
create a RenderView by itself. Maybe my understanding is wrong, but isn't
it sufficient if a client creates sources and their representations so that
other clients can display these in their views? Moreover, the behaviour
depends on the order in which the example client and the ParaView client
are started.

This is a more structured summary of the different test "modes":

If I compile the example with "USEVIEW" defined in the beginning,
a) Starting in the order pvserver->example->ParaView, ParaView reports
"This code may not work in multi-clients mode. Could not locate server on
which the source is being added." and shows the sphere in the renderer, but
not in the pipeline panel.
b) Starting in the order pvserver->ParaView->example, everything works as
expected.

If I undefine "USEVIEW" in the beginning, it is not quite running as
expected:
c) Starting in the order pvserver->example->ParaView, ParaView reports
"Could not locate server on which the source is being added." and shows
nothing.
d) Starting in the order pvserver->ParaView->example, ParaView shows "Sph1"
in the pipeline panel, but nothing in the renderer.

Why does the Sphere not show up in ParaView's pipeline panel in case a)?
Why does the Sphere show up in ParaView's pipeline panel, but not in the
renderer in case d)?
And what does "This code may not work in multi-clients mode" and "Could not
locate server on which the source is being added" exactly wnat to tell me?

If you could share any answers to one or more of these questions or suggest
what else to try, it'll be highly appreciated.

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160616/02f79877/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cxx
Type: text/x-c++src
Size: 3374 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160616/02f79877/attachment.cxx>


More information about the ParaView mailing list