Ruler
#
- class ansys.tools.visualization_interface.backends.pyvista.widgets.ruler.Ruler(plotter: pyvista.Plotter)#
Bases:
ansys.tools.visualization_interface.backends.pyvista.widgets.widget.PlotterWidget
Provides the ruler widget for the Visualization Interface Tool
Plotter
class.- Parameters:
- plotter
Plotter
Provides the plotter to add the ruler widget to.
- plotter
Overview#
Import detail#
from ansys.tools.visualization_interface.backends.pyvista.widgets.ruler import Ruler
Method detail#
- Ruler.callback(state: bool) None #
Remove or add the ruler widget actor upon click.
- Parameters:
- statebool
Whether the state of the button, which is inherited from PyVista, is
True
.
Notes
This method provides a callback function for the ruler widet. It is called every time the ruler widget is clicked.