[Paraview] Embedding the Visualizer app in the browser within an iframe

Debopam Ghoshal debopamg at gmail.com
Wed Jan 11 05:10:10 EST 2017


Hi,

We have a requirement where our application will send a request to the
paraview web server to render a specific file (which will be available in
the data given directory) in the visualizer app, and this will be embedded
within our application page as a iframe, whose source is the Visualizer
app's index.html.

We are using the pvpython.exe executable to start the paraview web server.
The command used to start the server is:

.\bin\pvpython.exe
"C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\share\paraview-5.2\web\visualizer\server\pvw-visualizer.py"
--content
"C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\share\paraview-5.2\web\visualizer\www"
--data "C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\data" --port 8080


>From the command, we can see that the web content is being served from the
C:\ParaView-5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\share\paraview-5.2\web\visualizer\www
directory.
The index.html file uses the Visualizer.js script and calls the following
functions:

Visualizer.connect({ application: 'visualizer' });
Visualizer.autoStopServer(10);

Is there any way to find out the available functions in the Visualizer.js
script and call them from our custom html file? What we intend to do is to
update the index.html file and
a. add a javascript function which will accept a filename to be rendered
b. once the filename is received by this function, it will call the
visualizer and display the specified file
c. in the visualizer page, the open files tab should be hidden.

Please let me know if you require any clarification.

Cheers & Best Wishes,
Debopam
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170111/bc56123f/attachment.html>


More information about the ParaView mailing list