|
摘要: |
基于面向对象的设计思想,通过GDI+技术和Windows环境下类和接口的方法,实现了单线图的绘制与使用.采用分层模块化思想,设计了4个层次的类:图形基类管理图形的共有属性与方法;点、线、矩形、文字等基本图形类从图形基类派生;合并类与绑定类通过对点、线、矩形的组装,得到各种电气图标;画布类用于管理绘制在画布上的图标的集合.利用序列化/反序列化机制将图形文件保存到本地硬盘,并上传到数据库服务器.客户端通过检测并下栽服务器中的新版本来进行图形的更新.另外,定义了一个枚举结构和一个全局控制字集合,用以标识图标制作、单线图绘制、拓扑建模、倒闸模拟等不同使用场景下对图形的不同操作要求. |
关键词: 面向对象 图形元件库 序列化/反序列化 数据库 拓扑 |
DOI: |
分类号:TM769 |
基金项目: |
|
Drawing and application of GOO single-line display of distribution network |
DENG Qijun ZHOU Hong LU Jue
|
Abstract: |
The drawing and application of GOO(Graphic-Object-Oriented) single-line display for power distribution network are realized using GDI+ technology and the class and interface method in Windows environment.Four levels of class are designed with the concept of layered modularization:the base class,management of public properties and methods;the basic graph class,point,line,rectangle and text derived from the base class;the merging / binding class,various electric icons created from the basic graph class;the ca... |
Key words: GDI |