List Info

Thread: "ocaml_beginners"::[] Re: real-time interactive graphviz ?




"ocaml_beginners"::[] Re: real-time interactive graphviz ?
country flaguser name
Norway
2007-04-10 06:21:06


Hi Richard,

Thanks for the reply!

Richard Jones < rich%40annexia.org">richannexia.org> writes:
> On what computer platform? Obviously Unix-like systems are going to
> have more options available.
I'm on Linux. However, it would be better to use some portable libraries. The
graphviz and OpenGL recommended in the later part are both portable, aren't
they?

&gt; I'm no expert on graphviz, having just used it casually to do a few
> graphs, but I'm not aware of it having any real-time or interactive
> capabilities. However what's possible is to use the 'dot' command
> line tool and have it output a plain format file ('dot -Tplain' [1])
>; which you can then read in, parse to get the position of the nodes,
&gt; edges, which you can then draw. Drawing using OpenGL is easy and
> portable.
> So generate your dot file describing the graph programmatically, pipe
>; it through dot -Tplain, parse in the result, and render using OpenGL.
> Then animate the edges or nodes by redrawing using standard OpenGL
&gt; techniques[2].
This seems to be a feasible idea! The topological structure of my graph is
static, so I only have to draw the picture once, then updating part of the
picture with events. I wish it won't be difficult to do with lablgl.

Besides, I find in Graphviz's website [1] that there are OCaml (and various
other languages) bindings provided in RPM. What is that for? does anyone have
experience with it? where is the source and doc of the this binding? is there
any Debian package for that?

Thanks!

[1] http://www.graphviz.org/Download_linux.php

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )