ViewButton#

class ansys.geometry.core.plotting.widgets.view_button.ViewButton(plotter: pyvista.Plotter, direction: tuple)#

Bases: ansys.geometry.core.plotting.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.geometry.core.plotting.widgets.view_button import ViewButton

Method detail#

ViewButton.callback(state: bool) None#

Change the view depending on button interaction.

Parameters:
statebool

State of the button, which is inherited from PyVista. The value is True if the button is active.

Raises:
NotImplementedError

Raised if the specified direction is not implemented.