/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/shapes.c File Reference

#include "render.h"
#include "htmltable.h"
#include <limits.h>

Include dependency graph for shapes.c:

Go to the source code of this file.

Defines

#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 SPECIAL_CORNERS(style)   ((style) & (ROUNDED | DIAGONALS | DOGEAR | TAB | FOLDER | BOX3D | COMPONENT))
#define GET_PORT_BOX(n, e)   ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp)
#define HASTEXT   1
#define HASPORT   2
#define HASTABLE   4
#define INTEXT   8
#define INPORT   16
#define ISCTRL(c)   ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>')

Functions

void round_corners (GVJ_t *job, char *fillc, char *penc, pointf *AF, int sides, int style)
shape_kind shapeOf (node_t *n)
boolean isPolygon (node_t *n)
shape_descfind_user_shape (char *name)
shape_descbind_shape (char *name, node_t *np)


Define Documentation

#define ATTR_SET ( a,
 )     ((a) && (*(agxget(n,a->index)) != '\0'))

Definition at line 26 of file shapes.c.

#define DEF_POINT   0.05

Definition at line 28 of file shapes.c.

#define GET_PORT_BOX ( n,
 )     ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp)

Definition at line 1047 of file shapes.c.

#define HASPORT   2

Definition at line 1788 of file shapes.c.

#define HASTABLE   4

Definition at line 1789 of file shapes.c.

#define HASTEXT   1

Definition at line 1787 of file shapes.c.

#define INPORT   16

Definition at line 1791 of file shapes.c.

#define INTEXT   8

Definition at line 1790 of file shapes.c.

#define IS_BOX (  )     (ND_shape(n)->polygon == &p_box)

Definition at line 101 of file shapes.c.

#define ISCTRL (  )     ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>')

Definition at line 1793 of file shapes.c.

#define MIN_POINT   0.0003

Definition at line 33 of file shapes.c.

#define RBCONST   12

Definition at line 21 of file shapes.c.

Referenced by round_corners().

#define RBCURVE   .5

Definition at line 22 of file shapes.c.

Referenced by round_corners().

#define SPECIAL_CORNERS ( style   )     ((style) & (ROUNDED | DIAGONALS | DOGEAR | TAB | FOLDER | BOX3D | COMPONENT))

Definition at line 104 of file shapes.c.


Function Documentation

shape_desc* bind_shape ( char *  name,
node_t np 
)

Definition at line 2376 of file shapes.c.

References agget(), shape_desc::name, NULL, safefile(), and streq.

Referenced by common_init_node().

shape_desc* find_user_shape ( char *  name  ) 

Definition at line 2345 of file shapes.c.

References NULL, and streq.

boolean isPolygon ( node_t n  ) 

Definition at line 687 of file shapes.c.

References ND_shape.

Referenced by attach_attrs_and_arrows().

void round_corners ( GVJ_t job,
char *  fillc,
char *  penc,
pointf AF,
int  sides,
int  style 
)

Definition at line 375 of file shapes.c.

References assert, BOX3D, C, COMPONENT, DIAGONALS, DOGEAR, FALSE, FILLED, FOLDER, free(), gvrender_begin_context(), gvrender_beziercurve(), gvrender_end_context(), gvrender_polygon(), gvrender_polyline(), gvrender_set_fillcolor(), gvrender_set_pencolor(), N_GNEW, N_NEW, RBCONST, RBCURVE, ROUNDED, TAB, TRUE, pointf_s::x, and pointf_s::y.

Referenced by emit_clusters().

shape_kind shapeOf ( node_t n  ) 

Definition at line 667 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(), makeObstacle(), and makePoly().


Generated on Mon Mar 31 19:04:59 2008 for Graphviz by  doxygen 1.5.1