pyvista.RenderWindowInteractor.enable_image_style#

RenderWindowInteractor.enable_image_style()[source]#

Set the interactive style to Image.

Controls:
  • Left Mouse button triggers window level events

  • CTRL Left Mouse spins the camera around its view plane normal

  • SHIFT Left Mouse pans the camera

  • CTRL SHIFT Left Mouse dollies (a positional zoom) the camera

  • Middle mouse button pans the camera

  • Right mouse button dollies the camera

  • SHIFT Right Mouse triggers pick events

Examples

Create a simple scene with a plotter that has the Image interactive style:

>>> import pyvista as pv
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(pv.Cube(center=(1, 0, 0)))
>>> _ = plotter.add_mesh(pv.Cube(center=(0, 1, 0)))
>>> plotter.show_axes()
>>> plotter.enable_image_style()
>>> plotter.show()