节点文献
Java 3D中的Text2D的扩展与应用
Extension of Text2D of Java 3D and Its Applications
【摘要】 Java3D中Text2D类虽然能生成二维文本,但由于文本的字体、字号、颜色在文本生成后就不可改变,字的排列也只有“从左向右”方式。所以,Text2D不能满足交互式建立虚拟环境中二维文本的需要。Java3D中的Text3D类支持交互式地建立文本,但Text3D的三维文本却不能退化为二维文本,这使得Text3D不能替代Text2D。所以,有必要扩展Text2D类以支持交互地建立虚拟环境中二维文本。文章给出实现这一扩展的关键技术,为用Java3D开发交互式虚拟环境建模器的二维文本生成功能提供支持。扩展的Text2D在智能型虚拟汽车驾驶道路环境建模器中的使用表明它是有效的。
【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.
【Key words】 Java3D; Text2D; Interactive modeling of virtual environment;
- 【文献出处】 计算机工程与应用 ,Computer Engineering and Applications , 编辑部邮箱 ,2003年20期
- 【分类号】TP391.1
- 【被引频次】3
- 【下载频次】71