快速库替换CDC矢量图形 [英] Fast library to replace CDC vector graphics

查看:172
本文介绍了快速库替换CDC矢量图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个成熟的MFC C ++应用程序,显示在屏幕上,并使用CDC包装在Win32 GDI上打印。虽然它已经优化了多年,我想更换一些东西更快一些。图形包括渲染的三角形表面模型,复杂折线和多边形,以及大量的文本。它需要满足以下条件:




  • 显示的向量数可能非常大。例如,单个表面三角形在渲染时可能生成数字线和实体填充。目前这个信息不是存储在任何地方,它是在飞行中生成和绘制的。 SDK应该支持限制缓冲向量的总数,否则容易耗尽内存。


  • SDK应该能够呈现任何CWnd


  • SDK应支持打印到任何Windows打印设备,


  • <

    开放源代码总是很好,但一次性成本高达说2k美元,与可选升级/支持也会确定。每个用户的许可成本不可接受,


  • 访问源代码将是一个巨大的奖励,特别是在Windows CE上运行SDK的一部分/ Mobile。


  • 我自己处理我自己的3d到2d视口管理。如果一个体面的低级SDK不可用,更高级别的SDK必须处理3d井,并在一个32位的Windows平台上处理数百万个三角形,多边形和文本实体。




有任何建议吗?

解决方案

我曾经评价过FastGraph( http://www.fastgraph.com )。我喜欢它在我写的小测试程序,它是非常快。我们最终没有使用它的外部原因(与我评价的图书馆无关),所以我没有更多的实践经验。


I have a mature MFC C++ application that displays on screen and prints using CDC wrappings on the Win32 GDI. While it has been optimized over the years, I would like to replace it with something a bit faster. The graphics included rendered triangular surface models, complex polylines and polygons, and lots of text. It needs to meet the following criteria;

  • The number of vectors displayed is likely to be very large. For example a single surface triangle is likely to generate a number lines and solid fills when rendered. At present this information is not stored anywhere, it is generated and drawn on the fly. The SDK should support limit the total number of buffered vectors, or it is liable to run out of memory.

  • The SDK should be able to render to any CWnd derived class including CView and ScrollView classes.

  • The SDK should support printing to any Windows print device,

  • The SDK should be low level enough to make the port from low level CDC / GDI calls relatively straightforward.

  • Open source is always nice, but a one off cost of up to say $2k, with optional upgrades/support would also be ok. A license cost per user is not acceptable,

  • Access to source code would be a big bonus, specifically with the idea of running portions of the SDK on Windows CE / Mobile.

  • I currenly handle my own 3d to 2d viewport management. If a decent low level SDK is not available, a higher level SDK must handle 3d well, and work with millions of triangles, polygons and text entities on a 32 bit windows platform.

Any suggestions? Listing the specific pros and cons in your proposed suggestion would be greatly appreciated.

解决方案

I have once evaluated FastGraph (http://www.fastgraph.com) for a project. I liked it in the small test programs I wrote, it was very fast. We ended up not using it for external reasons (nothing to do with the libraries that I evaluated) so I don't have more practical experience.

这篇关于快速库替换CDC矢量图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆