欢迎访问中国科学院大学学报,今天是

中国科学院大学学报 ›› 2015, Vol. 32 ›› Issue (1): 116-120.DOI: 10.7523/j.issn.2095-6134.2015.01.019

• 信息与电子科学 • 上一篇    下一篇

基于VC++ 2008的大容量数据曲线绘制方法

马志刚1,2, 刘文怡1   

  1. 1. 中北大学 仪器科学与动态测试教育部重点实验室, 电子测试技术重点实验室, 太原 030051;
    2. 山西农业大学信息科学与工程学院, 山西 太谷 030801
  • 收稿日期:2014-03-19 修回日期:2014-04-25 发布日期:2015-01-15
  • 通讯作者: 刘文怡
  • 基金资助:

    国家自然科学基金(51275491)资助

Curve plotting method for large-capacity data based on VC++ 2008

MA Zhigang1,2, LIU Wenyi1   

  1. 1. Key Laboratory of Instrumentation Science & Dynamic Measurement of Ministry of Education, Science and Technology on Electronic Test & Measurement Laboratory, North University of China, Taiyuan 030051, China;
    2. College of Information Science and Engineering, ShanXi Agricultural University, Taigu 030801, Shanxi, China
  • Received:2014-03-19 Revised:2014-04-25 Published:2015-01-15

摘要:

针对大容量数据曲线绘制中的数据提取问题,提出"逐块读取"→"拼接数据"→"提取数据",最后达到"完整提取"的方式,可以实现对超过4 GB数据文件的处理.当数据量较大时,常规的绘图方法会暴露出效率低、绘图区域闪烁的问题.利用Polyline函数优化绘图程序,提高了绘图效率;采用双缓冲法解决绘图区域闪烁的问题,并进一步缩短了绘图时间.

关键词: 大容量数据, 曲线绘制, VC++ 2008, Polyline, 双缓冲

Abstract:

In view of the data extraction problems in large-capacity data curve plotting, the "data reading by-block" → "data join"→ "data extraction" achieving finally "full extraction" process is proposed, which can achieve the processing of the large-capacity data file over 4 GB. When the data quantity is large, conventional curve plotting methods may give rise to the low efficiency or the flicker problem in the plotting area. The "Polyline" function is employed to optimize the plotting program, and greatly improves the plotting efficiency. The dual-buffering method is adopted to eliminate the flicker in plotting area, and thus further shortens the drawing time.

Key words: large-capacity data, curve plotting, VC++ 2008, Polyline, dual-buffering

中图分类号: