/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/fdpgen/grid.h

Go to the documentation of this file.
00001 /* $Id: grid.h,v 1.1.1.1 2004/12/23 04:05:07 ellson Exp $ $Revision: 1.1.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 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00021 #ifndef GRID_H
00022 #define GRID_H
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027 
00028 #include <render.h>
00029 #include <cdt.h>
00030 
00031     typedef struct _grid Grid;
00032 
00033     typedef struct _node_list {
00034         Agnode_t *node;
00035         struct _node_list *next;
00036     } node_list;
00037 
00038     typedef struct {
00039         int i, j;
00040     } gridpt;
00041 
00042     typedef struct {
00043         gridpt p;               /* index of cell */
00044         node_list *nodes;       /* nodes in cell */
00045         Dtlink_t link;          /* cdt data */
00046     } cell;
00047 
00048     extern Grid *mkGrid(int);
00049     extern void adjustGrid(Grid * g, int nnodes);
00050     extern void clearGrid(Grid *);
00051     extern void addGrid(Grid *, int, int, Agnode_t *);
00052     extern void walkGrid(Grid *, int (*)(Dt_t *, cell *, Grid *));
00053     extern cell *findGrid(Grid *, int, int);
00054     extern void delGrid(Grid *);
00055     extern int gLength(cell * p);
00056 
00057 #endif
00058 
00059 #ifdef __cplusplus
00060 }
00061 #endif

Generated on Mon Mar 31 19:03:26 2008 for Graphviz by  doxygen 1.5.1