[Paraview] immediate update

Sgouros, Thomas thomas_sgouros at brown.edu
Thu Mar 22 14:04:30 EDT 2018


That makes sense. I'm using RemoteRenderer, like this:

import RemoteRenderer from 'paraviewweb/src/NativeUI/Canvas/RemoteRenderer';
...
smartConnect.onConnectionReady((connection) => {
  model.pvwClient =
    ParaViewWebClient.createClient(connection,
                                   [
                                     'MouseHandler',
                                     'ViewPort',
                                     'ViewPortImageDelivery',
                                   ],
                                   amsProtocols);
  const renderer = new RemoteRenderer(model.pvwClient);
 ...

When I look in my paraviewweb/src/NativeUI/Renderers directory, I don't see
VtkRenderer, only NativeImageRenderer and RemoteRendererStatsTable. I see
VtkRenderer in the other place, though. Are they the same? Do I use them
the same way as RemoteRenderer?

Thank you,

 -Tom

On Thu, Mar 22, 2018 at 1:03 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> ViewPortImageDelivery require the JS side to request a render
> while VtkImageDelivery allow the server to push the image without the
> client requesting it (self.getApplication().InvokeEvent('UpdateEvent')).
>
> VtkImageDelivery is used inside those components:
> https://github.com/Kitware/paraviewweb/tree/master/src/
> React/Renderers/VtkRenderer
> https://github.com/Kitware/paraviewweb/tree/master/src/
> NativeUI/Renderers/VtkRenderer
>
> Which renderer do you use and how do you set it up?
>
> Seb
>
> On Thu, Mar 22, 2018 at 6:38 AM, Sgouros, Thomas <thomas_sgouros at brown.edu
> > wrote:
>
>> Thank you, but that doesn't seem to change anything for me. Doing this
>> now:
>>
>>         self.renderView1.Update()
>>         self.getApplication().InvokeEvent('UpdateEvent')
>>
>> Am I understanding it right that this is communicating with one of the
>> ViewPort or ViewPortImageDelivery protocols? Should I be sure to include
>> one of the other built-in protocols? Right now, I use those two, plus
>> MouseHandler.
>>
>> Thank you,
>>
>>  -Tom
>>
>> On Wed, Mar 21, 2018 at 11:45 PM, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com> wrote:
>>
>>> On the server side you should do something like:
>>> https://github.com/Kitware/light-viz/blob/master/server/ligh
>>> t_viz_protocols.py#L252
>>>
>>> On Wed, Mar 21, 2018 at 4:59 PM, Sgouros, Thomas <
>>> thomas_sgouros at brown.edu> wrote:
>>>
>>>> Hello all:
>>>>
>>>> How do you get the ParaViewWeb client to update the window without
>>>> clicking in it? I have some controls -- some buttons and sliders -- but
>>>> when I change them, the view doesn't update until I click in the view frame
>>>> and move slightly.
>>>>
>>>> Thank you,
>>>>
>>>>  -Tom
>>>>
>>>> _______________________________________________
>>>> 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:
>>>> https://public.kitware.com/mailman/listinfo/paraview
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180322/7415604a/attachment.html>


More information about the ParaView mailing list