摘要
介绍了开发泵水力设计软件PCAD支撑平台的目的,给出了开发支撑平台的设计思路和开发流程。在Visual C++6.0环境下,利用MFC类库建立了单文档程序框架,定义二维图形基类同时定义各种基本图元继承类,并根据GDI绘图函数依照解析几何的数学方法,编写绘图函数程序代码,采用交互式绘图方式,响应鼠标消息,实现绘图功能,成功地开发了可独立运行于Windows系统的PCAD支撑平台。运行实例表明此支撑平台与PCAD具有良好的兼容性,使PCAD脱离了AutoCAD的束缚,扩大了PCAD的应用范围,降低了用户使用成本,简化了PCAD的操作步骤。
The objective for developing the support platform for PCAD is introduced. The development environment and the development process for PCAD are also introduced. A single document is found by MFC in Visual C+ + 6.0. A class of two-dimensional graphics is defined. Then many classes of succession for graphics are defined. The drawing functions of GDI and analytic geometry are used to code the graphics function. Interacting activity for drawing is adopted. Mouse is responded for realizing the drawing function. The support platform has been developed successfully. The support platform is compatible with PCAD. They also run steadily. Then PCAD breaks away from AutoCAD,operates independently of Windows system. The range of application of PCAD is expanded. The cost is reduced and the use process is simplified.
出处
《中国农村水利水电》
北大核心
2009年第1期86-88,92,共4页
China Rural Water and Hydropower
基金
国家自然科学基金资助项目(50509009)
国家"863"资助项目(2006AA05Z250)