#include "render.h"
Include dependency graph for postproc.c:
Go to the source code of this file.
Defines | |
#define | M1 "/pathbox {\n\ /Y exch %d sub def\n\ /X exch %d sub def\n\ /y exch %d sub def\n\ /x exch %d sub def\n\ newpath x y moveto\n\ X y lineto\n\ X Y lineto\n\ x Y lineto\n\ closepath stroke\n \} def\n\/dbgstart { gsave %d %d translate } def\n\/arrowlength 10 def\n\/arrowwidth arrowlength 2 div def\n\/arrowhead {\n\ gsave\n\ rotate\n\ currentpoint\n\ newpath\n\ moveto\n\ arrowlength arrowwidth 2 div rlineto\n\ 0 arrowwidth neg rlineto\n\ closepath fill\n\ grestore\n\} bind def\n\/makearrow {\n\ currentpoint exch pop sub exch currentpoint pop sub atan\n\ arrowhead\n\} bind def\n\/point {\ newpath\ 2 0 360 arc fill\} def\/makevec {\n\ /Y exch def\n\ /X exch def\n\ /y exch def\n\ /x exch def\n\ newpath x y moveto\n\ X Y lineto stroke\n\ X Y moveto\n\ x y makearrow\n\} def\n" |
#define | M2 "/pathbox {\n\ /X exch neg %d sub def\n\ /Y exch %d sub def\n\ /x exch neg %d sub def\n\ /y exch %d sub def\n\ newpath x y moveto\n\ X y lineto\n\ X Y lineto\n\ x Y lineto\n\ closepath stroke\n\} def\n" |
Functions | |
void | translate_bb (graph_t *g, int rankdir) |
void | dot_nodesize (node_t *n, boolean flip) |
void | dotneato_postprocess (Agraph_t *g) |
void | place_graph_label (graph_t *g) |
#define M1 "/pathbox {\n\ /Y exch %d sub def\n\ /X exch %d sub def\n\ /y exch %d sub def\n\ /x exch %d sub def\n\ newpath x y moveto\n\ X y lineto\n\ X Y lineto\n\ x Y lineto\n\ closepath stroke\n \} def\n\/dbgstart { gsave %d %d translate } def\n\/arrowlength 10 def\n\/arrowwidth arrowlength 2 div def\n\/arrowhead {\n\ gsave\n\ rotate\n\ currentpoint\n\ newpath\n\ moveto\n\ arrowlength arrowwidth 2 div rlineto\n\ 0 arrowwidth neg rlineto\n\ closepath fill\n\ grestore\n\} bind def\n\/makearrow {\n\ currentpoint exch pop sub exch currentpoint pop sub atan\n\ arrowhead\n\} bind def\n\/point {\ newpath\ 2 0 360 arc fill\} def\/makevec {\n\ /Y exch def\n\ /X exch def\n\ /y exch def\n\ /x exch def\n\ newpath x y moveto\n\ X Y lineto stroke\n\ X Y moveto\n\ x y makearrow\n\} def\n" |
#define M2 "/pathbox {\n\ /X exch neg %d sub def\n\ /Y exch %d sub def\n\ /x exch neg %d sub def\n\ /y exch %d sub def\n\ newpath x y moveto\n\ X y lineto\n\ X Y lineto\n\ x Y lineto\n\ closepath stroke\n\} def\n" |
void dotneato_postprocess | ( | Agraph_t * | g | ) |
Definition at line 224 of file postproc.c.
References GD_bb, GD_flip, GD_label, GD_label_pos, GD_rankdir, LABEL_AT_TOP, M1, M2, PAD, PF2P, place_graph_label(), pointof(), RANKDIR_BT, RANKDIR_LR, RANKDIR_RL, RANKDIR_TB, Show_boxes, point::x, and point::y.
Referenced by circo_layout(), dot_layout(), fdp_layout(), neato_layout(), pack_graph(), and twopi_layout().
void place_graph_label | ( | graph_t * | g | ) |
Definition at line 399 of file postproc.c.
References BOTTOM_IX, GD_bb, GD_border, GD_clust, GD_label, GD_label_pos, GD_n_cluster, place_graph_label(), Agraph_t::root, TOP_IX, TRUE, point::x, and point::y.
Referenced by dotneato_postprocess(), and place_graph_label().
void translate_bb | ( | graph_t * | g, | |
int | rankdir | |||
) |
Definition at line 121 of file postproc.c.
References GD_bb, GD_clust, GD_label, GD_n_cluster, box::LL, pointof(), RANKDIR_BT, RANKDIR_LR, translate_bb(), box::UR, point::x, and point::y.
Referenced by translate_bb().