Mercurial > hg > camir-aes2014
comparison toolboxes/graph_visualisation/include/graphviz/gvc.h @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 /* $Id: gvc.h,v 1.65 2009/06/03 01:10:53 ellson Exp $ $Revision: 1.65 $ */ | |
2 /* vim:set shiftwidth=4 ts=8: */ | |
3 | |
4 /********************************************************** | |
5 * This software is part of the graphviz package * | |
6 * http://www.graphviz.org/ * | |
7 * * | |
8 * Copyright (c) 1994-2004 AT&T Corp. * | |
9 * and is licensed under the * | |
10 * Common Public License, Version 1.0 * | |
11 * by AT&T Corp. * | |
12 * * | |
13 * Information and Software Systems Research * | |
14 * AT&T Research, Florham Park NJ * | |
15 **********************************************************/ | |
16 | |
17 #ifndef GVC_H | |
18 #define GVC_H | |
19 | |
20 #include "types.h" | |
21 #include "gvplugin.h" | |
22 | |
23 #ifdef __cplusplus | |
24 extern "C" { | |
25 #endif | |
26 | |
27 #ifdef GVDLL | |
28 #define extern __declspec(dllexport) | |
29 #else | |
30 #define extern | |
31 #endif | |
32 | |
33 /*visual studio*/ | |
34 #ifdef WIN32_DLL | |
35 #ifndef GVC_EXPORTS | |
36 #define extern __declspec(dllimport) | |
37 #endif | |
38 #endif | |
39 /*end visual studio*/ | |
40 | |
41 /* misc */ | |
42 /* FIXME - this needs eliminating or renaming */ | |
43 extern void gvToggle(int); | |
44 | |
45 /* set up a graphviz context */ | |
46 extern GVC_t *gvNEWcontext(const lt_symlist_t *builtins, int demand_loading); | |
47 | |
48 /* set up a graphviz context - and init graph - retaining old API */ | |
49 extern GVC_t *gvContext(void); | |
50 /* set up a graphviz context - and init graph - with builtins */ | |
51 extern GVC_t *gvContextPlugins(const lt_symlist_t *builtins, int demand_loading); | |
52 | |
53 /* get information associated with a graphviz context */ | |
54 extern char **gvcInfo(GVC_t*); | |
55 extern char *gvcVersion(GVC_t*); | |
56 extern char *gvcBuildDate(GVC_t*); | |
57 | |
58 /* parse command line args - minimally argv[0] sets layout engine */ | |
59 extern int gvParseArgs(GVC_t *gvc, int argc, char **argv); | |
60 extern graph_t *gvNextInputGraph(GVC_t *gvc); | |
61 extern graph_t *gvPluginsGraph(GVC_t *gvc); | |
62 | |
63 /* Compute a layout using a specified engine */ | |
64 extern int gvLayout(GVC_t *gvc, graph_t *g, const char *engine); | |
65 | |
66 /* Compute a layout using layout engine from command line args */ | |
67 extern int gvLayoutJobs(GVC_t *gvc, graph_t *g); | |
68 | |
69 /* Render layout into string attributes of the graph */ | |
70 extern void attach_attrs(graph_t *g); | |
71 | |
72 /* Parse an html string */ | |
73 #ifndef WITH_CGRAPH | |
74 extern char *agstrdup_html(char *s); | |
75 #endif | |
76 extern int aghtmlstr(char *s); | |
77 | |
78 /* Render layout in a specified format to an open FILE */ | |
79 extern int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out); | |
80 | |
81 /* Render layout in a specified format to an open FILE */ | |
82 extern int gvRenderFilename(GVC_t *gvc, graph_t *g, const char *format, const char *filename); | |
83 | |
84 /* Render layout in a specified format to an external context */ | |
85 extern int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context); | |
86 | |
87 /* Render layout in a specified format to a malloc'ed string */ | |
88 extern int gvRenderData(GVC_t *gvc, graph_t *g, const char *format, char **result, unsigned int *length); | |
89 | |
90 /* Render layout according to -T and -o options found by gvParseArgs */ | |
91 extern int gvRenderJobs(GVC_t *gvc, graph_t *g); | |
92 | |
93 /* Clean up layout data structures - layouts are not nestable (yet) */ | |
94 extern int gvFreeLayout(GVC_t *gvc, graph_t *g); | |
95 | |
96 /* Clean up graphviz context */ | |
97 extern int gvFreeContext(GVC_t *gvc); | |
98 | |
99 /** Add a library from your user application | |
100 * @param gvc Graphviz context to add library to | |
101 * @param lib library to add | |
102 */ | |
103 extern void gvAddLibrary(GVC_t *gvc, gvplugin_library_t *lib); | |
104 | |
105 #undef extern | |
106 | |
107 #ifdef __cplusplus | |
108 } | |
109 #endif | |
110 | |
111 #endif /* GVC_H */ |