# Examples from pyvista.register_interactor_style
# ===============================================

# Register a vtkInteractorStyle subclass directly and use
# it from a theme.
import pyvista as pv
from vtkmodules.vtkInteractionStyle import (
    vtkInteractorStyleFlight,
)
pv.register_interactor_style(
    'flight_style', vtkInteractorStyleFlight
)
pv.global_theme.interactor_style = 'flight_style'

# A callable that takes the interactor as an argument can also be
# registered.
def custom_style(interactor): ...
pv.register_interactor_style(
    'custom_style', custom_style
)

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

