Graphviz  2.29.20120524.0446
lib/neatogen/poly.h
Go to the documentation of this file.
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 POLY_H
00019 #define POLY_H
00020 
00021 #include "geometry.h"
00022 
00023     typedef struct {
00024         Point origin;
00025         Point corner;
00026         int nverts;
00027         Point *verts;
00028         int kind;
00029     } Poly;
00030 
00031     extern void polyFree(void);
00032     extern int polyOverlap(Point, Poly *, Point, Poly *);
00033     extern int makePoly(Poly *, Agnode_t *, float, float);
00034     extern int makeAddPoly(Poly *, Agnode_t *, float, float);
00035     extern void breakPoly(Poly *);
00036 
00037 #endif
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif