ViewButton#

class ansys.tools.visualization_interface.backends.pyvista.widgets.view_button.ViewButton(plotter: pyvista.Plotter, direction: tuple)#

Bases: ansys.tools.visualization_interface.backends.pyvista.widgets.button.Button

Provides for changing the view.

Parameters:
plotterPlotter

Plotter to draw the buttons on.

directionViewDirection

Direction of the view.

Overview#

callback

Change the view depending on button interaction.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.view_button import ViewButton

Attribute detail#

ViewButton.direction#

Method detail#

ViewButton.callback(state: bool) None#

Change the view depending on button interaction.

Parameters:
statebool

Whether the state of the button, which is inherited from PyVista, is True.

Raises:
NotImplementedError

Raised if the specified direction is not implemented.