Graphviz 13.0.0~dev.20241220.2304
|
#include <common/render.h>
#include <common/htmltable.h>
#include <errno.h>
#include <gvc/gvc.h>
#include <xdot/xdot.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/exit.h>
#include <util/gv_ctype.h>
#include <util/gv_fopen.h>
#include <util/gv_math.h>
#include <util/startswith.h>
#include <util/strcasecmp.h>
#include <util/streq.h>
Go to the source code of this file.
Functions | |
int | dotneato_usage (const char *argv0, int exval) |
static char * | getFlagOpt (int argc, char **argv, int *idx) |
static char * | dotneato_basename (char *pathname) |
static void | use_library (GVC_t *gvc, const char *name) |
static void | global_def (char *dcl, int kind) |
static int | gvg_init (GVC_t *gvc, graph_t *g, char *fn, int gidx) |
graph_t * | gvPluginsGraph (GVC_t *gvc) |
int | dotneato_args_initialize (GVC_t *gvc, int argc, char **argv) |
static bool | getdoubles2ptf (graph_t *g, char *name, pointf *result) |
void | getdouble (graph_t *g, char *name, double *result) |
graph_t * | gvNextInputGraph (GVC_t *gvc) |
static unsigned char | findCharset (graph_t *g) |
static void | setRatio (graph_t *g) |
Checks "ratio" attribute, if any, and sets enum type. | |
void | graph_init (graph_t *g, bool use_rankdir) |
void | graph_cleanup (graph_t *g) |
char * | charsetToStr (int c) |
Given an internal charset value, return a canonical string representation. | |
void | do_graph_label (graph_t *sg) |
Set characteristics of graph label if it exists. | |
Variables | |
static char * | usageFmt |
static char * | genericItems |
static char * | neatoFlags |
static char * | neatoItems |
static char * | fdpFlags |
static char * | fdpItems |
static char * | configFlags = "(additional options for config) [-cv]\n" |
static char * | configItems |
static graph_t * | P_graph |
char * charsetToStr | ( | int | c | ) |
Definition at line 806 of file input.c.
References agerrorf(), CHAR_BIG5, CHAR_LATIN1, and CHAR_UTF8.
Referenced by initHTMLlexer().
void do_graph_label | ( | graph_t * | sg | ) |
Definition at line 829 of file input.c.
References agfindgraphattr, agget(), aghtmlstr(), agroot(), BOTTOM_IX, DEFAULT_COLOR, DEFAULT_FONTNAME, DEFAULT_FONTSIZE, GD_border, GD_flip, GD_has_labels, GD_label, GD_label_pos, GRAPH_LABEL, LABEL_AT_BOTTOM, LABEL_AT_LEFT, LABEL_AT_RIGHT, LABEL_AT_TOP, late_double(), late_nnstring(), LEFT_IX, LT_HTML, LT_NONE, make_label(), MIN_FONTSIZE, PAD, RIGHT_IX, Agraph_s::root, str, TOP_IX, pointf_s::x, and pointf_s::y.
Referenced by add_cluster(), deriveGraph(), graph_init(), make_new_cluster(), and mkClusters().
int dotneato_args_initialize | ( | GVC_t * | gvc, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 218 of file input.c.
References agattr(), AGEDGE, AGERR, agerrorf(), AGMAX, AGNODE, AGRAPH, agseterr(), GVCOMMON_s::auto_outfile_names, GVCOMMON_s::cmdname, GVC_s::common, GVCOMMON_s::config, dotneato_basename(), dotneato_usage(), free(), getFlagOpt(), global_def(), graphviz_exit(), gv_calloc(), gv_strdup(), gvc, gvconfig(), GvExitOnUsage, Gvfilepath, gvjobs_output_filename(), gvjobs_output_langname(), gvlayout_select(), gvplugin_graph(), gvplugin_list(), HTTPServerEnVar, GVCOMMON_s::info, GVC_s::input_filenames, is_exactly_zero(), GVC_s::jobs, layout(), NO_SUPPORT, NODENAME_ESC, NULL, GVJ_s::output_langname, P_graph, POINTS_PER_INCH, PSinputscale, Reduce, startswith(), streq(), use_library(), Verbose, GVCOMMON_s::verbose, and Y_invert.
Referenced by gvParseArgs().
|
static |
Definition at line 129 of file input.c.
References gv_tolower_str().
Referenced by dotneato_args_initialize().
int dotneato_usage | ( | const char * | argv0, |
int | exval | ||
) |
Definition at line 78 of file input.c.
References configFlags, configItems, fdpFlags, fdpItems, genericItems, graphviz_exit(), GvExitOnUsage, neatoFlags, neatoItems, and usageFmt.
Referenced by dotneato_args_initialize(), fdp_extra_args(), and neato_extra_args().
|
static |
Definition at line 545 of file input.c.
References agfindgraphattr, agwarningf(), CHAR_BIG5, CHAR_LATIN1, CHAR_UTF8, and late_nnstring().
Referenced by graph_init().
void getdouble | ( | graph_t * | g, |
char * | name, | ||
double * | result | ||
) |
Definition at line 490 of file input.c.
References agget().
Referenced by scan_graph_mode().
Definition at line 463 of file input.c.
References agget(), POINTS, pointf_s::x, and pointf_s::y.
Referenced by graph_init().
|
static |
Definition at line 106 of file input.c.
Referenced by dotneato_args_initialize().
|
static |
Definition at line 174 of file input.c.
References agattr(), agxbfree(), agxbput(), agxbput_n(), agxbuse(), Agsym_s::fixed, and NULL.
Referenced by dotneato_args_initialize().
void graph_cleanup | ( | graph_t * | g | ) |
Definition at line 790 of file input.c.
References agclean(), AGRAPH, free(), free_label(), freeXDot(), GD_drawing, GD_label, and NULL.
Referenced by gvevent_read(), and gvFreeLayout().
void graph_init | ( | graph_t * | g, |
bool | use_rankdir | ||
) |
Definition at line 592 of file input.c.
References agattr(), agfindedgeattr, agfindgraphattr, agfindnodeattr, agget(), agisdirected(), agmemconcat(), AGNODE, agxbfree(), agxbprint(), agxbuse(), CL_type, Concentrate, DEFAULT_NODESEP, DEFAULT_RANKSEP, do_graph_label(), E_arrowsz, E_color, E_comment, E_constr, E_decorate, E_dir, E_fillcolor, E_fontcolor, E_fontname, E_fontsize, E_headclip, E_headlabel, E_label, E_label_float, E_labelangle, E_labeldistance, E_labelfontcolor, E_labelfontname, E_labelfontsize, E_layer, E_minlen, E_penwidth, E_showboxes, E_style, E_tailclip, E_taillabel, E_weight, E_xlabel, EdgeLabelsDone, findCharset(), G_gradientangle, G_margin, G_ordering, GD_charset, GD_drawing, GD_exact_ranksep, GD_fontnames, GD_nodesep, GD_ranksep, GD_showboxes, getdoubles2ptf(), GLOBAL, gv_alloc(), GVBEGIN, Gvfilepath, Gvimagepath, HTTPServerEnVar, init_xdot(), Initial_dist, late_double(), late_int(), late_string(), LOCAL, mapbool(), maptoken(), MIN_NODESEP, MIN_RANKSEP, MYHUGE, N_color, N_comment, N_distortion, N_fillcolor, N_fixed, N_fontcolor, N_fontname, N_fontsize, N_gradientangle, N_group, N_height, N_imagepos, N_imagescale, N_label, N_layer, N_nojustify, N_ordering, N_orientation, N_penwidth, N_peripheries, N_shape, N_showboxes, N_sides, N_skew, N_style, N_vertices, N_width, N_xlabel, N_z, NATIVEFONTS, NOCLUST, NODENAME_ESC, NULL, POINTS, PSFONTS, RANKDIR_BT, RANKDIR_LR, RANKDIR_RL, RANKDIR_TB, SET_RANKDIR, setRatio(), State, strdup_and_subst_obj(), streq(), and SVGFONTS.
Referenced by gvLayoutJobs(), and init_graph().
Definition at line 191 of file input.c.
References GVG_s::g, GVG_s::graph_index, gv_alloc(), GVG_s::gvc, gvc, GVC_s::gvg, GVC_s::gvgs, GVG_s::input_filename, and GVG_s::next.
Referenced by gvNextInputGraph(), and gvPluginsGraph().
|
static |
Definition at line 568 of file input.c.
References agget(), GD_drawing, R_AUTO, R_COMPRESS, R_EXPAND, R_FILL, R_VALUE, and streq().
Referenced by graph_init().
|
static |
Definition at line 162 of file input.c.
References cnt(), GVC_s::common, gv_recalloc(), gvc, Lib, GVCOMMON_s::lib, and NULL.
Referenced by dotneato_args_initialize().
|
static |
Definition at line 67 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 68 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 57 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 59 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 35 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 51 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 53 of file input.c.
Referenced by dotneato_usage().
|
static |
Definition at line 206 of file input.c.
Referenced by dotneato_args_initialize(), and gvPluginsGraph().
|
static |
Definition at line 32 of file input.c.
Referenced by dotneato_usage().