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 --- ganv/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ganv') diff --git a/ganv/types.h b/ganv/types.h index 10b6a90..677cb06 100644 --- a/ganv/types.h +++ b/ganv/types.h @@ -23,5 +23,12 @@ typedef struct _GanvNode GanvNode; typedef struct _GanvPort GanvPort; typedef struct _GanvBox GanvBox; +#ifdef GANV_FDGL +typedef struct { + double x; + double y; +} Vector; +#endif // GANV_FDGL + #endif /* GANV_TYPES_H */ -- cgit v1.2.1