annotate toolboxes/graph_visualisation/include/graphviz/pathplan.h @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 /* $Id: pathplan.h,v 1.5 2009/06/03 01:10:54 ellson Exp $ $Revision: 1.5 $ */
Daniel@0 2 /* vim:set shiftwidth=4 ts=8: */
Daniel@0 3
Daniel@0 4 /**********************************************************
Daniel@0 5 * This software is part of the graphviz package *
Daniel@0 6 * http://www.graphviz.org/ *
Daniel@0 7 * *
Daniel@0 8 * Copyright (c) 1994-2004 AT&T Corp. *
Daniel@0 9 * and is licensed under the *
Daniel@0 10 * Common Public License, Version 1.0 *
Daniel@0 11 * by AT&T Corp. *
Daniel@0 12 * *
Daniel@0 13 * Information and Software Systems Research *
Daniel@0 14 * AT&T Research, Florham Park NJ *
Daniel@0 15 **********************************************************/
Daniel@0 16
Daniel@0 17
Daniel@0 18
Daniel@0 19 #ifndef _PATH_INCLUDE
Daniel@0 20 #define _PATH_INCLUDE
Daniel@0 21
Daniel@0 22 #include "pathgeom.h"
Daniel@0 23
Daniel@0 24 #ifdef __cplusplus
Daniel@0 25 extern "C" {
Daniel@0 26 #endif
Daniel@0 27
Daniel@0 28
Daniel@0 29 #if defined(_BLD_pathplan) && defined(__EXPORT__)
Daniel@0 30 # define extern __EXPORT__
Daniel@0 31 #endif
Daniel@0 32
Daniel@0 33 /* find shortest euclidean path within a simple polygon */
Daniel@0 34 extern int Pshortestpath(Ppoly_t * boundary, Ppoint_t endpoints[2],
Daniel@0 35 Ppolyline_t * output_route);
Daniel@0 36
Daniel@0 37 /* fit a spline to an input polyline, without touching barrier segments */
Daniel@0 38 extern int Proutespline(Pedge_t * barriers, int n_barriers,
Daniel@0 39 Ppolyline_t input_route,
Daniel@0 40 Pvector_t endpoint_slopes[2],
Daniel@0 41 Ppolyline_t * output_route);
Daniel@0 42
Daniel@0 43 /* utility function to convert from a set of polygonal obstacles to barriers */
Daniel@0 44 extern int Ppolybarriers(Ppoly_t ** polys, int npolys,
Daniel@0 45 Pedge_t ** barriers, int *n_barriers);
Daniel@0 46
Daniel@0 47 /* function to convert a polyline into a spline representation */
Daniel@0 48 extern void make_polyline(Ppolyline_t line, Ppolyline_t* sline);
Daniel@0 49
Daniel@0 50 #undef extern
Daniel@0 51
Daniel@0 52 #ifdef __cplusplus
Daniel@0 53 }
Daniel@0 54 #endif
Daniel@0 55 #endif