摘要
介绍了Java3D本身提供的鼠标交互功能,针对三维仿真环境中暴露出的操作性、交互性不足的问题,提出了扩展鼠标点取功能的需求,即可以对场景中任意目标物体进行操作和控制。详细论述了Java3D扩展鼠标交互功能的实现方案:首先判断鼠标点击动作,然后在获取点击范围内所有目标的列表后选择目标对象进行操作。结合具体实现的代码阐述了扩展鼠标交互功能的一般性方法,继承、重载和改写了Java3D中相关的鼠标操作类,重点讲解了实现过程中技术难点的解决方案,最后阐明了此研究工作的价值。
This paper has introduced the build - in interactive mouse functions of Java3D. Since there are some shortages in the mouse functions of Java3D, the extension of the basic mouse functions is proposed, especially the function of mouse picking on any objects in a 3D scene. The essential design is discussed, which contains the verifi- cation of mouse clicks and the operation on any objects which lie in the click area. The programs are listed to explain the solutions for realizing the design, which includes the inheritance, overloading and modification of the classes in Java3D.
出处
《计算机仿真》
CSCD
2007年第3期176-179,共4页
Computer Simulation
基金
北京理工大学教育教学改革项目(2005-45)
关键词
人机交互
计算机仿真
虚拟现实
Human - computer interaction
Computer simulation
Virtual reality