/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/pathplan/pathplan.h

Go to the documentation of this file.
00001 /* $Id: pathplan.h,v 1.3 2007/01/18 20:16:45 erg Exp $ $Revision: 1.3 $ */
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 
00018 
00019 #ifndef _PATH_INCLUDE
00020 #define _PATH_INCLUDE
00021 
00022 #include "pathgeom.h"
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00029 #if defined(_BLD_pathplan) && defined(__EXPORT__)
00030 #   define extern __EXPORT__
00031 #endif
00032 
00033 /* find shortest euclidean path within a simple polygon */
00034     extern int Pshortestpath(Ppoly_t * boundary, Ppoint_t endpoints[2],
00035                              Ppolyline_t * output_route);
00036 
00037 /* fit a spline to an input polyline, without touching barrier segments */
00038     extern int Proutespline(Pedge_t * barriers, int n_barriers,
00039                             Ppolyline_t input_route,
00040                             Pvector_t endpoint_slopes[2],
00041                             Ppolyline_t * output_route);
00042 
00043 /* utility function to convert from a set of polygonal obstacles to barriers */
00044     extern int Ppolybarriers(Ppoly_t ** polys, int npolys,
00045                              Pedge_t ** barriers, int *n_barriers);
00046 
00047 /* function to convert a polyline into a spline representation */
00048     extern void make_polyline(Ppolyline_t line, Ppolyline_t* sline);
00049 
00050 #undef extern
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 #endif

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