geos_390_docs/IntersectionAdder_8h_source...

94 lines
38 KiB
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.11"/>
<title>GEOS: IntersectionAdder.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_45d6d9d02973e76e5a8f8dc6273892cb.html">noding</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">IntersectionAdder.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="IntersectionAdder_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) 2006 Refractions Research Inc.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</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"> * Last port: noding/IntersectionAdder.java rev. 1.6 (JTS-1.9)</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</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;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GEOS_NODING_INTERSECTIONADDER_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GEOS_NODING_INTERSECTIONADDER_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="export_8h.html">geos/export.h</a>&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span> <span class="comment">// for abs()</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="inline_8h.html">geos/inline.h</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</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="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="noding_2SegmentIntersector_8h.html">geos/noding/SegmentIntersector.h</a>&gt;</span> <span class="comment">// for inheritance</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// Forward declarations</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span>noding {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">class </span>SegmentString;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;}</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">namespace </span>algorithm {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">class </span>LineIntersector;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;}</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;}</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">namespace </span>noding { <span class="comment">// geos.noding</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html"> 57</a></span>&#160;<span class="keyword">class </span><a class="code" href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html">IntersectionAdder</a>: <span class="keyword">public</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a09085352629b26478b7f23a002b20a9f"> 65</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a09085352629b26478b7f23a002b20a9f">hasIntersectionVar</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#aee12520745bd75fb021d44c2893a2f30"> 66</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#aee12520745bd75fb021d44c2893a2f30">hasProper</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a8a6fbde0619a02b61e552ec27912bd0e"> 67</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a8a6fbde0619a02b61e552ec27912bd0e">hasProperInterior</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a549e1a30ce5877a52ed592e69b95de4c"> 68</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a549e1a30ce5877a52ed592e69b95de4c">hasInterior</a>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="comment">// the proper intersection point found</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a4ff685e031eb3b908503f316124bcaaa"> 71</a></span>&#160; <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a4ff685e031eb3b908503f316124bcaaa">properIntersectionPoint</a>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a0be21628b72da86ccd6255c9ed99016f"> 73</a></span>&#160; <a class="code" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a>&amp; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a0be21628b72da86ccd6255c9ed99016f">li</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="comment">// bool isSelfIntersection;</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="comment">// bool intersectionFound;</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">bool</span> isTrivialIntersection(<span class="keyword">const</span> <a class="code" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>* e0, <span class="keywordtype">size_t</span> segIndex0,</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>* e1, <span class="keywordtype">size_t</span> segIndex1);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="comment">// Declare type as noncopyable</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html">IntersectionAdder</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html">IntersectionAdder</a>&amp; other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html">IntersectionAdder</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html">IntersectionAdder</a>&amp; rhs) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a496dabe962092df690ac70afbe69c9fe"> 92</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a496dabe962092df690ac70afbe69c9fe">numIntersections</a>;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#ab075115ac08a8665d94ddabb73008640"> 93</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#ab075115ac08a8665d94ddabb73008640">numInteriorIntersections</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a3da93f0736166f59a1a14bd8e20240fb"> 94</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a3da93f0736166f59a1a14bd8e20240fb">numProperIntersections</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="comment">// testing only</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a3ca6ef03f448f707e9fb8cdbb652a8bc"> 97</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a3ca6ef03f448f707e9fb8cdbb652a8bc">numTests</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a2261aabc8f21db65c3c6dda7e245c955"> 99</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a2261aabc8f21db65c3c6dda7e245c955">IntersectionAdder</a>(<a class="code" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a>&amp; newLi)</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; :</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; hasIntersectionVar(false),</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; hasProper(false),</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; hasProperInterior(false),</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; hasInterior(false),</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; properIntersectionPoint(),</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; li(newLi),</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; numIntersections(0),</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; numInteriorIntersections(0),</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; numProperIntersections(0),</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; numTests(0)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; {}</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a>&amp;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a4f9b105d999b63621d1856e425f98655"> 114</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a4f9b105d999b63621d1856e425f98655">getLineIntersector</a>()</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">return</span> li;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp;</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a498656c55fb638a303a02b20b688cbc7"> 124</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a498656c55fb638a303a02b20b688cbc7">getProperIntersectionPoint</a>()</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> properIntersectionPoint;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#aa24647fa6f90433ae81c8109beddc829"> 130</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#aa24647fa6f90433ae81c8109beddc829">hasIntersection</a>()</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">return</span> hasIntersectionVar;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a97e082438a0ca42ab804b7d061a752d3"> 145</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a97e082438a0ca42ab804b7d061a752d3">hasProperIntersection</a>()</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">return</span> hasProper;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a7226f13f231d0a496f0286a42d9e1ea4"> 155</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a7226f13f231d0a496f0286a42d9e1ea4">hasProperInteriorIntersection</a>()</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">return</span> hasProperInterior;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; }</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a1b2affb36276fc054692f90196204377"> 165</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a1b2affb36276fc054692f90196204377">hasInteriorIntersection</a>()</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">return</span> hasInterior;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordtype">void</span> processIntersections(</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>* e0, <span class="keywordtype">size_t</span> segIndex0,</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>* e1, <span class="keywordtype">size_t</span> segIndex1) <span class="keyword">override</span>;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span></div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a94a898bf97e5b79b7199c0f21c9a5bae"> 185</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a94a898bf97e5b79b7199c0f21c9a5bae">isAdjacentSegments</a>(<span class="keywordtype">size_t</span> i1, <span class="keywordtype">size_t</span> i2)</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keywordflow">return</span> (i1 &gt; i2 ? i1 - i2 : i2 - i1) == 1;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; }</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1IntersectionAdder.html#a7628f2135fca2b67837ccb1169d5b95a"> 196</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1IntersectionAdder.html#a7628f2135fca2b67837ccb1169d5b95a">isDone</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;};</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;} <span class="comment">// namespace geos.noding</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;} <span class="comment">// namespace geos</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="preprocessor">#endif // GEOS_NODING_INTERSECTIONADDER_H</span></div><div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a97e082438a0ca42ab804b7d061a752d3"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a97e082438a0ca42ab804b7d061a752d3">geos::noding::IntersectionAdder::hasProperIntersection</a></div><div class="ttdeci">bool hasProperIntersection()</div><div class="ttdoc">A proper intersection is an intersection which is interior to at least two line segments. </div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00145">IntersectionAdder.h:145</a></div></div>
<div class="ttc" id="export_8h_html_ae36df939090171f6e9a28a8cb6254fea"><div class="ttname"><a href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a></div><div class="ttdeci">#define GEOS_DLL</div><div class="ttdef"><b>Definition:</b> <a href="export_8h_source.html#l00028">export.h:28</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a549e1a30ce5877a52ed592e69b95de4c"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a549e1a30ce5877a52ed592e69b95de4c">geos::noding::IntersectionAdder::hasInterior</a></div><div class="ttdeci">bool hasInterior</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00068">IntersectionAdder.h:68</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a8a6fbde0619a02b61e552ec27912bd0e"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a8a6fbde0619a02b61e552ec27912bd0e">geos::noding::IntersectionAdder::hasProperInterior</a></div><div class="ttdeci">bool hasProperInterior</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00067">IntersectionAdder.h:67</a></div></div>
<div class="ttc" id="inline_8h_html"><div class="ttname"><a href="inline_8h.html">inline.h</a></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="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentString_html"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentString.html">geos::noding::SegmentString</a></div><div class="ttdoc">An interface for classes which represent a sequence of contiguous line segments. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentString_8h_source.html#l00046">SegmentString.h:46</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a09085352629b26478b7f23a002b20a9f"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a09085352629b26478b7f23a002b20a9f">geos::noding::IntersectionAdder::hasIntersectionVar</a></div><div class="ttdeci">bool hasIntersectionVar</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00065">IntersectionAdder.h:65</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a1b2affb36276fc054692f90196204377"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a1b2affb36276fc054692f90196204377">geos::noding::IntersectionAdder::hasInteriorIntersection</a></div><div class="ttdeci">bool hasInteriorIntersection()</div><div class="ttdoc">An interior intersection is an intersection which is in the interior of some segment. </div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00165">IntersectionAdder.h:165</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a3da93f0736166f59a1a14bd8e20240fb"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a3da93f0736166f59a1a14bd8e20240fb">geos::noding::IntersectionAdder::numProperIntersections</a></div><div class="ttdeci">int numProperIntersections</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00094">IntersectionAdder.h:94</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_aee12520745bd75fb021d44c2893a2f30"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#aee12520745bd75fb021d44c2893a2f30">geos::noding::IntersectionAdder::hasProper</a></div><div class="ttdeci">bool hasProper</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00066">IntersectionAdder.h:66</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a498656c55fb638a303a02b20b688cbc7"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a498656c55fb638a303a02b20b688cbc7">geos::noding::IntersectionAdder::getProperIntersectionPoint</a></div><div class="ttdeci">const geom::Coordinate &amp; getProperIntersectionPoint()</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00124">IntersectionAdder.h:124</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a3ca6ef03f448f707e9fb8cdbb652a8bc"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a3ca6ef03f448f707e9fb8cdbb652a8bc">geos::noding::IntersectionAdder::numTests</a></div><div class="ttdeci">int numTests</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00097">IntersectionAdder.h:97</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a0be21628b72da86ccd6255c9ed99016f"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a0be21628b72da86ccd6255c9ed99016f">geos::noding::IntersectionAdder::li</a></div><div class="ttdeci">algorithm::LineIntersector &amp; li</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00073">IntersectionAdder.h:73</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a7628f2135fca2b67837ccb1169d5b95a"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a7628f2135fca2b67837ccb1169d5b95a">geos::noding::IntersectionAdder::isDone</a></div><div class="ttdeci">bool isDone() const override</div><div class="ttdoc">Always process all intersections. </div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00196">IntersectionAdder.h:196</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_ab075115ac08a8665d94ddabb73008640"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#ab075115ac08a8665d94ddabb73008640">geos::noding::IntersectionAdder::numInteriorIntersections</a></div><div class="ttdeci">int numInteriorIntersections</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00093">IntersectionAdder.h:93</a></div></div>
<div class="ttc" id="classgeos_1_1algorithm_1_1LineIntersector_html"><div class="ttname"><a href="classgeos_1_1algorithm_1_1LineIntersector.html">geos::algorithm::LineIntersector</a></div><div class="ttdoc">A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...</div><div class="ttdef"><b>Definition:</b> <a href="LineIntersector_8h_source.html#l00049">LineIntersector.h:49</a></div></div>
<div class="ttc" id="noding_2SegmentIntersector_8h_html"><div class="ttname"><a href="noding_2SegmentIntersector_8h.html">SegmentIntersector.h</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html">geos::noding::IntersectionAdder</a></div><div class="ttdoc">Computes the intersections between two line segments in SegmentString and adds them to each string...</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00057">IntersectionAdder.h:57</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a4f9b105d999b63621d1856e425f98655"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a4f9b105d999b63621d1856e425f98655">geos::noding::IntersectionAdder::getLineIntersector</a></div><div class="ttdeci">algorithm::LineIntersector &amp; getLineIntersector()</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00114">IntersectionAdder.h:114</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a496dabe962092df690ac70afbe69c9fe"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a496dabe962092df690ac70afbe69c9fe">geos::noding::IntersectionAdder::numIntersections</a></div><div class="ttdeci">int numIntersections</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00092">IntersectionAdder.h:92</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a2261aabc8f21db65c3c6dda7e245c955"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a2261aabc8f21db65c3c6dda7e245c955">geos::noding::IntersectionAdder::IntersectionAdder</a></div><div class="ttdeci">IntersectionAdder(algorithm::LineIntersector &amp;newLi)</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00099">IntersectionAdder.h:99</a></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_1noding_1_1SegmentIntersector_html"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersector.html">geos::noding::SegmentIntersector</a></div><div class="ttdoc">Processes possible intersections detected by a Noder. </div><div class="ttdef"><b>Definition:</b> <a href="noding_2SegmentIntersector_8h_source.html#l00048">noding/SegmentIntersector.h:48</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a7226f13f231d0a496f0286a42d9e1ea4"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a7226f13f231d0a496f0286a42d9e1ea4">geos::noding::IntersectionAdder::hasProperInteriorIntersection</a></div><div class="ttdeci">bool hasProperInteriorIntersection()</div><div class="ttdoc">A proper interior intersection is a proper intersection which is not contained in the set of boundary...</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00155">IntersectionAdder.h:155</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_aa24647fa6f90433ae81c8109beddc829"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#aa24647fa6f90433ae81c8109beddc829">geos::noding::IntersectionAdder::hasIntersection</a></div><div class="ttdeci">bool hasIntersection()</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00130">IntersectionAdder.h:130</a></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_1noding_1_1IntersectionAdder_html_a4ff685e031eb3b908503f316124bcaaa"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a4ff685e031eb3b908503f316124bcaaa">geos::noding::IntersectionAdder::properIntersectionPoint</a></div><div class="ttdeci">geom::Coordinate properIntersectionPoint</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00071">IntersectionAdder.h:71</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1IntersectionAdder_html_a94a898bf97e5b79b7199c0f21c9a5bae"><div class="ttname"><a href="classgeos_1_1noding_1_1IntersectionAdder.html#a94a898bf97e5b79b7199c0f21c9a5bae">geos::noding::IntersectionAdder::isAdjacentSegments</a></div><div class="ttdeci">static bool isAdjacentSegments(size_t i1, size_t i2)</div><div class="ttdef"><b>Definition:</b> <a href="IntersectionAdder_8h_source.html#l00185">IntersectionAdder.h:185</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>