|
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 00019 #ifndef INFO_H 00020 #define INFO_H 00021 00022 #include "voronoi.h" 00023 #include "poly.h" 00024 00025 typedef struct ptitem { /* Point list */ 00026 struct ptitem *next; 00027 Point p; 00028 } PtItem; 00029 00030 typedef struct { /* Info concerning site */ 00031 Agnode_t *node; /* libgraph node */ 00032 Site site; /* site used by voronoi code */ 00033 int overlaps; /* true if node overlaps other nodes */ 00034 Poly poly; /* polygon at node */ 00035 PtItem *verts; /* sorted list of vertices of */ 00036 /* voronoi polygon */ 00037 } Info_t; 00038 00039 extern Info_t *nodeInfo; /* Array of node info */ 00040 00041 extern void infoinit(void); 00042 /* Insert vertex into sorted list */ 00043 extern void addVertex(Site *, double, double); 00044 #endif 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif
1.7.5