pyvista.plotting.widgets.WidgetHelper.add_camera_orientation_widget#
- WidgetHelper.add_camera_orientation_widget(animate: bool = True, n_frames=20)[ソース]#
カメラの向きを表すウィジェットをアクティブレンダラーに追加します.
注釈
このウィジェットには
vtk>=9.1.0が必要です.- パラメータ:
- 戻り値:
- vtkCameraOrientationWidget
カメラの向きを表すウィジェット.
参考
add_axes()Add arrow-style axes as an orientation widget.
add_box_axes()Add an axes box as an orientation widget.
- 軸オブジェクト
異なる軸のオブジェクトを示す例です。
例
カメラの向きを表すウィジェットをシーンに追加します.
>>> import pyvista as pv >>> mesh = pv.Cube() >>> plotter = pv.Plotter() >>> _ = plotter.add_mesh(mesh, scalars=range(6), show_scalar_bar=False) >>> _ = plotter.add_camera_orientation_widget() >>> plotter.show()