PickRotCenterButton#

class ansys.tools.visualization_interface.backends.pyvista.widgets.pick_rotation_center.PickRotCenterButton(plotter_helper: ansys.tools.visualization_interface.backends.pyvista.pyvista.Plotter, dark_mode: bool = False)#

Bases: ansys.tools.visualization_interface.backends.pyvista.widgets.widget.PlotterWidget

Provides the pick rotation center widget for the Visualization Interface Tool Plotter class.

Parameters:
plotter_helperPlotterHelper

Plotter to add the pick rotation center widget to.

dark_modebool, optional

Whether to activate the dark mode or not.

Overview#

callback

Remove or add the pick rotation center widget actor upon click.

update

Define the measurement widget button parameters.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.pick_rotation_center import PickRotCenterButton

Attribute detail#

PickRotCenterButton.plotter_helper#

Method detail#

PickRotCenterButton.callback(state: bool) None#

Remove or add the pick rotation center widget actor upon click.

Parameters:
statebool

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

PickRotCenterButton.update() None#

Define the measurement widget button parameters.