We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
在 GoF 的书“设计模式:可重用面向对象软件的元素”中,有一个案例研究展示了如何使用这些模式。它们即描述了将复合设计模式用于图形目的的方法。 (使用 Glyphs,字形是图形组件)。
他们的案例研究基于一个名为 Lexi 的真实文本/图形编辑器。
不幸的是,代码是 DELPHI 语言,而不是 C++ 语言。但代码在这里:LEXI。
不过,《四人帮》这本书的详尽解释之中,却有解释。如果网站解释不够清楚,你应该看看这本书。
In the GoF book "Design Patterns : Elements of Reusable Object-Oriented Software", there is a Case-Study that shows how to employ the patterns. They namely describe the way to use the Composite design pattern for graphical purpose. (Using Glyphs, a glyphs being a graphical component).
They base their case-study on a real text/graphical editor called Lexi.
Unluckily for you, the code is in DELPHI, not C++. But the code is here: LEXI.
However, it is explained among the thourough explanations of the Gang of Four book. You should take a look at the book if the site explanations aren't clear enough.
Inkscape 可能就是您所寻找的,它是一个流行的开源矢量图形编辑器(大部分)用 C++ 编写。
https://code.edge.launchpad.net/~inkscape.dev
Inkscape might be what your searching for, it is a popular open source vector graphics editor written (mostly) in c++.
https://code.edge.launchpad.net/~inkscape.dev