.catch((error) => {
console.log('An error occurred:', error);
// Handle any errors that occurred during the Promise resolution
});
So I basically can communicate between client and server, a lot of thing can do. But I couldnot find out, how javascript client can get mouse click position, and pass this event to python server, the python server can retrieve some information -----for example in case of image slice, return the image intensity value.( I operate on mouse event and overide interactor call back in C++ many times, for vtk.js client rendering, I can do this too). But I couldn’t find out how to do this javascrip/vtkremote rendering.
Thanks, I am appreciated for any example, any help
Let me update, on python side, if override mouse vtkWebMouseHandler, and register this protocol, I can get mouse screen corodinate from interactor, I then can get world cordinate. As long as in python or C++, I can figure it out.
class coneWebMouseHandler(protocols.vtkWebMouseHandler):
Again, how can I tell what I got from this mouse handler to client side. So far, I can let client to make session.call to get this corordinate, but this information should be poplute to client as long as mouse click.
The paraviewweb repo is deprecated. Everything that matter is now part of VTK or ParaView for the server side and vtk.js with wslink for the client side.
For simple, yet powerful solution, we tend to directly use trame which is part of the VTK/ParaView Web framework but superseed what we use to do when we develop the client and server separately for building an app.