In the latest version of ParaViewWeb, I've added the Native implementation of it while the other one was React only. Divvy is the application that use the native one.
https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L134-L140 For the client, we initialize it like that: https://github.com/Kitware/divvy/blob/master/Sources/client.js#L27-L29 HTH, Seb On Thu, Mar 22, 2018 at 12:04 PM, Sgouros, Thomas <[email protected]> wrote: > 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 < > [email protected]> 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/Nativ >> eUI/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 < >> [email protected]> 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 < >>> [email protected]> 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 < >>>> [email protected]> 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 >>>>> >>>>> >>>> >>> >> >
_______________________________________________ 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
