Graphviz 13.0.0~dev.20241220.2304
|
#include <common/render.h>
#include <gvc/gvc.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <util/agxbuf.h>
#include <util/prisize_t.h>
Go to the source code of this file.
Data Structures | |
struct | offsets_t |
state for offset calculations More... | |
Functions | |
static double | YFDIR (offsets_t offsets, double y) |
double | yDir (double y, double Y_off) |
static void | agputs (int(*putstr)(void *chan, const char *str), const char *s, FILE *fp) |
static void | agputc (int(*putstr)(void *chan, const char *str), char c, FILE *fp) |
static void | printstring (int(*putstr)(void *chan, const char *str), FILE *f, char *prefix, char *s) |
static void | printint (int(*putstr)(void *chan, const char *str), FILE *f, char *prefix, size_t i) |
static void | printdouble (int(*putstr)(void *chan, const char *str), FILE *f, char *prefix, double v) |
static void | printpoint (int(*putstr)(void *chan, const char *str), FILE *f, pointf p, double yOff) |
static offsets_t | setYInvert (graph_t *g) |
static char * | canon (graph_t *g, char *s) |
static void | writenodeandport (int(*putstr)(void *chan, const char *str), FILE *f, node_t *node, char *portname) |
void | write_plain (GVJ_t *job, graph_t *g, FILE *f, bool extend) |
static void | set_record_rects (node_t *n, field_t *f, agxbuf *xb, double yOff) |
static void | rec_attach_bb (graph_t *g, Agsym_t *bbsym, Agsym_t *lpsym, Agsym_t *lwsym, Agsym_t *lhsym, double yOff) |
double | attach_attrs_and_arrows (graph_t *g, bool *sp, bool *ep) |
void | attach_attrs (graph_t *g) |
|
static |
Definition at line 41 of file output.c.
Referenced by write_plain().
|
static |
Definition at line 36 of file output.c.
Referenced by printdouble(), printint(), printstring(), and write_plain().
double attach_attrs_and_arrows | ( | graph_t * | g, |
bool * | sp, | ||
bool * | ep | ||
) |
Definition at line 232 of file output.c.
References AGEDGE, agfstnode(), agfstout(), agget(), AGNODE, agnxtnode(), agnxtout(), AGRAPH, agset(), agxbfree(), agxbpop(), agxbprint(), 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, rec_attach_bb(), safe_dcl(), set_record_rects(), setYInvert(), State, TAIL_LABEL, undoClusterEdges(), pointf_s::x, pointf_s::y, offsets_t::Y, yDir(), and YFDIR().
Referenced by attach_attrs(), and dot_begin_graph().
|
static |
Definition at line 97 of file output.c.
References agcanonStr(), agstrdup(), and agstrfree().
Referenced by colorxlate(), colorxlate(), getval(), write_plain(), and writenodeandport().
|
static |
Definition at line 63 of file output.c.
References agputs(), agxbfree(), agxbprint(), agxbuse(), and prefix.
Referenced by printpoint(), and write_plain().
|
static |
Definition at line 53 of file output.c.
References agputs(), agxbfree(), agxbprint(), agxbuse(), prefix, and PRISIZE_T.
Referenced by write_plain().
|
static |
Definition at line 73 of file output.c.
References printdouble(), PS2INCH, pointf_s::x, pointf_s::y, and yDir().
Referenced by write_plain().
|
static |
Definition at line 47 of file output.c.
References agputs(), and prefix.
Referenced by write_plain(), and writenodeandport().
|
static |
Definition at line 207 of file output.c.
References agxbfree(), agxbprint(), agxbuse(), agxset(), GD_bb, GD_clust, GD_label, GD_n_cluster, PS2INCH, rec_attach_bb(), pointf_s::x, pointf_s::y, and yDir().
Referenced by attach_attrs_and_arrows(), and rec_attach_bb().
Definition at line 193 of file output.c.
References agxbprint(), field_t::b, field_t::fld, boxf::LL, field_t::n_flds, ND_coord, set_record_rects(), boxf::UR, pointf_s::x, pointf_s::y, and yDir().
Referenced by attach_attrs_and_arrows(), and set_record_rects().
Definition at line 85 of file output.c.
References GD_bb, PS2INCH, offsets_t::Y, Y_invert, and offsets_t::YF.
Referenced by attach_attrs_and_arrows(), and write_plain().
Definition at line 117 of file output.c.
References agcanonStr(), agfstnode(), agfstout(), agget(), aghead, agnameof(), agnxtnode(), agnxtout(), agputc(), agputs(), agraphof(), agtail, agxget(), canon(), 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(), bezier::list, N_color, N_fillcolor, N_label, N_style, ND_coord, ND_height, ND_label, ND_shape, ND_width, NULL, printdouble(), printint(), printpoint(), printstring(), PS2INCH, Agiodisc_s::putstr, setYInvert(), bezier::size, str, writenodeandport(), pointf_s::x, pointf_s::y, offsets_t::Y, and GVJ_s::zoom.
Referenced by dot_end_graph().
|
static |
Definition at line 105 of file output.c.
References agcanonStr(), agnameof(), agraphof(), canon(), IS_CLUST_NODE, and printstring().
Referenced by write_plain().
double yDir | ( | double | y, |
double | yOff | ||
) |
yOff | Displacement to apply to y |
Definition at line 32 of file output.c.
References Y_invert.
Referenced by attach_attrs_and_arrows(), printpoint(), rec_attach_bb(), set_record_rects(), and xdot_point().
|
static |
Definition at line 28 of file output.c.
References Y_invert, and offsets_t::YF.
Referenced by attach_attrs_and_arrows().