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:
- plotter
Plotter
Plotter to draw the buttons on.
- direction
ViewDirection
Direction of the view.
- plotter
Overview#
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.