iPhone 石英 - Open GL
有谁知道思维导图应用程序使用什么来绘图:Quartz 2D 还是 Open GL?实施此类应用程序的最佳方式是什么?欢迎任何建议!
谢谢!
Does anyone have an idea what do the mind mapping applications use for drawing: Quartz 2D or Open GL? What would be the best way to implement this kind of application? Any advice is welcomed!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Quartz 非常适合此类任务。 OpenGL 在绘制纹理多边形时更有用。使用 Quartz 绘制贝塞尔曲线和文本要容易得多。
Quartz is well adapted for that kind of task. OpenGL is more useful when drawing textured polygons. Drawing bezier curves and text is much easier with Quartz.
我也会研究 Cocos2D 这种类型的应用程序,即使它被设计成一个游戏引擎。
I would look into Cocos2D for this type of application as well, even it being designed to be a game engine.
我决定使用 Quartz,因为它似乎可以满足应用程序的需求,并且比 OpenGL 需要更少的时间。
我想知道节点之间的连接线。
我将有一个滚动视图,其中包含许多用线连接的节点。我将每个节点设计为 UIView 子类,它实现了 drawRect: 并进行了一些形状绘制。当我拖动/移动节点时,我只重绘拖动的视图,这是可以的。但是我不确定如何实现节点之间的线路,特别是线路更新 - 当移动节点时,其连接应该随之移动。当某个节点改变位置时,我应该重新绘制所有连接吗?是否有更好的选择可以提高性能?
谢谢
I decided to go with Quartz because it seems to satisfy the application needs and will require less time than OpenGL.
I was wondering about the connection lines between the nodes.
I'll have a scroll view, that contains many nodes connected with lines. I designed every node to be a UIView subclass which implements drawRect: and does some shape drawing.When i drag/move the nodes, i only redraw the dragged view which is OK. However i am in doubt how to implement the lines between the nodes, especially line updating - when a node is moved, its connections should move with it. Should i redraw all connections when some node changes the position? Is there a better choice that will improve performance?
Thanks