geos_390_docs/LinearIterator_8h_source.html

91 lines
26 KiB
HTML
Raw Permalink Normal View History

2020-12-23 18:34:09 -08:00
<!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.11"/>
<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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<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="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&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_557b1f226c2ae37e53b1ff2907cf4831.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">
<a href="LinearIterator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> **********************************************************************</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * Last port: linearref/LinearIterator.java r463</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef GEOS_LINEARREF_LINEARITERATOR_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define GEOS_LINEARREF_LINEARITERATOR_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Coordinate_8h.html">geos/geom/Coordinate.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Geometry_8h.html">geos/geom/Geometry.h</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LineSegment_8h.html">geos/geom/LineSegment.h</a>&gt;</span></div><d
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a6770d7d44d312b7bc5d38294e577571d"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a6770d7d44d312b7bc5d38294e577571d">geos::linearref::LinearIterator::segmentEndVertexIndex</a></div><div class="ttdeci">static size_t segmentEndVertexIndex(const LinearLocation &amp;loc)</div></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> <a href="Coordinate_8h_source.html#l00060">Coordinate.h:60</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_af74adfda6c19dbe1ddcf15339daa834a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#af74adfda6c19dbe1ddcf15339daa834a">geos::linearref::LinearIterator::getVertexIndex</a></div><div class="ttdeci">size_t getVertexIndex() const </div><div class="ttdoc">The vertex index of the vertex the iterator is currently at. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a1866f7614d1dd934321d4804eb34c7ea"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a1866f7614d1dd934321d4804eb34c7ea">geos::linearref::LinearIterator::loadCurrentLine</a></div><div class="ttdeci">void loadCurrentLine()</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> <a href="Geometry_8h_source.html#l00188">Geometry.h:188</a></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 class="ttdoc">Moves the iterator ahead to the next vertex and (possibly) linear component. </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> <a href="LineString_8h_source.html#l00068">LineString.h:68</a></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> <a href="LinearLocation_8h_source.html#l00044">LinearLocation.h:44</a></div></div>
<div class="ttc" id="LineSegment_8h_html"><div class="ttname"><a href="LineSegment_8h.html">LineSegment.h</a></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 class="ttdoc">Tests whether there are any vertices left to iterator over. </div></div>
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></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 class="ttdoc">Checks whether the iterator cursor is pointing to the endpoint of a component geom::LineString. </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 class="ttdoc">Gets the geom::LineString component the iterator is current at. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a540a187054e143d404a4ddd8f0c3dda9"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a540a187054e143d404a4ddd8f0c3dda9">geos::linearref::LinearIterator::getComponentIndex</a></div><div class="ttdeci">size_t getComponentIndex() const </div><div class="ttdoc">The component index of the vertex the iterator is currently at. </div></div>
<div class="ttc" id="Coordinate_8h_html"><div class="ttname"><a href="Coordinate_8h.html">Coordinate.h</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_ae050428011dfe6f609b108e7193a63f9"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#ae050428011dfe6f609b108e7193a63f9">geos::linearref::LinearIterator::componentIndex</a></div><div class="ttdeci">size_t componentIndex</div><div class="ttdef"><b>Definition:</b> <a href="LinearIterator_8h_source.html#l00138">LinearIterator.h:138</a></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 class="ttdoc">Gets the second geom::Coordinate of the current segment. (the coordinate of the next vertex)...</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 class="ttdoc">Gets the first geom::Coordinate of the current segment. (the coordinate of the current vertex)...</div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_ae8471c2444655e2233bf383ec57cc7cd"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#ae8471c2444655e2233bf383ec57cc7cd">geos::linearref::LinearIterator::vertexIndex</a></div><div class="ttdeci">size_t vertexIndex</div><div class="ttdef"><b>Definition:</b> <a href="LinearIterator_8h_source.html#l00137">LinearIterator.h:137</a></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 class="ttdoc">Creates an iterator initialized to the start of a linear Geometry. </div></div>
<div class="ttc" id="LinearLocation_8h_html"><div class="ttname"><a href="LinearLocation_8h.html">LinearLocation.h</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a80a5765bf1d727fae7d675ed1451ac36"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a80a5765bf1d727fae7d675ed1451ac36">geos::linearref::LinearIterator::currentLine</a></div><div class="ttdeci">const geom::LineString * currentLine</div><div class="ttdef"><b>Definition:</b> <a href="LinearIterator_8h_source.html#l00136">LinearIterator.h:136</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_a2138e21b499134f0b72184e26b36c0d0"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#a2138e21b499134f0b72184e26b36c0d0">geos::linearref::LinearIterator::linear</a></div><div class="ttdeci">const geom::Geometry * linear</div><div class="ttdef"><b>Definition:</b> <a href="LinearIterator_8h_source.html#l00139">LinearIterator.h:139</a></div></div>
<div class="ttc" id="Geometry_8h_html"><div class="ttname"><a href="Geometry_8h.html">Geometry.h</a></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> <a href="LinearIterator_8h_source.html#l00050">LinearIterator.h:50</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearIterator_html_aed6ac2df6ce216691a769a33955865da"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearIterator.html#aed6ac2df6ce216691a769a33955865da">geos::linearref::LinearIterator::numLines</a></div><div class="ttdeci">const size_t numLines</div><div class="ttdef"><b>Definition:</b> <a href="LinearIterator_8h_source.html#l00140">LinearIterator.h:140</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>