DisplacementArrow#

class ansys.tools.visualization_interface.backends.pyvista.widgets.displace_arrows.DisplacementArrow(plotter: pyvista.Plotter, direction: CameraPanDirection)#

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

Defines the arrow to draw and what it is to do.

Parameters:
plotterPlotter

Plotter to draw the buttons on.

directionCameraPanDirection

Direction that the camera is to move.

Overview#

callback

Move the camera in the direction defined by the button.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.displace_arrows import DisplacementArrow

Attribute detail#

DisplacementArrow.direction#

Method detail#

DisplacementArrow.callback(state: bool) None#

Move the camera in the direction defined by the button.

Parameters:
statebool

Whether the state of the button, which is inherited from PyVista, is active. However, this parameter is unused by this callback method.