ParaView Web: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
ParaViewWeb, is a Web framework to build applications with interactive scientific visualization inside the Web browser. Those applications can leverage a VTK and/or ParaView backend for large data processing and rendering.
ParaViewWeb, is a Web framework to build applications with interactive scientific visualization inside the Web browser. Those applications can leverage a VTK and/or ParaView backend for large data processing and rendering.


=Examples=
There are example prototypes that have been built using the ParaViewWeb framework.  Here is a webpage that has 4 of them - https://pvw.kitware.com/.
There are example prototypes that have been built using the ParaViewWeb framework.  Here is a webpage that has 4 of them - https://pvw.kitware.com/.


Line 31: Line 30:


[[Image:paraviewWeb_101.jpg|1000px]]
[[Image:paraviewWeb_101.jpg|1000px]]
==How to use a local server==
Open a terminal window.  This works in Linux, Windows or OS X.  List available applications
'''$ pvpython -m paraview.apps -l'''
Now, lets run visualizer, which we can run from your local ParaView download.  Documentation is found at http://kitware.github.io/visualizer/
'''$ pvpython -m paraview.apps.visualizer --data ~/ --port 1234'''
'''You will have to open your browser at http://localhost:1234/'''
# Running divvy => https://kitware.github.io/divvy/
$ pvpython -m paraview.apps.divvy --data ~/path-to-file/examples/disk_out_ref.ex2 --port 1235
# Running lite => https://kitware.github.io/paraview-lite/
$ pvpython -m paraview.apps.lite --data ~/ --port 1236

Revision as of 01:15, 1 April 2021

Introduction

ParaViewWeb, is a Web framework to build applications with interactive scientific visualization inside the Web browser. Those applications can leverage a VTK and/or ParaView backend for large data processing and rendering.

There are example prototypes that have been built using the ParaViewWeb framework. Here is a webpage that has 4 of them - https://pvw.kitware.com/.

Visualizer

Visualizer is a web based prototype of ParaView using the ParaView Web framework. Click on the Visualizer icon. This brings up a web client, connecting to a backend server located at Kitware headquarters, in Clifton Park, New York. Visualizer can connect to any ParaView server, but in this case they use Kitware headquarters.

ParaviewWeb 100.jpg

In the upper left corner are menu options. Running from the left side, these icons are:

  • Pipeline view.
  • Open File. Note that this is wherever the server is located. In this example, it is in New York state.
  • Filters. This is a subset of the ParaView Filters.
  • Save Screenshot. This will save locally.
  • Information. This will give information for whatever filter is selected in the pipeline browser.
  • Server settings. Generally speaking, leave this alone.
  • Reset View

Example with disk_out_ref.exo

  • Open disk_out_ref.exo.
  • Filters, Clip. You sometimes need to click on the little paper airplane next to the search window.
  • disk_out_ref.exo and the clip are both visible. Click the disk to the left of disk_out_ref.exo in the pipeline browser. Now you see the clip.
  • Paint by Temp.
  • Select disk_out_ref.exo. The original dataset now has focus.
  • Filters, Stream Tracer.
  • Filters, Tube
  • Paint this filter by Pres.
  • Change the color map to be something else.

ParaviewWeb 101.jpg

How to use a local server

Open a terminal window. This works in Linux, Windows or OS X. List available applications $ pvpython -m paraview.apps -l

Now, lets run visualizer, which we can run from your local ParaView download. Documentation is found at http://kitware.github.io/visualizer/ $ pvpython -m paraview.apps.visualizer --data ~/ --port 1234 You will have to open your browser at http://localhost:1234/

  1. Running divvy => https://kitware.github.io/divvy/

$ pvpython -m paraview.apps.divvy --data ~/path-to-file/examples/disk_out_ref.ex2 --port 1235

  1. Running lite => https://kitware.github.io/paraview-lite/

$ pvpython -m paraview.apps.lite --data ~/ --port 1236