Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Definition at line 232 of file output.c.
References AGEDGE, agfstnode(), agfstout(), agget(), AGNODE, agnxtnode(), agnxtout(), AGRAPH, agset(), agxbfree(), agxbinit(), agxbpop(), agxbput(), agxbputc, agxbuse, agxset(), ED_edge_type, ED_head_label, ED_label, ED_spl, ED_tail_label, ED_xlabel, EDGE_LABEL, EDGE_XLABEL, GD_has_labels, GD_odim, GRAPH_LABEL, gv_fixLocale(), GVSPLINES, HAS_CLUST_EDGE, HEAD_LABEL, IGNORED, isPolygon(), M_PI, N_height, N_vertices, N_width, ND_coord, ND_height, ND_ht, ND_lw, ND_pos, ND_rw, ND_shape, ND_shape_info, ND_width, ND_xlabel, NODE_XLABEL, NULL, POINTS_PER_INCH, PS2INCH, safe_dcl(), polygon_t::sides, State, TAIL_LABEL, undoClusterEdges(), polygon_t::vertices, pointf_s::x, pointf_s::y, YDIR, and YFDIR.
Referenced by attach_attrs().
void cat_libfile | ( | GVJ_t * | job, |
const char ** | arglib, | ||
const char ** | stdlib | ||
) |
Definition at line 139 of file psusershape.c.
References agerr(), AGWARN, FALSE, Fgets(), gvputs(), safefile(), and TRUE.
Definition at line 714 of file utils.c.
References agget(), aghead(), aghtmlstr(), agraphof(), agtail(), agxget(), E_headclip, E_headlabel, E_label, E_label_float, E_tailclip, E_taillabel, E_xlabel, ED_head_label, ED_head_port, ED_label, ED_label_ontop, ED_tail_label, ED_tail_port, ED_xlabel, EDGE_LABEL, EDGE_XLABEL, FALSE, fontinfo::fontcolor, fontinfo::fontname, fontinfo::fontsize, GD_has_labels, HEAD_ID, HEAD_LABEL, late_string(), LT_HTML, LT_NONE, make_label(), mapbool(), ND_has_port, ND_shape, NULL, str, TAIL_ID, TAIL_LABEL, and TRUE.
void common_init_node | ( | node_t * | n | ) |
Definition at line 629 of file utils.c.
References aghtmlstr(), agraphof(), agxget(), bind_shape(), DEFAULT_COLOR, DEFAULT_FONTNAME, DEFAULT_FONTSIZE, DEFAULT_NODEHEIGHT, DEFAULT_NODESHAPE, DEFAULT_NODEWIDTH, fontinfo::fontcolor, fontinfo::fontname, fontinfo::fontsize, GD_has_labels, late_double(), late_int(), late_nnstring(), LT_HTML, LT_NONE, LT_RECD, make_label(), MIN_FONTSIZE, MIN_NODEHEIGHT, MIN_NODEWIDTH, N_fontcolor, N_fontname, N_fontsize, N_height, N_label, N_shape, N_showboxes, N_width, N_xlabel, ND_height, ND_label, ND_shape, ND_showboxes, ND_width, ND_xlabel, NODE_XLABEL, SH_RECORD, shapeOf(), and str.
Referenced by neato_init_node().
void compute_bb | ( | Agraph_t * | ) |
Definition at line 852 of file utils.c.
References AGDATA, agfstnode(), agfstout(), agnnodes(), agnxtnode(), agnxtout(), B2BF, coord(), ED_head_label, ED_label, ED_spl, ED_tail_label, ED_xlabel, EXPANDBB, EXPANDBP, GD_bb, GD_clust, GD_flip, GD_label, GD_n_cluster, INT_MAX, boxf::LL, ND_xlabel, ND_xsize, ND_ysize, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by init_nop(), neato_layout(), packSubgraphs(), putGraphs(), and spline_edges().
Definition at line 58 of file utils.c.
References nodequeue::head, nodequeue::limit, NULL, nodequeue::store, and nodequeue::tail.
Referenced by build_ranks().
Definition at line 477 of file utils.c.
References Bezier(), DIST2, bezier::list, splines::list, NULL, bezier::size, splines::size, pointf_s::x, and pointf_s::y.
Referenced by addEdgeLabels(), and edgeMidpoint().
Definition at line 1712 of file utils.c.
References agerr(), AGWARN, ET_COMPOUND, ET_CURVED, ET_LINE, ET_NONE, ET_ORTHO, ET_PLINE, ET_SPLINE, and strcasecmp().
Referenced by setEdgeType().
Agedgeinfo_t* einf | ( | Agedge_t * | e | ) |
double elapsed_sec | ( | void | ) |
Definition at line 50 of file timing.c.
References DIFF_IN_SECS, and GET_TIME.
Referenced by diffeq_model(), init_xdot(), rank2(), routesplinesterm(), shortest_path(), solve_model(), and stress_majorization_kD_mkernel().
Definition at line 51 of file utils.c.
References nodequeue::limit, nodequeue::store, and nodequeue::tail.
Referenced by build_ranks(), and enqueue_neighbors().
void epsf_define | ( | GVJ_t * | job | ) |
Definition at line 221 of file psusershape.c.
References dtfirst, dtnext, epsf_emit_body(), gvprintf(), gvputs(), usershape_s::macro_id, and usershape_s::must_inline.
void epsf_emit_body | ( | GVJ_t * | job, |
usershape_t * | us | ||
) |
Definition at line 185 of file psusershape.c.
References usershape_s::data, gvputc(), and strncasecmp().
Referenced by epsf_define().
char* Fgets | ( | FILE * | fp | ) |
Definition at line 2074 of file utils.c.
References clust_t::clp, dtmatch, and NULL.
boolean findStopColor | ( | char * | colorlist, |
char * | clrs[2], | ||
float * | frac | ||
) |
Definition at line 4223 of file emit.c.
References agerr(), AGWARN, colorseg_t::color, FALSE, colorseg_t::hasFraction, N_GNEW, NULL, colorsegs_t::numc, colorsegs_t::segs, colorseg_t::t, and TRUE.
Referenced by emit_clusters().
void free_queue | ( | nodequeue * | ) |
Definition at line 1827 of file utils.c.
References MAX, max, MIN, pointf_s::x, and pointf_s::y.
double get_inputscale | ( | graph_t * | g | ) |
Definition at line 112 of file utils.c.
References agfindgraphattr, late_double(), POINTS_PER_INCH, and PSinputscale.
Referenced by fdp_layout(), and neato_layout().
Agraphinfo_t* ginf | ( | Agraph_t * | g | ) |
char* htmlEntityUTF8 | ( | char * | , |
graph_t * | g | ||
) |
Definition at line 1473 of file utils.c.
References agerr(), agnameof(), AGWARN, agxbfree(), agxbinit(), agxbputc, and agxbuse.
Referenced by make_html_label(), and make_label().
Definition at line 915 of file utils.c.
References agnameof(), Agraph_s::root, and strncasecmp().
double late_double | ( | void * | , |
Agsym_t * | , | ||
double | , | ||
double | |||
) |
Definition at line 87 of file utils.c.
References ag_xget.
Referenced by arrow_length(), common_init_node(), do_graph_label(), emit_clusters(), fdp_initParams(), get_inputscale(), graph_init(), and place_portlabel().
Definition at line 71 of file utils.c.
Referenced by common_init_node(), emit_clusters(), fdp_initParams(), and graph_init().
char* late_nnstring | ( | void * | , |
Agsym_t * | , | ||
char * | |||
) |
Definition at line 129 of file utils.c.
References late_string().
Referenced by common_init_node(), do_graph_label(), emit_clusters(), findAttrColor(), and write_plain().
char* late_string | ( | void * | , |
Agsym_t * | , | ||
char * | |||
) |
Definition at line 122 of file utils.c.
References agxget().
Referenced by common_init_edge(), emit_graph(), graph_init(), and late_nnstring().
char* latin1ToUTF8 | ( | char * | ) |
Definition at line 1561 of file utils.c.
References agxbfree(), agxbinit(), agxbputc, and agxbuse.
Referenced by make_html_label(), and make_label().
Definition at line 454 of file utils.c.
References FALSE, strcasecmp(), and TRUE.
Referenced by init_nop(), mapbool(), and neato_layout().
Definition at line 2064 of file utils.c.
References dtopen(), and Dtoset.
Referenced by dot_compoundEdges(), and processClusterEdges().
Definition at line 602 of file utils.c.
References spline_at_y(), and pointf_s::y.
Definition at line 34 of file utils.c.
References nodequeue::head, nodequeue::limit, N_NEW, NEW, nodequeue::store, and nodequeue::tail.
Referenced by build_ranks().
Agnodeinfo_t* ninf | ( | Agnode_t * | n | ) |
boolean overlap_label | ( | textlabel_t * | lp, |
boxf | b | ||
) |
Definition at line 1643 of file utils.c.
References textlabel_t::dimen, boxf::LL, OVERLAP, textlabel_t::pos, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by overlap_edge().
Definition at line 821 of file utils.c.
References boxf::LL, MAX, MIN, polygon_t::peripheries, polygon_t::sides, boxf::UR, polygon_t::vertices, pointf_s::x, and pointf_s::y.
Referenced by makeObstacle().
void processClusterEdges | ( | graph_t * | g | ) |
Definition at line 1192 of file utils.c.
References agbindrec(), agclose(), agdelete(), agfstnode(), agfstout(), agnxtnode(), agnxtout(), agsubg(), agxbfree(), agxbinit(), CL_EDGE_TAG, dtclose(), dtopen(), Dtoset, FALSE, IS_CLUST_NODE, mkClustMap(), cl_edge_t::n_cluster_edges, SMALLBUF, and TRUE.
Referenced by fdp_init_node_edge().
char* ps_string | ( | char * | s, |
int | |||
) |
Definition at line 269 of file psusershape.c.
References agerr(), AGWARN, agxbinit(), agxbputc, agxbuse, ASCII, agxbuf::buf, CHAR_LATIN1, CHAR_UTF8, LATIN1, LPAREN, NONLATIN, NULL, RPAREN, and utf8ToLatin1().
Definition at line 1333 of file utils.c.
References agattr(), and NULL.
Referenced by attach_attrs_and_arrows().
const char* safefile | ( | const char * | filename | ) |
Definition at line 376 of file utils.c.
References agerr(), AGWARN, DIRSEP, FALSE, Gvfilepath, Gvimagepath, HTTPServerEnVar, NULL, str, and TRUE.
Referenced by bind_shape(), cat_libfile(), epsf_init(), and gvusershape_file_access().
char* scanEntity | ( | char * | t, |
agxbuf * | xb | ||
) |
Definition at line 1802 of file utils.c.
References agget(), edgeType(), ET_NONE, and GD_flags.
Referenced by circo_init_graph(), neato_layout(), sfdp_layout(), and twopi_init_graph().
Definition at line 537 of file utils.c.
References ABS, assert, BETWEEN, Bezier(), bezier::list, splines::list, NULL, bezier::size, splines::size, pointf_s::x, and pointf_s::y.
Referenced by neato_closest().
void start_timer | ( | void | ) |
Definition at line 45 of file timing.c.
References GET_TIME.
Referenced by diffeq_model(), gvRenderJobs(), init_xdot(), rank2(), routesplinesinit(), shortest_path(), and stress_majorization_kD_mkernel().
int strcasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 21 of file strcasecmp.c.
int strncasecmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
int test_toggle | ( | void | ) |
Definition at line 618 of file utils.c.
Referenced by move_node().
Definition at line 146 of file utils.c.
References ND_UF_parent.
Referenced by class1(), class2(), decompose(), UF_setname(), and UF_union().
Definition at line 181 of file utils.c.
References assert, ND_UF_parent, and ND_UF_size.
Definition at line 195 of file utils.c.
References assert, ND_UF_parent, ND_UF_size, and UF_find().
Referenced by mark_clusters().
void UF_singleton | ( | Agnode_t * | ) |
Definition at line 188 of file utils.c.
References ND_ranktype, ND_UF_parent, ND_UF_size, NORMAL, and NULL.
Referenced by mark_clusters().
Definition at line 156 of file utils.c.
References ND_id, ND_UF_parent, ND_UF_size, NULL, and UF_find().
void undoClusterEdges | ( | graph_t * | g | ) |
Definition at line 1295 of file utils.c.
References agbindrec(), agclose(), agdelete(), agfstnode(), agfstout(), agnxtnode(), agnxtout(), agsubg(), assert, ED_compound, gv_cleanup_node(), N_NEW, and TRUE.
Referenced by attach_attrs_and_arrows().
void updateBB | ( | graph_t * | g, |
textlabel_t * | lp | ||
) |
Definition at line 842 of file utils.c.
References GD_bb, and GD_flip.
Referenced by addEdgeLabels(), makePortLabels(), and makeSelfArcs().
char* utf8ToLatin1 | ( | char * | ins | ) |
Definition at line 1601 of file utils.c.
References agxbfree(), agxbinit(), agxbputc, and agxbuse.
Referenced by ps_string().
Definition at line 113 of file output.c.
References agcanonStr(), agfstnode(), agfstout(), agget(), aghead(), agnameof(), agnxtnode(), agnxtout(), agraphof(), agtail(), agxget(), Agraph_s::clos, DEFAULT_COLOR, DEFAULT_FILL, Agclos_s::disc, E_color, E_style, ED_label, ED_spl, GD_bb, Agdisc_s::io, IS_CLUST_NODE, late_nnstring(), lbl, bezier::list, N_color, N_fillcolor, N_label, N_style, ND_coord, ND_height, ND_label, ND_shape, ND_width, NULL, PS2INCH, Agiodisc_s::putstr, bezier::size, pointf_s::x, pointf_s::y, and GVJ_s::zoom.
char* xml_string0 | ( | char * | str, |
boolean | raw | ||
) |
Definition at line 497 of file labels.c.
References gmalloc(), grealloc(), NULL, and sub.
Referenced by xml_string().