Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

pack.h

Go to the documentation of this file.
00001 /* $Id: pack.h,v 1.1 2005/04/09 03:38:19 roxo Exp $ $Revision: 1.1 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 
00018 
00019 #ifndef _PACK_H
00020 #define _PACK_H 1
00021 
00022 #include "render.h"
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 /* Type indicating granularity and method 
00029  *  l_undef  - unspecified
00030  *  l_node   - polyomino using nodes and edges
00031  *  l_clust  - polyomino using nodes and edges and top-level clusters
00032  *             (assumes ND_clust(n) unused by application)
00033  *  l_graph  - polyomino using graph bounding box
00034  *  l_hull   - polyomino using convex hull (unimplemented)
00035  *  l_tile   - tiling using graph bounding box (unimplemented)
00036  *  l_bisect - alternate bisection using graph bounding box (unimplemented)
00037  */
00038     typedef enum { l_undef, l_clust, l_node, l_graph } pack_mode;
00039 
00040     typedef struct {
00041 #ifdef UNIMPLEMENTED
00042         float aspect;           /* desired aspect ratio */
00043 #endif
00044         unsigned int margin;    /* margin left around objects, in points */
00045         int doSplines;          /* use splines in constructing graph shape */
00046         pack_mode mode;         /* granularity and method */
00047         boolean *fixed;         /* fixed[i] == true implies g[i] should not be moved */
00048     } pack_info;
00049 
00050     extern point *putGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00051     extern int shiftGraphs(int, Agraph_t **, point *, Agraph_t *, int);
00052     extern int packGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00053     extern int packSubgraphs(int, Agraph_t **, Agraph_t *, pack_info *);
00054     extern pack_mode getPackMode(Agraph_t * g, pack_mode dflt);
00055     extern int getPack(Agraph_t *, int not_def, int dflt);
00056 
00057     extern int isConnected(Agraph_t *);
00058     extern Agraph_t **ccomps(Agraph_t *, int *, char *);
00059     extern Agraph_t **pccomps(Agraph_t *, int *, char *, boolean *);
00060     extern int nodeInduce(Agraph_t *);
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif
00065 #endif
Untitled Document Pesquisa Psi SourceForge.net Logo