DisplacementArrow#

class ansys.geometry.core.plotting.widgets.displace_arrows.DisplacementArrow(plotter: pyvista.Plotter, direction: CameraPanDirection)#

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

Method detail#

DisplacementArrow.callback(state: bool) None#

Move the camera in the direction defined by the button.

Parameters:
statebool

State of the button, which is inherited from PyVista. The value is True if the button is active. However, this parameter is unused by this callback method.