在分析X3D扩展机制的基础上,针对X3D环境下不同类型的工控界面构件,提出了具体的封装实现方法.对一些非可视构件,以内节点扩展为主;对单纯的几何结构类可视构件,可基于内联机制,以单独的造型文件形式进行封装;对具有复杂行为特征的智能可视构件,则以原型节点和脚本扩展形式,实现造型和行为的集成封装.以一个智能仪表构件为例,重点探讨了智能构件的封装实现过程.
The extension mechanism of X3D(Virtual Reality) is analyzed, and a suit of encapsulation method to various components under X3D is proposed. To non-visual components, it is implemented mainly in form of inner node. To simplex geometry visual components, based on in-line mechanism, it is encapsulated in form of individual shape file. To intelligent visual components with complex behavior characters, in form of prototype node and script extension, the shape and action of interface component can be integratedly encapsulated. An intelligent instrument as an example, the encapsulation process of intelligent components is discussed as emphasis.