vtkInteractor 几种模式

vtkInteractorStyle是实现渲染窗口交互的基础类,提供了基于事件的接口,支持vtkRenderWindowInteractor。vtkRenderWindowInteractor处理平台依赖的键盘鼠标路由和定时器控制。vtkInteractorStyle实现了操纵杆模式,按下鼠标键会产生连续的动作,如旋转、平移和缩放。同时,可以通过按键在操纵杆和轨迹球模式、相机和演员模式之间切换。vtkInteractorStyleSwitch允许在四种交互模式间切换,包括操纵杆演员、操纵杆相机、轨迹球演员和轨迹球相机。
摘要由CSDN通过智能技术生成

provide event-driven interface to the rendering window (defines trackball mode)

vtkInteractorStyle is a base class implementing the majority of motion control routines and defines an event driven interface to support vtkRenderWindowInteractorvtkRenderWindowInteractor implements platform dependent key/mouse routing and timer control, which forwards events in a neutral form to vtkInteractorStyle.

vtkInteractorStyle implements the "joystick" style of interaction. That is, holding down the mouse keys generates a stream of events that cause continuous actions (e.g., rotate, translate, pan, zoom). (The class vtkInteractorStyleTrackballimplements a grab and move style.) The event bindings for this class include the following:

  • Keypress j / Keypress t: toggle between joystick (position sensitive) and trackball (motion sensitive) styles. In joystick style, motion occurs continuously as long as a mouse button is pressed. In trackball style, motion occurs when the mouse button is pressed and the mouse pointer moves.
  • Keypress c / Keypress a: toggle between camera and actor modes. In camera mode, mouse events affect the camera position and focal poi
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值