From ef91731a480b79c96e10b2b5256a36407bb5ef6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Dec 2013 00:31:20 +0000 Subject: Add experimental (slow) force-directed graph layout to Ganv. This continuously arranges the graph, and the user can drag around nodes to influence the layout which is handy. To try, configure with --no-graphviz --fdgl. Still rough around the edges, in particular detached nodes will fly off into space. Also entirely too slow for production use, will need a more sophisticated data structure for that, so the repel calculation isn't O(n^2). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5177 a436a847-0d15-0410-975c-d299462d15a1 --- src/ganv-private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ganv-private.h') diff --git a/src/ganv-private.h b/src/ganv-private.h index 9b10a47..bc09505 100644 --- a/src/ganv-private.h +++ b/src/ganv-private.h @@ -112,6 +112,11 @@ struct _GanvNodeImpl { gboolean highlighted; gboolean draggable; gboolean show_label; + gboolean grabbed; +#ifdef GANV_FDGL + Vector force; + Vector vel; +#endif }; /* Port */ -- cgit v1.2.1