绘制抽象画布

发布于 2024-08-17 02:42:06 字数 207 浏览 1 评论 0原文

我计划编写一个图表编辑器样式的应用程序,您可以在其中组织画布上的对象。该应用程序需要支持设置视口、缩放、裁剪以及此类图形样式应用程序的许多其他标准功能。我正在寻找可以支持在标准数学坐标空间(0,0 作为中心点,可向各个方向扩展)中绘图的工具包或框架,并根据(用户)命令对其进行缩放、裁剪和缩放。语言并不重要,但它越适合标准 GUI 应用程序就越好。如果可能的话,我希望能够在画布上重用标准控件和按钮。

I'm planning to write a diagram editor-style application, where you organize objects on a canvas. This application will need to support setting viewport, zooming, cropping and a lot of other standard features of such a graph style application. I'm looking for toolkits or frameworks which could supports drawing in a standard mathematical coordinate space (0,0 as center point, extendable in all directions), and will scale, crop and zoom this according to (user) commands. Language doesn't really matter, but the more geared it is towards standard GUI applications the better. I would namely like to be able to reuse standard controls and buttons on the canvas if possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

趁微风不噪 2024-08-24 02:42:06

我认为 Qt 是你的朋友。提供您需要的东西,是多平台的,设计精良,并且有多种语言的绑定。

I think Qt is your friend here. Offers what you need, is multiplatform, quite well-designed and there are bindings for several languages.

烈酒灼喉 2024-08-24 02:42:06

根据我的经验,任何像 C++ 这样的中级工具箱(QT、GTK、Windows API 等)对于这样的工作来说都是可怕的。并不是说他们做不到,只是每个简单的操作都有 15 行晦涩的代码 - 他们只是效率不高,而且更适合创建固定的 GUI,而不是任意图形。

这听起来像是 Flash 的一项好工作,也可以选择 SVG 之上的一些东西,甚至可能是 Javascript 中的 Web 应用程序。

From my experience, anything mid-level like C++ with toolboxes - QT, GTK, Windows API etc is horrible for such a work. Not that they can't do it, just that there's 15 lines of obscure code per each simple operation - they are simply not very efficient and more geared towards creating fixed GUI than arbitrary graphics.

This sounds like a good work for Flash, optionally something on top of SVG, maybe even a web app in Javascript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文