]> git.mxchange.org Git - flightgear.git/blob - ShapeFile/shape.hxx
Additional progress.
[flightgear.git] / ShapeFile / shape.hxx
1 // shape.hxx -- shape/gpc utils
2 //
3 // Written by Curtis Olson, started February 1999.
4 //
5 // Copyright (C) 1999  Curtis L. Olson  - curt@flightgear.org
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22 // (Log is kept at end of this file)
23
24
25 #ifndef _SHAPE_HXX
26 #define _SHAPE_HXX
27
28
29 // include Generic Polygon Clipping Library
30 extern "C" {
31 #include <gpc.h>
32 }
33
34 #include "names.hxx"
35
36
37 // Initialize structure we use to create polygons for the gpc library
38 // this must be called once from main for any program that uses this library
39 bool shape_utils_init();
40
41
42 // initialize a gpc_polygon
43 void init_shape(gpc_polygon *shape);
44
45 // make a gpc_polygon
46 void add_to_shape(int count, double *coords, gpc_polygon *shape);
47
48 // process shape (write polygon to all intersecting tiles)
49 void process_shape(string path, AreaType area, gpc_polygon *gpc_shape);
50
51 // free a gpc_polygon
52 void free_shape(gpc_polygon *shape);
53
54
55 #endif // _SHAPE_HXX
56
57
58 // $Log$
59 // Revision 1.1  1999/02/23 01:29:06  curt
60 // Additional progress.
61 //