Graphviz
2.41.20171026.1811
|
Go to the source code of this file.
Data Structures | |
struct | poly_desc_t |
Macros | |
#define | RBCONST 12 |
#define | RBCURVE .5 |
#define | ATTR_SET(a, n) ((a) && (*(agxget(n,a->index)) != '\0')) |
#define | DEF_POINT 0.05 |
#define | MIN_POINT 0.0003 |
#define | IS_BOX(n) (ND_shape(n)->polygon == &p_box) |
#define | IS_PLAIN(n) (ND_shape(n)->polygon == &p_plain) |
#define | SPECIAL_CORNERS(style) ((style) & (ROUNDED | DIAGONALS | SHAPE_MASK)) |
#define | GET_PORT_BOX(n, e) ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp) |
#define | multicolor(f) (strchr(f,':')) |
#define | HASTEXT 1 |
#define | HASPORT 2 |
#define | HASTABLE 4 |
#define | INTEXT 8 |
#define | INPORT 16 |
#define | ISCTRL(c) ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>') |
#define | alpha (M_PI/10.0) |
#define | alpha2 (2*alpha) |
#define | alpha3 (3*alpha) |
#define | alpha4 (2*alpha2) |
Functions | |
char * | findAttrColor (void *obj, attrsym_t *colorattr, char *dflt) |
void | round_corners (GVJ_t *job, pointf *AF, int sides, int style, int filled) |
shape_kind | shapeOf (node_t *n) |
boolean | isPolygon (node_t *n) |
shape_desc * | find_user_shape (const char *name) |
shape_desc * | bind_shape (char *name, node_t *np) |
port | resolvePort (node_t *n, node_t *other, port *oldport) |
void | resolvePorts (edge_t *e) |
void | gv_initShapes (void) |
#define alpha (M_PI/10.0) |
Definition at line 3902 of file shapes.c.
Referenced by conjugate_gradient(), conjugate_gradient_f(), conjugate_gradient_mkernel(), interpolate_coord(), Operator_uniform_stress_matmul(), Operator_uniform_stress_matmul_apply(), power_iteration(), solve3(), UniformStressSmoother_new(), and vectors_scalar_mult().
#define ATTR_SET | ( | a, | |
n | |||
) | ((a) && (*(agxget(n,a->index)) != '\0')) |
#define GET_PORT_BOX | ( | n, | |
e | |||
) | ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp) |
#define ISCTRL | ( | c | ) | ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>') |
#define RBCONST 12 |
Definition at line 18 of file shapes.c.
Referenced by round_corners().
#define RBCURVE .5 |
Definition at line 19 of file shapes.c.
Referenced by round_corners().
#define SPECIAL_CORNERS | ( | style | ) | ((style) & (ROUNDED | DIAGONALS | SHAPE_MASK)) |
shape_desc* bind_shape | ( | char * | name, |
node_t * | np | ||
) |
Definition at line 3837 of file shapes.c.
References agget(), shape_desc::name, NULL, safefile(), str, and streq.
Referenced by common_init_node().
shape_desc* find_user_shape | ( | const char * | name | ) |
Definition at line 3803 of file shapes.c.
Referenced by gvrender_usershape().
char* findAttrColor | ( | void * | obj, |
attrsym_t * | colorattr, | ||
char * | dflt | ||
) |
Definition at line 367 of file shapes.c.
References DEFAULT_FILL, late_nnstring(), and NULL.
void gv_initShapes | ( | void | ) |
Definition at line 1840 of file shapes.c.
References ND_shape.
Referenced by attach_attrs_and_arrows().
Definition at line 4196 of file shapes.c.
References port::bp, port::name, NULL, and port::side.
Referenced by beginpath(), endpath(), and resolvePorts().
void resolvePorts | ( | edge_t * | e | ) |
Definition at line 4208 of file shapes.c.
References aghead(), agtail(), ED_head_port, ED_tail_port, and resolvePort().
Referenced by splineEdges().
Definition at line 516 of file shapes.c.
References ASSEMBLY, assert, BOX3D, C, CDS, COMPONENT, CYLINDER, DIAGONALS, DOGEAR, FALSE, FIVEPOVERHANG, FOLDER, gvrender_beziercurve(), gvrender_polygon(), gvrender_polyline(), INSULATOR, LARROW, LPROMOTER, MIN, N_GNEW, N_NEW, NOVERHANG, PRIMERSITE, PROMOTER, PROTEASESITE, PROTEINSTAB, RARROW, RBCONST, RBCURVE, RESTRICTIONSITE, RIBOSITE, RNASTAB, ROUNDED, RPROMOTER, SHAPE_MASK, SIGNATURE, TAB, TERMINATOR, THREEPOVERHANG, UTR, pointf_s::x, and pointf_s::y.
Referenced by emit_clusters().
shape_kind shapeOf | ( | node_t * | n | ) |
Definition at line 1820 of file shapes.c.
References epsf_init(), ND_shape, SH_EPSF, SH_POINT, SH_POLY, SH_RECORD, and SH_UNSET.
Referenced by common_init_node(), makeAddPoly(), makeObstacle(), and makePoly().