/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/gvc/gvc.h

Go to the documentation of this file.
00001 /* $Id: gvc.h,v 1.39 2008/02/02 06:42:23 glenlow Exp $ $Revision: 1.39 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005  * *      This software is part of the graphviz package      *
00006  * *                http://www.graphviz.org/                 *
00007  * *                                                         *
00008  * *            Copyright (c) 1994-2004 AT&T Corp.           *
00009  * *                and is licensed under the                *
00010  * *            Common Public License, Version 1.0           *
00011  * *                      by AT&T Corp.                      *
00012  * *                                                         *
00013  * *        Information and Software Systems Research        *
00014  * *              AT&T Research, Florham Park NJ             *
00015  * **********************************************************/
00016 
00017 #ifndef                 GVC_H
00018 #define                 GVC_H
00019 
00020 #include "types.h"
00021 #include "graph.h"
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #define dotneato_initialize dotneato_initialize_DEPRECATED_BY_gvParseArgs
00028 #define parse_args parse_args_DEPRECATED_BY_gvParseArgs
00029 
00030 #define dot_layout dot_layout_DEPRECATED_BY_gvLayout
00031 #define neato_layout dot_layout_DEPRECATED_BY_gvLayout
00032 #define fdp_layout dot_layout_DEPRECATED_BY_gvLayout
00033 #define circo_layout dot_layout_DEPRECATED_BY_gvLayout
00034 #define twopi_layout dot_layout_DEPRECATED_BY_gvLayout
00035 #define gvBindContext gvBindContext_DEPRECATED_BY_gvLayout
00036 #define gvlayout_layout gvlayout_layout_DEPRECATED_BY_gvLayoutJobs
00037 
00038 #define emit_jobs emit_jobs_DEPRECATED_BY_gvRenderJobs
00039 #define dotneato_write dotneato_write_DEPRECATED_BY_gvRenderJobs
00040 
00041 #define dot_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00042 #define neato_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00043 #define fdp_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00044 #define circo_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00045 #define twopi_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00046 #define gvlayout_cleanup gvlayout_cleanup_DEPRECATED_BY_gvFreeLayout
00047 
00048 #define gvCleanup gvCleanup_DEPRECATED_BY_gvFreeContext
00049 #define dotneato_terminate dotneato_terminate_DEPRECATED_BY_gvFreeContext
00050 #define next_input_graph next_input_graph_DEPRECATED_BY_gvNextInputGraph
00051 
00052 /* misc */
00053 /* FIXME - this needs eliminating or renaming */
00054 extern void gvToggle(int);
00055 
00056 /* set up a graphviz context */
00057 extern GVC_t *gvNEWcontext(char **info, char *user);
00058 extern char *gvUsername(void);
00059 
00060 /*  set up a graphviz context - alternative */
00061 /*     (wraps the above two functions using info built into libgvc) */
00062 extern GVC_t *gvContext(void);
00063 
00064 /* get information associated with a graphviz context */
00065 extern char **gvcInfo(GVC_t*);
00066 extern char *gvcVersion(GVC_t*);
00067 extern char *gvcBuildDate(GVC_t*);
00068 extern char *gvcUsername(GVC_t*);
00069 
00070 /* parse command line args - minimally argv[0] sets layout engine */
00071 extern int gvParseArgs(GVC_t *gvc, int argc, char **argv);
00072 extern graph_t *gvNextInputGraph(GVC_t *gvc);
00073 
00074 /* Compute a layout using a specified engine */
00075 extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
00076 
00077 /* Compute a layout using layout engine from command line args */
00078 extern int gvLayoutJobs(GVC_t *gvc, graph_t *g);
00079 
00080 /* Render layout into string attributes of the graph */
00081 extern void attach_attrs(graph_t *g);
00082 
00083 /* Parse an html string */
00084 extern char *agstrdup_html(char *s);
00085 extern int aghtmlstr(char *s);
00086 
00087 /* Render layout in a specified format to an open FILE */
00088 extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
00089 
00090 /* Render layout in a specified format to an open FILE */
00091 extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename);
00092 
00093 /* Render layout in a specified format to a malloc'ed string */
00094 extern int gvRenderData(GVC_t *gvc, graph_t *g, char *format, char **result, unsigned int *length);
00095 
00096 /* Render layout according to -T and -o options found by gvParseArgs */
00097 extern int gvRenderJobs(GVC_t *gvc, graph_t *g);
00098 
00099 /* Clean up layout data structures - layouts are not nestable (yet) */
00100 extern int gvFreeLayout(GVC_t *gvc, graph_t *g);
00101 
00102 /* Clean up graphviz context */
00103 extern int gvFreeContext(GVC_t *gvc);
00104 
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108 #endif                  /* GVC_H */

Generated on Mon Mar 31 19:03:26 2008 for Graphviz by  doxygen 1.5.1