dot_LDADD = \
$(top_builddir)/lib/common/libcommon.la \
$(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/lib/fdpgen/libfdpgen.la \
- $(top_builddir)/lib/twopigen/libtwopigen.la \
- $(top_builddir)/lib/circogen/libcircogen.la \
- $(top_builddir)/lib/neatogen/libneatogen.la \
- $(top_builddir)/lib/dotgen/libdotgen.la \
- $(top_builddir)/lib/pathplan/libpathplan.la \
- $(top_builddir)/lib/graph/libgraph.la
+ $(top_builddir)/plugin/layout/libgvplugin_layout.la
else
dot_LDADD = \
$(top_builddir)/lib/common/libcommon.la \
#ifndef DISABLE_GVRENDER
extern gvplugin_t gvplugin_cairo_LTX_plugin,
gvplugin_gd_LTX_plugin,
- gvplugin_text_LTX_plugin,
- gvplugin_layout_LTX_plugin;
+ gvplugin_text_LTX_plugin;
#endif
+extern gvplugin_layout_LTX_plugin;
gvplugin_t *builtins[] = {
#ifndef DISABLE_GVRENDER
&gvplugin_cairo_LTX_plugin,
&gvplugin_gd_LTX_plugin,
&gvplugin_text_LTX_plugin,
- &gvplugin_layout_LTX_plugin,
#endif
+ &gvplugin_layout_LTX_plugin,
NULL
};
if DISABLE_GVRENDER
gvpack_LDADD = \
- $(top_builddir)/lib/ingraphs/libingraphs.la \
- $(top_builddir)/lib/neatogen/libneatogen.la \
- $(top_builddir)/lib/pack/libpack.la \
$(top_builddir)/lib/common/libcommon.la \
$(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/lib/pathplan/libpathplan.la
+ $(top_builddir)/lib/ingraphs/libingraphs.la \
+ $(top_builddir)/plugin/layout/libgvplugin_layout.la
else
gvpack_LDADD = \
- $(top_builddir)/lib/ingraphs/libingraphs.la \
- $(top_builddir)/lib/neatogen/libneatogen.la \
- $(top_builddir)/lib/pack/libpack.la \
$(top_builddir)/lib/common/libcommon.la \
$(top_builddir)/lib/gvc/libgvc.la \
- $(top_builddir)/lib/pathplan/libpathplan.la \
+ $(top_builddir)/lib/ingraphs/libingraphs.la \
$(top_builddir)/plugin/cairo/libgvplugin_cairo.la \
$(top_builddir)/plugin/gd/libgvplugin_gd.la \
$(top_builddir)/plugin/text/libgvplugin_text.la \
#ifndef DISABLE_GVRENDER
extern gvplugin_t gvplugin_cairo_LTX_plugin,
gvplugin_gd_LTX_plugin,
- gvplugin_text_LTX_plugin,
- gvplugin_layout_LTX_plugin;
+ gvplugin_text_LTX_plugin;
#endif
+extern gvplugin_layout_LTX_plugin;
gvplugin_t *builtins[] = {
#ifndef DISABLE_GVRENDER
&gvplugin_cairo_LTX_plugin,
&gvplugin_gd_LTX_plugin,
&gvplugin_text_LTX_plugin,
- &gvplugin_layout_LTX_plugin,
#endif
+ &gvplugin_layout_LTX_plugin,
NULL
};
output.c emit.c $(CODEGENS)
libcommon_la_LIBADD = \
- @GD_LIBS@ @EXPAT_LIBS@ @CAIRO_LIBS@ @Z_LIBS@
+ @GD_LIBS@ @CAIRO_LIBS@ @EXPAT_LIBS@ @Z_LIBS@
psgen.o psgen.lo : ps.h
/* FIXME - some of setup_pagination should be in emit_init() */
setup_pagination(gvc, g);
+#if 0
+/* FIXME - apparently zoom is not set yet */
gvc->clip.UR.x = ROUND(gvc->focus.x + (gvc->width+1) / (gvc->zoom * 2.));
gvc->clip.UR.y = ROUND(gvc->focus.y + (gvc->height+1) / (gvc->zoom * 2.));
gvc->clip.LL.x = ROUND(gvc->focus.x - (gvc->width+1) / (gvc->zoom * 2.));
gvc->clip.LL.y = ROUND(gvc->focus.y - (gvc->height+1) / (gvc->zoom * 2.));
+#endif
gvrender_begin_graph(gvc, g, PB, PFC);
if (flags & EMIT_COLORS) {
#endif
}
-int lang_select(GVC_t * gvc, char *str, int warn)
-{
- int rv = gvrender_select(gvc, str);
-
- if (rv == NO_SUPPORT && warn) {
- agerr(AGERR, "Renderer type \"%s\" not recognized, use one of:",
- str);
- agerr(AGPREV, "%s\n", gvplugin_list(gvc, API_render, str));
- }
- return rv;
-}
-
-FILE *file_select(char *str)
-{
- FILE *rv;
- rv = fopen(str, "wb");
- if (rv == NULL) {
- perror(str);
- exit(1);
- }
- return rv;
-}
-
void use_library(char *name)
{
static int cnt = 0;
emit_deinit(gvc);
}
+static FILE *file_select(char *str)
+{
+ FILE *rv;
+ rv = fopen(str, "wb");
+ if (rv == NULL) {
+ perror(str);
+ exit(1);
+ }
+ return rv;
+}
+
void dotneato_write(GVC_t * gvc, graph_t * g)
{
gvrender_job_t *job;
} else {
job->output_file = file_select(job->output_filename);
}
- job->output_lang = lang_select(gvc, job->output_langname, 1);
+ job->output_lang = gvrender_select(gvc, job->output_langname);
+ assert(job->output_lang != NO_SUPPORT); /* should have been verified already */
}
#ifndef DISABLE_CODEGENS
Output_file = job->output_file;
extern void epsf_init(node_t * n);
extern void epsf_free(node_t * n);
extern void epsf_gencode(GVC_t * gvc, node_t * n);
- extern FILE *file_select(char *);
extern shape_desc *find_user_shape(char *);
extern box flip_rec_box(box b, point p);
extern point flip_pt(point p, int rankdir);
# define extern __EXPORT__
#endif
extern point sub_points(point, point);
- extern int lang_select(GVC_t * gvc, char *, int);
extern void toggle(int);
extern int test_toggle();
/* render graph TK canvas commands */
gvc->job->output_lang =
- lang_select(gvc, gvc->job->output_langname, 0);
+ gvrender_select(gvc, gvc->job->output_langname);
gvc->job->output_file = (FILE *) & tkgendata;
#if ENABLE_CODEGENS
Output_lang = gvc->job->output_lang;