Graphviz
2.41.20171026.1811
|
#include "render.h"
Go to the source code of this file.
Data Structures | |
struct | arrowdir_t |
struct | arrowname_t |
struct | arrowtype_t |
Macros | |
#define | EPSILON .0001 |
#define | ARROW_LENGTH 10. |
#define | NUMB_OF_ARROW_HEADS 4 |
#define | BITS_PER_ARROW 8 |
#define | BITS_PER_ARROW_TYPE 4 |
#define | ARR_TYPE_NONE (ARR_NONE) |
#define | ARR_TYPE_NORM 1 |
#define | ARR_TYPE_CROW 2 |
#define | ARR_TYPE_TEE 3 |
#define | ARR_TYPE_BOX 4 |
#define | ARR_TYPE_DIAMOND 5 |
#define | ARR_TYPE_DOT 6 |
#define | ARR_TYPE_CURVE 7 |
#define | ARR_TYPE_GAP 8 |
#define | ARR_MOD_OPEN (1<<(BITS_PER_ARROW_TYPE+0)) |
#define | ARR_MOD_INV (1<<(BITS_PER_ARROW_TYPE+1)) |
#define | ARR_MOD_LEFT (1<<(BITS_PER_ARROW_TYPE+2)) |
#define | ARR_MOD_RIGHT (1<<(BITS_PER_ARROW_TYPE+3)) |
Typedefs | |
typedef struct arrowdir_t | arrowdir_t |
typedef struct arrowname_t | arrowname_t |
typedef struct arrowtype_t | arrowtype_t |
Functions | |
void | arrow_flags (Agedge_t *e, int *sflag, int *eflag) |
double | arrow_length (edge_t *e, int flag) |
int | arrowEndClip (edge_t *e, pointf *ps, int startp, int endp, bezier *spl, int eflag) |
int | arrowStartClip (edge_t *e, pointf *ps, int startp, int endp, bezier *spl, int sflag) |
void | arrowOrthoClip (edge_t *e, pointf *ps, int startp, int endp, bezier *spl, int sflag, int eflag) |
boxf | arrow_bb (pointf p, pointf u, double arrowsize, int flag) |
void | arrow_gen (GVJ_t *job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag) |
#define ARR_MOD_INV (1<<(BITS_PER_ARROW_TYPE+1)) |
#define ARR_MOD_LEFT (1<<(BITS_PER_ARROW_TYPE+2)) |
#define ARR_MOD_OPEN (1<<(BITS_PER_ARROW_TYPE+0)) |
#define ARR_MOD_RIGHT (1<<(BITS_PER_ARROW_TYPE+3)) |
#define ARR_TYPE_NONE (ARR_NONE) |
Definition at line 29 of file arrows.c.
Referenced by arrow_flags(), and arrow_gen().
#define ARR_TYPE_NORM 1 |
Definition at line 30 of file arrows.c.
Referenced by arrow_flags().
#define ARROW_LENGTH 10. |
Definition at line 20 of file arrows.c.
Referenced by arrow_bb(), arrow_gen(), and arrow_length().
#define BITS_PER_ARROW 8 |
Definition at line 25 of file arrows.c.
Referenced by arrow_gen(), and arrow_length().
#define BITS_PER_ARROW_TYPE 4 |
Definition at line 27 of file arrows.c.
Referenced by arrow_length().
#define EPSILON .0001 |
Definition at line 17 of file arrows.c.
Referenced by arrow_bb(), and arrow_gen().
#define NUMB_OF_ARROW_HEADS 4 |
Definition at line 22 of file arrows.c.
Referenced by arrow_gen(), and arrow_length().
typedef struct arrowdir_t arrowdir_t |
typedef struct arrowname_t arrowname_t |
typedef struct arrowtype_t arrowtype_t |
Definition at line 691 of file arrows.c.
References ARROW_LENGTH, EPSILON, boxf::LL, MAX, MIN, boxf::UR, pointf_s::x, and pointf_s::y.
Definition at line 198 of file arrows.c.
References agfindedge, aghead(), agisdirected(), agraphof(), agtail(), agxget(), ARR_TYPE_NONE, ARR_TYPE_NORM, arrow_flags(), arrowdir_t::dir, E_arrowhead, E_arrowtail, E_dir, ED_conc_opp_flag, arrowdir_t::eflag, arrowdir_t::sflag, and streq.
Referenced by arrow_flags().
void arrow_gen | ( | GVJ_t * | job, |
emit_state_t | emit_state, | ||
pointf | p, | ||
pointf | u, | ||
double | arrowsize, | ||
double | penwidth, | ||
int | flag | ||
) |
Definition at line 729 of file arrows.c.
References ARR_TYPE_NONE, ARROW_LENGTH, BITS_PER_ARROW, GVC_s::defaultlinestyle, obj_state_s::emit_state, EPSILON, GVJ_s::gvc, gvrender_set_penwidth(), gvrender_set_style(), NUMB_OF_ARROW_HEADS, GVJ_s::obj, pointf_s::x, and pointf_s::y.
Definition at line 229 of file arrows.c.
References ARROW_LENGTH, BITS_PER_ARROW, BITS_PER_ARROW_TYPE, E_arrowsz, arrowtype_t::gen, late_double(), arrowtype_t::lenfact, NUMB_OF_ARROW_HEADS, and arrowtype_t::type.
Referenced by arrowEndClip(), arrowOrthoClip(), and arrowStartClip().
Definition at line 256 of file arrows.c.
References inside_t::a, arrow_length(), bezier_clip(), DIST2, bezier::eflag, bezier::ep, inside_t::p, inside_t::r, and TRUE.
void arrowOrthoClip | ( | edge_t * | e, |
pointf * | ps, | ||
int | startp, | ||
int | endp, | ||
bezier * | spl, | ||
int | sflag, | ||
int | eflag | ||
) |
Definition at line 323 of file arrows.c.
References arrow_length(), DIST, bezier::eflag, bezier::ep, bezier::sflag, bezier::sp, pointf_s::x, and pointf_s::y.
Definition at line 285 of file arrows.c.
References inside_t::a, arrow_length(), bezier_clip(), DIST2, FALSE, inside_t::p, inside_t::r, bezier::sflag, and bezier::sp.