Graphviz  2.31.20130525.0447
Data Structures | Defines | Typedefs | Enumerations | Functions
lib/pack/pack.h File Reference
#include "types.h"
Include dependency graph for pack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pack_info

Defines

#define PK_COL_MAJOR   (1 << 0)
#define PK_USER_VALS   (1 << 1)
#define PK_LEFT_ALIGN   (1 << 2)
#define PK_RIGHT_ALIGN   (1 << 3)
#define PK_TOP_ALIGN   (1 << 4)
#define PK_BOT_ALIGN   (1 << 5)
#define extern

Typedefs

typedef unsigned char packval_t

Enumerations

enum  pack_mode {
  l_undef, l_clust, l_node, l_graph,
  l_array, l_aspect
}

Functions

pointputRects (int ng, boxf *bbs, pack_info *pinfo)
int packRects (int ng, boxf *bbs, pack_info *pinfo)
pointputGraphs (int, Agraph_t **, Agraph_t *, pack_info *)
int packGraphs (int, Agraph_t **, Agraph_t *, pack_info *)
int packSubgraphs (int, Agraph_t **, Agraph_t *, pack_info *)
int pack_graph (int ng, Agraph_t **gs, Agraph_t *root, boolean *fixed)
int shiftGraphs (int, Agraph_t **, point *, Agraph_t *, int)
pack_mode getPackMode (Agraph_t *g, pack_mode dflt)
int getPack (Agraph_t *, int not_def, int dflt)
pack_mode getPackInfo (Agraph_t *g, pack_mode dflt, int dfltMargin, pack_info *)
pack_mode getPackModeInfo (Agraph_t *g, pack_mode dflt, pack_info *)
pack_mode parsePackModeInfo (char *p, pack_mode dflt, pack_info *pinfo)
int isConnected (Agraph_t *)
Agraph_t ** ccomps (Agraph_t *, int *, char *)
Agraph_t ** pccomps (Agraph_t *, int *, char *, boolean *)
int nodeInduce (Agraph_t *)

Define Documentation

#define extern

Definition at line 61 of file pack.h.

#define PK_BOT_ALIGN   (1 << 5)

Definition at line 44 of file pack.h.

#define PK_COL_MAJOR   (1 << 0)

Definition at line 39 of file pack.h.

#define PK_LEFT_ALIGN   (1 << 2)

Definition at line 41 of file pack.h.

#define PK_RIGHT_ALIGN   (1 << 3)

Definition at line 42 of file pack.h.

#define PK_TOP_ALIGN   (1 << 4)

Definition at line 43 of file pack.h.

#define PK_USER_VALS   (1 << 1)

Definition at line 40 of file pack.h.

Referenced by putGraphs().


Typedef Documentation

typedef unsigned char packval_t

Definition at line 46 of file pack.h.


Enumeration Type Documentation

enum pack_mode
Enumerator:
l_undef 
l_clust 
l_node 
l_graph 
l_array 
l_aspect 

Definition at line 37 of file pack.h.


Function Documentation

Agraph_t** ccomps ( Agraph_t ,
int *  ,
char *   
)

Definition at line 288 of file ccomps.c.

References SMALLBUF, INITBUF, agnnodes(), gmalloc(), NULL, agfstnode(), agnxtnode(), UNMARK, N_GNEW, free(), MARKED, agsubg(), TRUE, and RALLOC.

Referenced by circomps(), main(), and twopi_layout().

int getPack ( Agraph_t ,
int  not_def,
int  dflt 
)

Definition at line 1341 of file pack.c.

References agget().

Referenced by neato_layout(), and getPackInfo().

pack_mode getPackInfo ( Agraph_t g,
pack_mode  dflt,
int  dfltMargin,
pack_info  
)
pack_mode getPackMode ( Agraph_t g,
pack_mode  dflt 
)

Definition at line 1330 of file pack.c.

References getPackModeInfo().

pack_mode getPackModeInfo ( Agraph_t g,
pack_mode  dflt,
pack_info  
)

Definition at line 1324 of file pack.c.

References parsePackModeInfo(), and agget().

Referenced by neato_layout(), getPackMode(), and getPackInfo().

int isConnected ( Agraph_t )

Definition at line 368 of file ccomps.c.

References INITBUF, agfstnode(), agnxtnode(), UNMARK, and agnnodes().

Referenced by main().

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

Definition at line 1138 of file pack.c.

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

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

int packRects ( int  ng,
boxf bbs,
pack_info pinfo 
)

Definition at line 980 of file pack.c.

References putRects(), boxf::LL, pointf_s::x, point::x, boxf::UR, pointf_s::y, point::y, and free().

int packSubgraphs ( int  ,
Agraph_t **  ,
Agraph_t ,
pack_info  
)

Definition at line 1156 of file pack.c.

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

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

pack_mode parsePackModeInfo ( char *  p,
pack_mode  dflt,
pack_info pinfo 
)
Agraph_t** pccomps ( Agraph_t ,
int *  ,
char *  ,
boolean  
)
point* putGraphs ( int  ,
Agraph_t **  ,
Agraph_t ,
pack_info  
)
point* putRects ( int  ng,
boxf bbs,
pack_info pinfo 
)

Definition at line 957 of file pack.c.

References NULL, pack_info::mode, l_node, l_clust, l_graph, and l_array.

Referenced by packRects().

int shiftGraphs ( int  ,
Agraph_t **  ,
point ,
Agraph_t ,
int   
)

Definition at line 1084 of file pack.c.

References point::x, point::y, agfstnode(), agnxtnode(), ND_pos, MOVEPT, ND_coord, agfstout(), and agnxtout().

Referenced by packGraphs().