Skip to content

update plain VTK examples - #94

Merged
jourdain merged 60 commits into
masterfrom
examples
Aug 27, 2026
Merged

jourdain merged 60 commits into
masterfrom
examples

Conversation

@jspanchu

Copy link
Copy Markdown
Member

This PR

  1. cleans up existing examples to subclass TrameApp.
  2. adds screenshot for each example under examples/vtk.
  3. all widget examples now create a vtkRenderWindowInteractor with track_interactor_observer_instances=True. That way, no need to explicitly register the widget.
  4. adds new wasm64_large_mesh.py
  5. adds new render_benchmark.py that can use webgl/webgpu and render as many actors as user wants to test limits/performance.

@jspanchu

Copy link
Copy Markdown
Member Author

fyi @alesgenova

@jspanchu
jspanchu requested a review from jourdain August 26, 2026 00:01
Comment thread examples/vtk/balloon_widget.py Outdated
Comment thread examples/vtk/balloon_widget.py Outdated
Comment thread examples/vtk/charts_scatter.py Outdated
Comment thread examples/vtk/charts_scatter.py Outdated
Comment thread examples/vtk/cone.py
Comment thread examples/vtk/flow.py
Comment thread examples/vtk/flow.py Outdated
Comment thread examples/vtk/flow.py Outdated
- props.useHandler was removed from VtkLocal.js in
8085541
Renamed from actor_picker2.py to describe what the example does. Add screenshot.
Renamed from ballon.py, ported to TrameApp with LocalView.
Marked broken: widget not shown on client.
Renamed from borderWidget.py. Enable widget in pipeline,
drop register_vtk_object. Add screenshot.
Renamed from widgets_plane.py. Look up widget id via
object_manager.GetId, track interactor observers. Add screenshot.
Drop the side-by-side VtkRemoteView, keep only LocalView.
Retitle to trame-vtklocal. Add screenshot.
Port to TrameApp, always use LocalView instead of USE_WASM switch.
Marked broken.
Port to TrameApp base class, label every slider and relayout
the controls. Add screenshot.
Port to TrameApp base class, use threshold.upper_threshold property.
Add screenshot.
Port to TrameApp base class, title explains local versus remote view
split. Add screenshot.
Port to TrameApp base class instead of decorator plus get_server.
Add screenshot.
Import from vtkmodules instead of the vtk package, retitle to
Scalar Bar Actor. Add screenshot.
Port to TrameApp base class, label opacity and cache sliders,
relayout buttons. Add screenshot.
Port to TrameApp base class, title tells user to interact then click
update view. Add screenshot.
Title explains clicking update copies camera from remote view to the
wasm view. Add screenshot.
Port to TrameApp, look up widget id via object_manager.GetId, track
interactor observers, show listener state. Add screenshot.
Port to TrameApp, drop remote view path, animate widget. Now works,
so remove the not finished banner. Add screenshot.
Comment thread examples/vtk/requirements.txt Outdated
Comment thread examples/vtk/silhouette.py Outdated
Comment thread examples/vtk/wasm64_large_mesh.py
Comment thread examples/vtk/widgets_camera.py Outdated
Comment thread examples/vtk/widgets_camera.py Outdated
Comment thread examples/vtk/widgets_plane_slice.py Outdated
Comment thread examples/vtk/widgets_plane_slice.py Outdated
@jourdain
jourdain merged commit 7a0a321 into master Aug 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants