节点文献
计算机模拟中可视化的范型实现方法
Visualization in computer simulation implemented by generic programming
【摘要】 可视化技术能在计算模拟中提供可观察的直观图像,是分析和研究模拟现象的重要手段。本文运用C++的范型编程思想,将OpenGL的实时3D显示功能集成在一个封闭的类模板中,使其通用化,克服了直接调用OpenGL函数导致的程序结构不清晰和代码可复用性差的缺点,大大简化了计算模拟中实现可视化的方法步骤。
【Abstract】 Visualization in computer simulation can provide clear pictures for researchers and so becomes an important means of analy- zing simulated phenomena.In this paper,the thinking of Generic programming in C++ language is used to encapsulate OpenGL’s 3D realtime-visualization into a class template,which overcomes the shortcomings of dim structure and bad reusable codes when directly calling the API functions in C language codes,and make the usage of 3D visualization in computer simulation great more conveniently.
【关键词】 计算机模拟;
实时3D可视化;
范型编程;
OpenGL;
【Key words】 computer simulation; 3D real-time visualization; generic programming; OpenGL;
【Key words】 computer simulation; 3D real-time visualization; generic programming; OpenGL;
【基金】 国家重点基础研究发展规划项目(G1999032801);国家自然科学基金(20336040,20221603);中国科学院知识创新工程信息化建设专项基金(INF105-SCE-2-07)资助.
- 【文献出处】 计算机与应用化学 ,Computers and Applied Chemistry , 编辑部邮箱 ,2006年05期
- 【分类号】TP391.9
- 【被引频次】3
- 【下载频次】92