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

对矢量图形的组合拆分算法及编程实现
引用本文:翟文国,佟俐鹃.对矢量图形的组合拆分算法及编程实现[J].北京机械工业学院学报,2002,17(1):6-11,37.
作者姓名:翟文国  佟俐鹃
作者单位:北京机械工业学院计算机及自动化系 北京100085 (翟文国),北京机械工业学院计算机及自动化系 北京100085(佟俐鹃)
基金项目:国家九五重点科技攻关项目[项目编号:97-956-03-02-02
摘    要:组合拆分是编辑矢量图形不可缺少的操作,如保证图元的显示顺序不被打扰,以及保证整幅图形的显示效果是一个很关键的问题。利用面向对象的方法,通过设计适当的类,将图形元素对象化,并且设计了组合图元类CComboDraw,较好地实现了对图元对象的组合拆分操作。论述了在VC++6.0环境下利用MFC类库对图元进行组合及拆分操作的算法和编程实现。另外,图形元素经组合或拆分操作后,图形的显示顺序(即图元的图层)会发生改变,为此又给出了图形的显示算法和编程实现。

关 键 词:矢量图形  图元  图层  组合拆分  图形编辑  程序设计  MFC
文章编号:1008-1658(2002)01-0006-06

The combination and splitting algorithm and the realization of program in vector graph
ZHAI Wen guo,TONG Li juan.The combination and splitting algorithm and the realization of program in vector graph[J].Journal of Beijing Institute of Machinery,2002,17(1):6-11,37.
Authors:ZHAI Wen guo  TONG Li juan
Abstract:The combination and separation are two essential operations in etor graphics editing.lt is crucial to ensure all the graphics displayed correctly after the operations of combination and separation. Under the theory of OOP,the way of combining and splitting the graphics and the realization of program are used in the procedure of developing the graph editor. Through the design of all the graphics classes and the combination class CComboDraw, the operation of combination and separation of the graphics is realized successfully. the algorithms of the operation of the combination and separation and the the program to realize the algorithms are put foward. In order to make all the graphics displayed correctly after the operation of the combination and separation, the algorithms of display of the graphics and the program are presented as well.
Keywords:vector graph  graph element  graph layer
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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