摘要
在CAD/CAM软件操作过程中,用户会遇到误操作或不想要的操作的情况,若没有撤消重做的功能,则难以回到之前的状态。文中提出采用管理类和一个单链表的结构实现撤消和重做,代码组织简单,可进行无限次撤消重做,执行效率高,并应用在自主开发的激光加工CAD/CAM软件中,实现了裁减、文字炸开等复杂操作的撤消。
In the CAD/CAM software in the process of operation, the user will encounter the misoperation or unwanted operation situation.If no undo/redo function, it will be difficult to retum to the state before. This paper puts forward a management class and a single linked list structure to implement the undo and redo, code is simple,and can be unlimited the number of undo/redo, high efficiency, and application in the laser processing of CAD/CAM software in dependent,implement the complex operation undo of cutting down and text explode.
出处
《装备制造技术》
2014年第6期18-21,共4页
Equipment Manufacturing Technology
基金
广西科学技术厅项目(编号:桂科攻12118015-2A)