summaryrefslogtreecommitdiff
path: root/html/structtile.html
blob: c9f0f278401491cbc0b2ebe7bb80ae1ed4b0dbe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>navit: tile Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">navit
   &#160;<span id="projectnumber">0.5.1-trunk</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structtile.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">tile Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A map tile, a rectangular region of the world.  
 <a href="structtile.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:adbb0fa9d4d05aaa70cbb06afec107a44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbb0fa9d4d05aaa70cbb06afec107a44"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#adbb0fa9d4d05aaa70cbb06afec107a44">start</a></td></tr>
<tr class="memdesc:adbb0fa9d4d05aaa70cbb06afec107a44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Memory address of the buffer containing the tile data (the actual map data). <br/></td></tr>
<tr class="separator:adbb0fa9d4d05aaa70cbb06afec107a44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfe6df80097e5aff8c44b77d6a06a637"><td class="memItemLeft" align="right" valign="top">int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#adfe6df80097e5aff8c44b77d6a06a637">end</a></td></tr>
<tr class="memdesc:adfe6df80097e5aff8c44b77d6a06a637"><td class="mdescLeft">&#160;</td><td class="mdescRight">First memory address not belonging to the tile data.  <a href="#adfe6df80097e5aff8c44b77d6a06a637">More...</a><br/></td></tr>
<tr class="separator:adfe6df80097e5aff8c44b77d6a06a637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4471b3ee60e3516ce255b79d23e438f6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4471b3ee60e3516ce255b79d23e438f6"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a4471b3ee60e3516ce255b79d23e438f6">pos</a></td></tr>
<tr class="memdesc:a4471b3ee60e3516ce255b79d23e438f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to current position (start of current item) inside the tile data. <br/></td></tr>
<tr class="separator:a4471b3ee60e3516ce255b79d23e438f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a919c1a31086e5949957801a73e60fa20"><td class="memItemLeft" align="right" valign="top">int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a919c1a31086e5949957801a73e60fa20">pos_coord_start</a></td></tr>
<tr class="memdesc:a919c1a31086e5949957801a73e60fa20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the first element inside the current item that is a coordinate.  <a href="#a919c1a31086e5949957801a73e60fa20">More...</a><br/></td></tr>
<tr class="separator:a919c1a31086e5949957801a73e60fa20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab503553844667df2adc2a68bd689b05d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab503553844667df2adc2a68bd689b05d"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#ab503553844667df2adc2a68bd689b05d">pos_coord</a></td></tr>
<tr class="memdesc:ab503553844667df2adc2a68bd689b05d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current position in the coordinates region of the current item. <br/></td></tr>
<tr class="separator:ab503553844667df2adc2a68bd689b05d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88358f32fe03935fcc828c53ad8cb6bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88358f32fe03935fcc828c53ad8cb6bd"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a88358f32fe03935fcc828c53ad8cb6bd">pos_attr_start</a></td></tr>
<tr class="memdesc:a88358f32fe03935fcc828c53ad8cb6bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the first attr data structure of the current item. <br/></td></tr>
<tr class="separator:a88358f32fe03935fcc828c53ad8cb6bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9672b980d62b163e3b3612ef160695a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9672b980d62b163e3b3612ef160695a4"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a9672b980d62b163e3b3612ef160695a4">pos_attr</a></td></tr>
<tr class="memdesc:a9672b980d62b163e3b3612ef160695a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current position in the attr region of the current item. <br/></td></tr>
<tr class="separator:a9672b980d62b163e3b3612ef160695a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a502c97982586fb3c4a6871a82a205507"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a502c97982586fb3c4a6871a82a205507"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a502c97982586fb3c4a6871a82a205507">pos_next</a></td></tr>
<tr class="memdesc:a502c97982586fb3c4a6871a82a205507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the next item (the item which follows the "current item" as indicated by *pos). <br/></td></tr>
<tr class="separator:a502c97982586fb3c4a6871a82a205507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24d79273d946fc4f02fbb6183a1ca2fc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24d79273d946fc4f02fbb6183a1ca2fc"></a>
struct <a class="el" href="structfile.html">file</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtile.html#a24d79273d946fc4f02fbb6183a1ca2fc">fi</a></td></tr>
<tr class="memdesc:a24d79273d946fc4f02fbb6183a1ca2fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The file from which this tile was loaded. <br/></td></tr>
<tr class="separator:a24d79273d946fc4f02fbb6183a1ca2fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51d53fa0cf891a037947bd09794ab969"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51d53fa0cf891a037947bd09794ab969"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>zipfile_num</b></td></tr>
<tr class="separator:a51d53fa0cf891a037947bd09794ab969"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5649827f453e15be119426e8da3e849f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5649827f453e15be119426e8da3e849f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mode</b></td></tr>
<tr class="separator:a5649827f453e15be119426e8da3e849f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A map tile, a rectangular region of the world. </p>
<p>Represents a "map tile", a rectangular region of the world. The binfile format divides the world into tiles of different sizes for easy handling. A binfile is a ZIP archive; each member file (with the exception of index files) represents one tile. The data from a tile file is read into memory and used directly as the tile data of this struct. </p>
<p>See the Navit wiki for details on the binfile format:</p>
<p><a href="http://wiki.navit-project.org/index.php/Navit%27s_binary_map_driver">http://wiki.navit-project.org/index.php/Navit%27s_binary_map_driver</a> </p>
<p>Note that this tile struct also maintains pointers to several current positions inside the tile. These are not part of the actual tile data, but are used for working with the data. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="adfe6df80097e5aff8c44b77d6a06a637"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* tile::end</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>First memory address not belonging to the tile data. </p>
<p>Thus tile-&gt;end - tile-&gt;start represents the size of the tile data in multiples of 4 Bytes. </p>

</div>
</div>
<a class="anchor" id="a919c1a31086e5949957801a73e60fa20"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* tile::pos_coord_start</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to the first element inside the current item that is a coordinate. </p>
<p>That is the first position after the header of an item. The header holds 3 entries each 32bit wide integers: header[0] holds the size of the whole item (excluding this size field) header[1] holds the type of the item header[2] holds the size of the coordinates in the tile </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>map/binfile/binfile.c</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structtile.html">tile</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>