[Paraview] server-side InvokeEvent(...) doesn't call client-side observer
Kolja Petersen
petersenkolja at gmail.com
Wed Nov 22 13:54:48 EST 2017
Oh, well, but how is Catalyst forwarding new time step information from
server to client?
Time step updates can occur at any time. Which event mechanism notifies the
client?
Thanks
Kolja
On Wed, Nov 22, 2017 at 6:57 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> This is not a use-case supported in ParaView. We don't forward events from
> server to client.
>
> On Wed, Nov 22, 2017 at 12:53 PM, Kolja Petersen <petersenkolja at gmail.com>
> wrote:
>
>> Hello,
>> I would like to invoke a callback on a proxy in a pvpython session from a
>> server-side method.
>>
>> In my server-side class "vtkCustom" I have a method
>> void vtkCustom::SetData(int i){
>> ...
>> this->InvokeEvent(1999,NULL);
>> ...
>> }
>>
>>
>> On the client side, I create a proxy to a vtkCustom object, register an
>> observer and set the "Data" property, which should invoke eventid=1999:
>> ...
>> custom=pxm.NewProxy("myextensions","Custom")
>> pxm.RegisterProxy("myextensions","Custom",custom)
>>
>> def fun(obj,event):
>> print "CALLBACK",obj,event
>>
>> custom.AddObserver(1999,fun)
>> vtk.vtkSMPropertyHelper(custom.GetProperty("Data")).Set(42)
>> ...
>>
>> The observer function "fun" on the client is never invoked, although the
>> server-side invokes that event. I'm misunderstanding some concept of
>> Paraviews event mechanism for sure. Can you help me correct my steps?
>> Thanks
>> Kolja
>>
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virenfrei.
>> www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> <#m_-5828339282545804963_m_-8161186613008835523_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171122/1a9db537/attachment.html>
More information about the ParaView
mailing list