|
Graphviz
2.29.20120524.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif 00017 00018 #ifndef GRID_H 00019 #define GRID_H 00020 00021 #ifdef HAVE_CONFIG_H 00022 #include <config.h> 00023 #endif 00024 00025 #include <render.h> 00026 #include <cdt.h> 00027 00028 typedef struct _grid Grid; 00029 00030 typedef struct _node_list { 00031 Agnode_t *node; 00032 struct _node_list *next; 00033 } node_list; 00034 00035 typedef struct { 00036 int i, j; 00037 } gridpt; 00038 00039 typedef struct { 00040 gridpt p; /* index of cell */ 00041 node_list *nodes; /* nodes in cell */ 00042 Dtlink_t link; /* cdt data */ 00043 } cell; 00044 00045 extern Grid *mkGrid(int); 00046 extern void adjustGrid(Grid * g, int nnodes); 00047 extern void clearGrid(Grid *); 00048 extern void addGrid(Grid *, int, int, Agnode_t *); 00049 extern void walkGrid(Grid *, int (*)(Dt_t *, cell *, Grid *)); 00050 extern cell *findGrid(Grid *, int, int); 00051 extern void delGrid(Grid *); 00052 extern int gLength(cell * p); 00053 00054 #endif 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif
1.7.5