pyvista.RenderWindowInteractor.enable_rubber_band_style

pyvista.RenderWindowInteractor.enable_rubber_band_style#

RenderWindowInteractor.enable_rubber_band_style()[ソース]#

インタラクティブスタイルをラバーバンド選択に設定します.

This interactor style allows the user to draw a rectangle in the render window by hitting r and then using the left mouse button. When the mouse button is released, the attached picker operates on the pixel in the center of the selection rectangle. If the picker happens to be a vtkAreaPicker it will operate on the entire selection rectangle. When the p key is hit the above pick operation occurs on a 1x1 rectangle. In other respects it behaves the same as the Trackball Camera style.

ラバーバンドインタラクティブスタイルのプロッタを使用して,簡単なシーンを作成します.

>>> import pyvista as pv
>>> plotter = pv.Plotter()
>>> _ = plotter.add_mesh(pv.Cube(center=(1, 0, 0)))
>>> _ = plotter.add_mesh(pv.Cube(center=(0, 1, 0)))
>>> plotter.show_axes()
>>> plotter.enable_rubber_band_style()
>>> plotter.show()