summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-18 00:31:20 +0000
committerDavid Robillard <d@drobilla.net>2013-12-18 00:31:20 +0000
commitef91731a480b79c96e10b2b5256a36407bb5ef6e (patch)
treef0dcb5a1aad0bb1cb7de5f8c5a4c95697dfde57a /ganv
parentd273249ccc8d4604e86351defa92f6743eae2b45 (diff)
downloadganv-ef91731a480b79c96e10b2b5256a36407bb5ef6e.tar.gz
ganv-ef91731a480b79c96e10b2b5256a36407bb5ef6e.tar.bz2
ganv-ef91731a480b79c96e10b2b5256a36407bb5ef6e.zip
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
Diffstat (limited to 'ganv')
-rw-r--r--ganv/types.h7
1 files changed, 7 insertions, 0 deletions
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 */