summaryrefslogtreecommitdiffstats
path: root/src/ganv-private.h
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 /src/ganv-private.h
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 'src/ganv-private.h')
-rw-r--r--src/ganv-private.h5
1 files changed, 5 insertions, 0 deletions
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 */