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