EVOLUTION-MANAGER
Edit File: LinearIterator_8h_source.html
<!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.5"/> <title>GEOS: LinearIterator.h Source File</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="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">GEOS  <span id="projectnumber">3.5.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_78009f08da3e03d86b70776dcc463e92.html">include</a></li><li class="navelem"><a class="el" href="dir_40c9e98f0599f998dfc16f8b0ec4bf37.html">geos</a></li><li class="navelem"><a class="el" href="dir_33ab82ab366d28e0c899d5be4fdea085.html">linearref</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">LinearIterator.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**********************************************************************</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * GEOS - Geometry Engine Open Source</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * http://geos.osgeo.org</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * by the Free Software Foundation.</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * See the COPYING file for more information.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> **********************************************************************</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Last port: linearref/LinearIterator.java r463</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> **********************************************************************/</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef GEOS_LINEARREF_LINEARITERATOR_H</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"></span><span class="preprocessor">#define GEOS_LINEARREF_LINEARITERATOR_H</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <string></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <geos/geom/Coordinate.h></span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <geos/geom/Geometry.h></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <geos/geom/LineSegment.h></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <geos/linearref/LinearLocation.h></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>geos { <span class="keyword">namespace </span>linearref</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearIterator.html"> 50</a></span> <span class="keyword">class </span><a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> {</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a632426abb87d5f3cc4b6c5fb23da7932">LinearIterator</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linear);</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a632426abb87d5f3cc4b6c5fb23da7932">LinearIterator</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linear, <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& start);</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a632426abb87d5f3cc4b6c5fb23da7932">LinearIterator</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linear, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> componentIndex, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vertexIndex);</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a3568ac2c513902a45d8fcd700adb8904">hasNext</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#af71966c14f6a7ede1157c18a001a0af1">next</a>();</div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a6db3e2de613348d7fb28e26b288cb80a">isEndOfLine</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a522ea6c160629baa7f16ad749557458c">getComponentIndex</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#ae7f4aa8654c964c9ce6db428029381a7">getVertexIndex</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>* <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#afa14565649421758be3d65ca32f8c77c">getLine</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#ad4fa921b57685e846277c1fdc10017f8">getSegmentStart</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a90a909bbb22f34ebe2d260684cd3e89b">getSegmentEnd</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> segmentEndVertexIndex(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& loc);</div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *currentLine;</div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vertexIndex;</div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> componentIndex;</div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linear;</div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numLines;</div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">void</span> loadCurrentLine();</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="comment">// Declare type as noncopyable</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a632426abb87d5f3cc4b6c5fb23da7932">LinearIterator</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>& other);</div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>& operator=(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>& rhs);</div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span> };</div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }} <span class="comment">// namespace geos::linearref</span></div> <div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#endif // GEOS_LINEARREF_LINEARITERATOR_H</span></div> <div class="ttc" id="classgeos_1_1geom_1_1Coordinate_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Coordinate.html">geos::geom::Coordinate</a></div><div class="ttdoc">Coordinate is the lightweight class used to store coordinates. </div><div class="ttdef"><b>Definition:</b> Coordinate.h:60</div></div> <div class="ttc" id="classgeos_1_1geom_1_1Geometry_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html">geos::geom::Geometry</a></div><div class="ttdoc">Basic implementation of Geometry, constructed and destructed by GeometryFactory. </div><div class="ttdef"><b>Definition:</b> Geometry.h:167</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_af71966c14f6a7ede1157c18a001a0af1"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#af71966c14f6a7ede1157c18a001a0af1">geos::linearref::LinearIterator::next</a></div><div class="ttdeci">void next()</div></div> <div class="ttc" id="classgeos_1_1geom_1_1LineString_html"><div class="ttname"><a href="classgeos_1_1geom_1_1LineString.html">geos::geom::LineString</a></div><div class="ttdef"><b>Definition:</b> LineString.h:70</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html">geos::linearref::LinearLocation</a></div><div class="ttdoc">Represents a location along a LineString or MultiLineString. </div><div class="ttdef"><b>Definition:</b> LinearLocation.h:43</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a3568ac2c513902a45d8fcd700adb8904"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a3568ac2c513902a45d8fcd700adb8904">geos::linearref::LinearIterator::hasNext</a></div><div class="ttdeci">bool hasNext() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a6db3e2de613348d7fb28e26b288cb80a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a6db3e2de613348d7fb28e26b288cb80a">geos::linearref::LinearIterator::isEndOfLine</a></div><div class="ttdeci">bool isEndOfLine() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_afa14565649421758be3d65ca32f8c77c"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#afa14565649421758be3d65ca32f8c77c">geos::linearref::LinearIterator::getLine</a></div><div class="ttdeci">const geom::LineString * getLine() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a522ea6c160629baa7f16ad749557458c"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a522ea6c160629baa7f16ad749557458c">geos::linearref::LinearIterator::getComponentIndex</a></div><div class="ttdeci">unsigned int getComponentIndex() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_ae7f4aa8654c964c9ce6db428029381a7"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#ae7f4aa8654c964c9ce6db428029381a7">geos::linearref::LinearIterator::getVertexIndex</a></div><div class="ttdeci">unsigned int getVertexIndex() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a90a909bbb22f34ebe2d260684cd3e89b"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a90a909bbb22f34ebe2d260684cd3e89b">geos::linearref::LinearIterator::getSegmentEnd</a></div><div class="ttdeci">geom::Coordinate getSegmentEnd() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_ad4fa921b57685e846277c1fdc10017f8"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#ad4fa921b57685e846277c1fdc10017f8">geos::linearref::LinearIterator::getSegmentStart</a></div><div class="ttdeci">geom::Coordinate getSegmentStart() const </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a632426abb87d5f3cc4b6c5fb23da7932"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a632426abb87d5f3cc4b6c5fb23da7932">geos::linearref::LinearIterator::LinearIterator</a></div><div class="ttdeci">LinearIterator(const geom::Geometry *linear)</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html">geos::linearref::LinearIterator</a></div><div class="ttdoc">An iterator over the components and coordinates of a linear geometry (LineString or MultiLineString)...</div><div class="ttdef"><b>Definition:</b> LinearIterator.h:50</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>