首页 | 本学科首页   官方微博 | 高级检索  
     

Java 3D中的Text2D的扩展与应用
引用本文:冯乔生,陈玉华,刘丹非,段鹏.Java 3D中的Text2D的扩展与应用[J].计算机工程与应用,2003,39(20):122-125.
作者姓名:冯乔生  陈玉华  刘丹非  段鹏
作者单位:1. 云南师范大学计算机科学系,昆明,650092
2. 云南民族学院网络中心,昆明,650000
基金项目:云南省自然科学基金资助(编号:2001F0011R),云南省教育厅自然科学基金资助(编号:02ZD087)
摘    要:Java3D中Text2D类虽然能生成二维文本,但由于文本的字体、字号、颜色在文本生成后就不可改变,字的排列也只有“从左向右”方式。所以,Text2D不能满足交互式建立虚拟环境中二维文本的需要。Java3D中的Text3D类支持交互式地建立文本,但Text3D的三维文本却不能退化为二维文本,这使得Text3D不能替代Text2D。所以,有必要扩展Text2D类以支持交互地建立虚拟环境中二维文本。文章给出实现这一扩展的关键技术,为用Java3D开发交互式虚拟环境建模器的二维文本生成功能提供支持。扩展的Text2D在智能型虚拟汽车驾驶道路环境建模器中的使用表明它是有效的。

关 键 词:Java  3D  Text2D  交互式虚拟环境建模
文章编号:1002-8331-(2003)20-0122-04
修稿时间:2002年11月1日

Extension of Text2D of Java 3D and Its Applications
Feng Qiaosheng,Chen Yuhua,Liu Danfei,Duan Peng.Extension of Text2D of Java 3D and Its Applications[J].Computer Engineering and Applications,2003,39(20):122-125.
Authors:Feng Qiaosheng  Chen Yuhua  Liu Danfei  Duan Peng
Affiliation:Feng Qiaosheng 1 Chen Yuhua 1 Liu Danfei 1 Duan Peng 21
Abstract:Although Java3D has class Text2D,the font ,the style,the color,the size of the text and the text itself of the instance of Text2D cannot be changed once it is created.Text2D has only″left to right″positioning pattern for the char-acters of the text,too.Therefore,Text2D cannot satisfy the requirements of interactive modeling of2-dimensional text.Java3D has class Text3D that supports interactive modeling of3-dimensopn text.But the3-dimensional text generated by Text3D cannot degenerate into2-dimensional text.So,Text3D cannot substitutes Text2D.It is necessary to extend the Text2D to support interactive modeling of the2-dimensional text.This paper presents the key techniques for this exten-sion to enable a3D virtual environment modeler,which is developed with Java3D,to model2-dimensional text interac-tively.The use of the extended Text2D class in the intelligent modeler of virtual environment of driving shows that the extended Text2D class is effective.
Keywords:Java3D  Text2D  Interactive modeling of virtual environment  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号