MeshSliderWidget#

class ansys.tools.visualization_interface.backends.pyvista.widgets.mesh_slider.MeshSliderWidget(plotter_helper: ansys.tools.visualization_interface.backends.pyvista.pyvista.Plotter)#

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

Provides the mesh slider widget for the Visualization Interface Tool Plotter class.

Parameters:
plotter_helperPlotterHelper

Plotter to add the mesh slider widget to.

Overview#

callback

Remove or add the mesh slider widget actor upon click.

update

Define the mesh slider widget button parameters.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.mesh_slider import MeshSliderWidget

Attribute detail#

MeshSliderWidget.plotter_helper#

Method detail#

MeshSliderWidget.callback(state: bool) None#

Remove or add the mesh slider widget actor upon click.

Parameters:
statebool

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

MeshSliderWidget.update() None#

Define the mesh slider widget button parameters.