00001 /* $Id: poly.h,v 1.2 2005/02/24 00:57:33 ellson Exp $ $Revision: 1.2 $ */ 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 00022 00023 #ifndef POLY_H 00024 #define POLY_H 00025 00026 #include "geometry.h" 00027 00028 typedef struct { 00029 Point origin; 00030 Point corner; 00031 int nverts; 00032 Point *verts; 00033 int kind; 00034 } Poly; 00035 00036 extern void polyFree(void); 00037 extern int polyOverlap(Point, Poly *, Point, Poly *); 00038 extern void makePoly(Poly *, Agnode_t *, double); 00039 extern void breakPoly(Poly *); 00040 00041 #endif 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif