/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/twopigen/circle.h

Go to the documentation of this file.
00001 /* $Id: circle.h,v 1.2 2005/07/29 22:59:35 erg 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 #ifndef CIRCLE_H
00018 #define CIRCLE_H
00019 
00020 #include "render.h"
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026     typedef struct {
00027         int nStepsToLeaf;
00028         int subtreeSize;
00029         int nChildren;
00030         int nStepsToCenter;
00031         node_t *parent;
00032         double span;
00033         double theta;
00034     } rdata;
00035 
00036 #define RDATA(n) ((rdata*)((n)->u.alg))
00037 #define SLEAF(n) (RDATA(n)->nStepsToLeaf)
00038 #define STSIZE(n) (RDATA(n)->subtreeSize)
00039 #define NCHILD(n) (RDATA(n)->nChildren)
00040 #define SCENTER(n) (RDATA(n)->nStepsToCenter)
00041 #define SPARENT(n) (RDATA(n)->parent)
00042 #define SPAN(n) (RDATA(n)->span)
00043 #define THETA(n) (RDATA(n)->theta)
00044 
00045     extern void circleLayout(Agraph_t * sg, Agnode_t * center);
00046     extern void twopi_layout(Agraph_t * g);
00047     extern void twopi_cleanup(Agraph_t * g);
00048     extern void twopi_init_graph(graph_t * g);
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053 #endif

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