/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/neatogen/site.h

Go to the documentation of this file.
00001 /* $Id: site.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 SITE_H
00024 #define SITE_H
00025 
00026 #include "geometry.h"
00027 
00028     /* Sites are also used as vertices on line segments */
00029     typedef struct Site {
00030         Point coord;
00031         int sitenbr;
00032         int refcnt;
00033     } Site;
00034 
00035     extern int siteidx;
00036     extern Site *bottomsite;
00037 
00038     extern void siteinit(void);
00039     extern Site *getsite(void);
00040     extern double dist(Site *, Site *); /* Distance between two sites */
00041     extern void deref(Site *);  /* Increment refcnt of site  */
00042     extern void ref(Site *);    /* Decrement refcnt of site  */
00043     extern void makevertex(Site *);     /* Transform a site into a vertex */
00044 #endif
00045 
00046 #ifdef __cplusplus
00047 }
00048 #endif

Generated on Mon Mar 31 19:03:27 2008 for Graphviz by  doxygen 1.5.1