摘要
VTK作为一套开源的三维可视化开发库在国外越来越被广泛使用.但国内对VKT内部机制研究相对较少,因而应用受到了限制.Observer和Command是软件设计模式的两个分支.灵活的运用这两种模式.提高了VTK的可重用性和扩充性.本文从设计模式的角度,详细阐述了VTK中消息事件响应的机制,并对VTK这种设计模式的优点进行了分析,最后通过实例说明了VTK设计模式的应用.
With the development of three-dimensional image reconstruction, VTK is widely used in foreign countries, as an open resource of 3D visualization tool kits. However, VTK internal mechanism has been studied relatively less in domestic, thus the application has been limited. Observer and Command are two branches of software design pattern. Flexible application of these patterns makes reusability and scalability of VKT greatly improved. The paper expatiates on the mechanism of message and event in VTK from the view of design patterns in detail. And the advantages of the design pattern used in VTK have been analyzed. Finally, an example is given to explain the application of design patterns in VTK.
出处
《西南民族大学学报(自然科学版)》
CAS
2007年第4期972-975,共4页
Journal of Southwest Minzu University(Natural Science Edition)