寻找 iOS 的图形布局框架

发布于 2024-09-18 13:11:28 字数 511 浏览 4 评论 0原文

对于我正在制作的 iOS 应用程序,我需要显示根据其类型分组在一起的元素组,以及在精美的布局中彼此分开的不同类型组。

我想到使用无向图,分组的节点全部以某种循环引用方式彼此指向,然后每个组作为另一个“元图”,其节点也以循环引用方式彼此指向,希望与良好的图形布局框架一起可以很好地显示。

不幸的是,我一直听说的唯一框架是 graphviz,但它似乎没有适用于 iOS 的可用端口。

所以我的问题是:

  1. 关于如何实现我需要的其他想法?
  2. iOS 上图形布局的良好实现?
  3. iOS 上有可用的 graphviz 端口吗?

更新:请注意,我不是寻找图形绘图框架,这是用于绘制图形的框架和图表(例如饼图等)。我正在寻找一个布局框架,它可以确定抽象图中任意节点的最佳位置。

For an iOS application I'm making I need to show groups of elements grouped together according to their type, and different groups of types separated from each other in a nicely done layout.

I thought of using an undirected graph, with the grouped nodes all pointing to each other in a sort of circular reference, and then each group as another "meta-graph" with their nodes point at each other in a circular reference as well, hoping that together with a good graph layout framework this could be displayed nicely.

Unfortunately, the only framework I keep hearing of is graphviz, but that doesn't seem to have an available port for iOS.

So my question is either:

  1. Other ideas for how to implement what I need?
  2. A good implementation of graph layout for the iOS?
  3. An available port of graphviz for the iOS?

Update: Please note, I am not looking for graph plotting frameworks, which are the frameworks used to draw graphs and charts (such as pie charts etc). I am looking for a layout framework which determines the optimal location for arbitrary nodes in an abstract graph.

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

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

发布评论

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

评论(4

甜警司 2024-09-25 13:11:28

根据 graphviz 开发邮件列表上的帖子
Pixelglow 的 Glen Low 已经成功移植 graphviz 并在 Instaviz 中使用它。

他还对配置脚本提供了一些提示

According to a post on the graphviz development mailing list,
Glen Low of pixelglow has already managed to port graphviz and uses it in Instaviz.

He also has some hints on the configure script.

怎樣才叫好 2024-09-25 13:11:28

graphviz 是 C 源代码,并且已经移植到 OSX/Xcode。我会尝试从源代码在 Xcode 中构建一个库——不是 dylib(因为 iOS 设备上不允许这样做),而是一个 .a 库。我敢打赌,代码已经非常接近可移植到 iOS 了,如果不是完全如此的话。

graphviz is C source and has been ported to OSX/Xcode already. I would try to build a library in Xcode from source -- not a dylib (because that's not allowed on iOS devices), but a .a library. I bet the code is pretty close to portable to iOS already if not fully so.

深爱不及久伴 2024-09-25 13:11:28

如何在网络视图中使用 Google Chart:

http://code.google.com/apis/chart/

How about using Google Chart in a webview:

http://code.google.com/apis/chart/

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