# Examples from pyvista.RenderWindowInteractor.style
# ==================================================

# Set interactor style by name.
import pyvista as pv
pl = pv.Plotter()
pl.iren.style = 'terrain_style'

# Set interactor style with a customized vtk interactor.
from vtkmodules.vtkInteractionStyle import (
    vtkInteractorStyleTrackballCamera,
)

class MyCustomInteractorStyle(vtkInteractorStyleTrackballCamera):
    # Implement custom functionality
    def __repr__(self):
        return 'A custom interactor style.'

pl = pv.Plotter()
pl.iren.style = MyCustomInteractorStyle()
pl.iren.style

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code
