ParallelProjectionButton#

class ansys.tools.visualization_interface.backends.pyvista.widgets.parallel_projection.ParallelProjectionButton(plotter: ansys.tools.visualization_interface.backends.pyvista.pyvista.Plotter, dark_mode: bool = False)#

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

Toggle parallel projection for the camera.

Parameters:
plotterPlotter

Plotter to add the widget to.

dark_modebool, optional

Whether dark mode is active.

Overview#

callback

Toggle parallel projection.

update

Update the button appearance.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.parallel_projection import ParallelProjectionButton

Method detail#

ParallelProjectionButton.callback(state: bool) None#

Toggle parallel projection.

Parameters:
statebool

Button state from PyVista.

ParallelProjectionButton.update() None#

Update the button appearance.