Download RemoteView

0 views
Skip to first unread message

Vida Hubbert

unread,
May 20, 2024, 7:50:59 PM5/20/24
to vipaphosfern

Like this example RemoteView, I see python start a server but source is static, is there any possibility to accpet a input file url from front-end and in front-end web view you can use some function like clip or change remote view mapper colorMode or lookupTable.applyColorMap().

download RemoteView


Download Filehttps://t.co/uyTJyltYOb



So, is there any posibility that use vtk-js remoteview to achieve same purpose? (In front-end, change render mode by select different select option? and in backend, start a server separate for each user to handle web input and render some unstructured grid and maybe clip the same model?)

Trame is using the vtk-js RemoveView to do it. But the client is telling the server what to do. At that point the client is just a UI that drive the server side to do data processing and visualization.

At that point it is up to you to decide if you want to go with a trame server or a VTK/ParaView Web one, but keep in mind that trame is based on that same VTK/ParaView Web infrastructure (client[wslink+vtk.js] + server[python/vtk/paraview]).

As reference you can look at that vue sample that connect to either a vtk or ParaView server using the VTK/ParaView Web infrastructure with a Vue.js integration point of view. But that code base can be used as reference to do something similar with React.

For the multi-user setup either VTK/ParaView Web or Trame would rely on some docker setup to automate the process start per client connection but the trame cookie cutter would provide all the initial setup for your app to work with a docker image. If you rather use your own infrastructure for starting the process yourself, you can do that as well.

dd60e6d636
Reply all
Reply to author
Forward
0 new messages