trame.html.vtk
These auto-generated docs only show this module’s objects, which rely on keyword arguments (**kwargs) for configuration. You can find more information in the trame modules section here, or more about these components in the vue-vtk-js documentation here.
- class trame.html.vtk.VtkView(children=None, ref='view', **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkRemoteView(view, ref='view', **kwargs)[source]
Bases:
trame.html.AbstractElement
The VtkRemoteView component relies on the server for rendering by sending images to the client by binding your vtkRenderWindow to it. This component gives you control over the image size and quality to reduce latency while interacting.
>>> remote_view = vtk.vtkRemoteView( ... view=..., # Instance of the view (required) ... # - VTK: vtkRenderWindow ... # - Paraview: viewProxy ... ref=..., # Identifier for this component ... interactive_quality=60, # [0, 100] 0 for fastest render, 100 for best quality ... interactive_ratio=..., # [0.1, 1] Image size scale factor while interacting ... interactor_events=( # Enable vtk.js interactor events for method binding ... "events", ... ['EndAnimation'], ... ), ... EndAnimation=end, # Bind method to the enabled event ... ... box_selection=True, # toggle selection box rendering ... box_selection_change=fn # Bind method to get rect selection ... )
- class trame.html.vtk.VtkLocalView(view, ref='view', **kwargs)[source]
Bases:
trame.html.AbstractElement
The VtkLocalView component relies on the server for defining the vtkRenderWindow but then only the geometry is exchanged with the client. The server does not need a GPU as no rendering is happening on the server. The vtkRenderWindow is only used to retrieve the scene data and parameters (coloring by, representations, …). By relying on the same vtkRenderWindow, you can easily switch from a
VtkRemoteView
to aVtkLocalView
or vice-versa. This component gives you controls on how you want to map mouse interaction with the camera. The default setting mimic default VTK interactor style so you will rarely have to override to theinteractor_settings
.>>> local_view = vtk.VtkLocalView( ... view=..., # Instance of the view (required) ... # - VTK: vtkRenderWindow ... # - Paraview: viewProxy ... ref=..., # Identifier for this component ... context_name=..., # Namespace for geometry cache ... interactor_settings=..., # Options for camera controls. See below. ... interactor_events=( # Enable vtk.js interactor events for method binding ... "events", ... ['EndAnimation'], ... ), ... EndAnimation=end, # Bind method to the enabled event ... ... box_selection=True, # toggle selection box rendering ... box_selection_change=fn # Bind method to get rect selection ... )
- class trame.html.vtk.VtkRemoteLocalView(view, enable_rendering=True, **kwargs)[source]
Bases:
trame.html.AbstractElement
The VtkRemoteLocalView component is a blend of VtkLocalView and VtkRemoteView where the user can choose dynamically which mode they want to be in. When instantiating a VtkRemoteLocalView several variables and triggers will be created for you to more easily control your view.
>>> rl_view = vtk.VtkRemoteLocalView( ... view=..., # Instance of the view (required) ... # - VTK: vtkRenderWindow ... # - Paraview: viewProxy ... # Just VtkRemoteLocalView params ... namespace=..., # Prefix for variables and triggers. See below. (required) ... mode="local", # Decide between local or remote. See below. ... ... # VtkRemoteView params ... **remote_view_params, ... ... # VtkLocalView params ... **local_view_params, ... )
- property view
Get linked vtkRenderWindow instance
- class trame.html.vtk.VtkAlgorithm(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkCellData(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkDataArray(**kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkFieldData(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkGeometryRepresentation(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkGlyphRepresentation(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkMesh(name, dataset=None, field_to_keep=None, point_arrays=None, cell_arrays=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkPointData(children=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkPolyData(name, children=None, dataset=None, **kwargs)[source]
Bases:
trame.html.AbstractElement
- class trame.html.vtk.VtkReader(**kwargs)[source]
Bases:
trame.html.AbstractElement
Bases:
trame.html.AbstractElement