Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /branches/2.3.2-dev/src/fakes.h
Parent Directory
|
Revision Log
Revision 1086 -
(show annotations)
(download)
(as text)
Sat Oct 6 13:26:02 2012 UTC (12 years, 5 months ago) by amb
File MIME type: text/x-chdr
File size: 1898 byte(s)
Sat Oct 6 13:26:02 2012 UTC (12 years, 5 months ago) by amb
File MIME type: text/x-chdr
File size: 1898 byte(s)
Merge the rest of the trunk into the branch to prepare to merge back to the trunk.
1 | /*************************************** |
2 | Header file for fake node and segment function prototypes |
3 | |
4 | Part of the Routino routing software. |
5 | ******************/ /****************** |
6 | This file Copyright 2008-2012 Andrew M. Bishop |
7 | |
8 | This program is free software: you can redistribute it and/or modify |
9 | it under the terms of the GNU Affero General Public License as published by |
10 | the Free Software Foundation, either version 3 of the License, or |
11 | (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public License |
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 | ***************************************/ |
21 | |
22 | |
23 | #ifndef FAKES_H |
24 | #define FAKES_H /*+ To stop multiple inclusions. +*/ |
25 | |
26 | #include "types.h" |
27 | |
28 | |
29 | /* Macros */ |
30 | |
31 | /*+ Return true if this is a fake node. +*/ |
32 | #define IsFakeNode(xxx) ((xxx)>=NODE_FAKE && (xxx)!=NO_NODE) |
33 | |
34 | /*+ Return true if this is a fake segment. +*/ |
35 | #define IsFakeSegment(xxx) ((xxx)>=SEGMENT_FAKE && (xxx)!=NO_SEGMENT) |
36 | |
37 | |
38 | /* Functions in fakes.c */ |
39 | |
40 | index_t CreateFakes(Nodes *nodes,Segments *segments,int point,Segment *segmentp,index_t node1,index_t node2,distance_t dist1,distance_t dist2); |
41 | |
42 | void GetFakeLatLong(index_t fakenode, double *latitude,double *longitude); |
43 | |
44 | Segment *FirstFakeSegment(index_t fakenode); |
45 | Segment *NextFakeSegment(Segment *fakesegmentp,index_t fakenode); |
46 | Segment *ExtraFakeSegment(index_t realnode,index_t fakenode); |
47 | |
48 | Segment *LookupFakeSegment(index_t index); |
49 | index_t IndexFakeSegment(Segment *fakesegmentp); |
50 | index_t IndexRealSegment(index_t fakesegment); |
51 | |
52 | int IsFakeUTurn(index_t fakesegment1,index_t fakesegment2); |
53 | |
54 | #endif /* FAKES_H */ |