
VTK 有四种交互模式, joystick actor, joystick camera, trackball actor, and trackball camera
默认情况下,用的是 joystick camera
所以,如果当前你只想移动物体,不想移动视角,可以使用
istyle = vtk.vtkInteractorStyleSwitch() istyle.SetCurrentStyleToJoystickActor() self.iren.SetInteractorStyle(istyle)
本文介绍了如何在VTK中通过切换交互模式来控制物体移动和视角独立操作,展示了如何使用`vtkInteractorStyleSwitch`实现JoystickActor模式以只移动物体。

1661

被折叠的 条评论
为什么被折叠?



