Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5035839f674c88dea1f7928a86fbdc64 > files > 513

geos-devel-3.2.1-3.fc14.x86_64.rpm

<!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"/>
<title>GEOS: LinearIterator.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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 class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>LinearIterator.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/**********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * $Id: LinearIterator.h 2809 2009-12-06 01:05:24Z mloskot $</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * GEOS - Geometry Engine Open Source</span>
<a name="l00005"></a>00005 <span class="comment"> * http://geos.refractions.net</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span>
<a name="l00008"></a>00008 <span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This is free software; you can redistribute and/or modify it under</span>
<a name="l00011"></a>00011 <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span>
<a name="l00012"></a>00012 <span class="comment"> * by the Free Software Foundation.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the COPYING file for more information.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> **********************************************************************</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * Last port: linearref/LinearIterator.java rev. 1.10</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> **********************************************************************/</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef GEOS_LINEARREF_LINEARITERATOR_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define GEOS_LINEARREF_LINEARITERATOR_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;geos/geom/Coordinate.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;geos/geom/Geometry.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;geos/geom/LineSegment.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;geos/linearref/LinearLocation.h&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>geos { <span class="keyword">namespace </span>linearref
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 
<a name="l00051"></a><a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">00051</a> <span class="keyword">class </span><a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00059"></a>00059         <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" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">geom::Geometry</a> *linear);
<a name="l00060"></a>00060 
<a name="l00068"></a>00068         <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" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">geom::Geometry</a> *linear, <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html" title="Represents a location along a LineString or MultiLineString.">LinearLocation</a>&amp; start);
<a name="l00069"></a>00069 
<a name="l00078"></a>00078         <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" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">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);
<a name="l00079"></a>00079 
<a name="l00084"></a>00084         <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a3568ac2c513902a45d8fcd700adb8904">hasNext</a>() <span class="keyword">const</span>;
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00090"></a>00090         <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#af71966c14f6a7ede1157c18a001a0af1">next</a>();
<a name="l00091"></a>00091 
<a name="l00098"></a>00098         <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a6db3e2de613348d7fb28e26b288cb80a">isEndOfLine</a>() <span class="keyword">const</span>;
<a name="l00099"></a>00099 
<a name="l00104"></a>00104         <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>;
<a name="l00105"></a>00105 
<a name="l00110"></a>00110         <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>;
<a name="l00111"></a>00111 
<a name="l00116"></a>00116         <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1LineString.html" title="Basic implementation of LineString.">geom::LineString</a>* <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#afa14565649421758be3d65ca32f8c77c">getLine</a>() <span class="keyword">const</span>;
<a name="l00117"></a>00117 
<a name="l00123"></a>00123         <a class="code" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#ad4fa921b57685e846277c1fdc10017f8">getSegmentStart</a>() <span class="keyword">const</span>;
<a name="l00124"></a>00124 
<a name="l00132"></a>00132         <a class="code" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html#a90a909bbb22f34ebe2d260684cd3e89b">getSegmentEnd</a>() <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="keyword">private</span>:
<a name="l00135"></a>00135 
<a name="l00136"></a>00136         <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" title="Represents a location along a LineString or MultiLineString.">LinearLocation</a>&amp; loc);
<a name="l00137"></a>00137 
<a name="l00138"></a>00138         <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1LineString.html" title="Basic implementation of LineString.">geom::LineString</a> *currentLine;
<a name="l00139"></a>00139         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vertexIndex;
<a name="l00140"></a>00140         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> componentIndex;
<a name="l00141"></a>00141         <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">geom::Geometry</a> *linear;
<a name="l00142"></a>00142         <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numLines;
<a name="l00143"></a>00143 
<a name="l00147"></a>00147         <span class="keywordtype">void</span> loadCurrentLine();
<a name="l00148"></a>00148 
<a name="l00149"></a>00149     <span class="comment">// Declare type as noncopyable</span>
<a name="l00150"></a>00150     <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>&amp; other);
<a name="l00151"></a>00151     <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearIterator.html">LinearIterator</a>&amp; rhs);
<a name="l00152"></a>00152 };
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 }} <span class="comment">// namespace geos::linearref</span>
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="preprocessor">#endif // GEOS_LINEARREF_LINEARITERATOR_H</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>