ShowDesignPoints#

class ansys.geometry.core.plotting.widgets.show_design_point.ShowDesignPoints(plotter_helper: ansys.tools.visualization_interface.backends.pyvista.PyVistaBackend)#

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

Provides the a button to hide/show DesignPoint objects in the plotter.

Parameters:
plotter_helperGeometryPlotter

Provides the plotter to add the button to.

Overview#

callback

Remove or add the DesignPoint actors upon click.

update

Define the configuration and representation of the button widget.

Import detail#

from ansys.geometry.core.plotting.widgets.show_design_point import ShowDesignPoints

Method detail#

ShowDesignPoints.callback(state: bool) None#

Remove or add the DesignPoint actors upon click.

Parameters:
statebool

State of the button, which is inherited from PyVista. The value is True if the button is active.

ShowDesignPoints.update() None#

Define the configuration and representation of the button widget.