MeasureWidget#

class ansys.geometry.core.plotting.widgets.measure.MeasureWidget(plotter_helper: PlotterHelper)#

Bases: ansys.geometry.core.plotting.widgets.widget.PlotterWidget

Provides the measure widget for the PyAnsys Geometry Plotter class.

Parameters:
plotter_helperPlotterHelper

Provides the plotter to add the measure widget to.

Overview#

callback

Remove or add the measurement widget actor upon click.

update

Define the measurement widget button params.

Import detail#

from ansys.geometry.core.plotting.widgets.measure import MeasureWidget

Method detail#

MeasureWidget.callback(state: bool) None#

Remove or add the measurement widget actor upon click.

Parameters:
statebool

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

MeasureWidget.update() None#

Define the measurement widget button params.