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

#include <render.h>
#include <pack.h>
#include <pointset.h>
#include <math.h>

Include dependency graph for pack.c:

Go to the source code of this file.

Data Structures

struct  ginfo

Defines

#define C   100
#define MOVEPT(p)   ((p).x += dx, (p).y += dy)
#define GRID(x, s)   (((x) + ((s)-1)) / (s))
#define CELL(p, s)   ((p).x = (p).x/(s), (p).y = ((p).y/(s)))
#define SGN(a)   (((a)<0)? -1 : 1)

Functions

void fillLine (point p, point q, PointSet *ps)
pointputGraphs (int ng, Agraph_t **gs, Agraph_t *root, pack_info *pinfo)
int packGraphs (int ng, Agraph_t **gs, Agraph_t *root, pack_info *info)
int packSubgraphs (int ng, Agraph_t **gs, Agraph_t *root, pack_info *info)
int pack_graph (int ng, Agraph_t **gs, Agraph_t *root, boolean *fixed)
pack_mode getPackMode (Agraph_t *g, pack_mode dflt)
int getPack (Agraph_t *g, int not_def, int dflt)


Define Documentation

#define C   100

Definition at line 28 of file pack.c.

Referenced by colorxlate(), mult_dense_mat(), mult_dense_mat_d(), mult_sparse_dense_mat_transpose(), and round_corners().

#define CELL ( p,
 )     ((p).x = (p).x/(s), (p).y = ((p).y/(s)))

Definition at line 32 of file pack.c.

#define GRID ( x,
 )     (((x) + ((s)-1)) / (s))

Definition at line 31 of file pack.c.

#define MOVEPT (  )     ((p).x += dx, (p).y += dy)

Definition at line 30 of file pack.c.

#define SGN (  )     (((a)<0)? -1 : 1)

Definition at line 33 of file pack.c.


Function Documentation

void fillLine ( point  p,
point  q,
PointSet ps 
)

Definition at line 104 of file pack.c.

References ABS, addPS(), SGN, point::x, and point::y.

int getPack ( Agraph_t g,
int  not_def,
int  dflt 
)

Definition at line 915 of file pack.c.

References agget().

Referenced by circoLayout(), init_info(), neato_layout(), pack_graph(), and twopi_layout().

pack_mode getPackMode ( Agraph_t g,
pack_mode  dflt 
)

Definition at line 868 of file pack.c.

References agget(), l_clust, l_graph, l_node, and streq.

Referenced by circoLayout(), init_info(), neato_layout(), pack_graph(), and twopi_layout().

int pack_graph ( int  ng,
Agraph_t **  gs,
Agraph_t root,
boolean fixed 
)

Definition at line 850 of file pack.c.

References CL_OFFSET, pack_info::doSplines, dotneato_postprocess(), pack_info::fixed, getPack(), getPackMode(), l_graph, pack_info::margin, pack_info::mode, and packSubgraphs().

int packGraphs ( int  ng,
Agraph_t **  gs,
Agraph_t root,
pack_info info 
)

Definition at line 805 of file pack.c.

References pack_info::doSplines, free(), and putGraphs().

Referenced by main(), neato_layout(), and packSubgraphs().

int packSubgraphs ( int  ng,
Agraph_t **  gs,
Agraph_t root,
pack_info info 
)

Definition at line 823 of file pack.c.

References compute_bb(), GD_bb, GD_clust, GD_n_cluster, and packGraphs().

Referenced by circoLayout(), pack_graph(), and twopi_layout().

point* putGraphs ( int  ng,
Agraph_t **  gs,
Agraph_t root,
pack_info pinfo 
)

Definition at line 573 of file pack.c.

References compute_bb(), pack_info::fixed, free(), freePS(), GD_bb, l_graph, box::LL, pack_info::margin, MAX, MIN, pack_info::mode, N_NEW, newPS(), box::UR, Verbose, point::x, and point::y.

Referenced by layout(), and packGraphs().


Generated on Mon Mar 31 19:07:38 2008 for Graphviz by  doxygen 1.5.1