Graphviz  2.29.20120524.0446
lib/neatogen/site.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 
00019 
00020 #ifndef SITE_H
00021 #define SITE_H
00022 
00023 #include "geometry.h"
00024 
00025     /* Sites are also used as vertices on line segments */
00026     typedef struct Site {
00027         Point coord;
00028         int sitenbr;
00029         int refcnt;
00030     } Site;
00031 
00032     extern int siteidx;
00033     extern Site *bottomsite;
00034 
00035     extern void siteinit(void);
00036     extern Site *getsite(void);
00037     extern double dist(Site *, Site *); /* Distance between two sites */
00038     extern void deref(Site *);  /* Increment refcnt of site  */
00039     extern void ref(Site *);    /* Decrement refcnt of site  */
00040     extern void makevertex(Site *);     /* Transform a site into a vertex */
00041 #endif
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif