geos_390_docs/SegmentIntersectionDetector...

96 lines
39 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: SegmentIntersectionDetector.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">SegmentIntersectionDetector.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="SegmentIntersectionDetector_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;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#ifndef GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#define GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H</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">#include &lt;cstddef&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="noding_2SegmentIntersector_8h.html">geos/noding/SegmentIntersector.h</a>&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LineIntersector_8h.html">geos/algorithm/LineIntersector.h</a>&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</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="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="CoordinateArraySequence_8h.html">geos/geom/CoordinateArraySequence.h</a>&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="SegmentString_8h.html">geos/noding/SegmentString.h</a>&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span>noding { <span class="comment">// geos::noding</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html"> 42</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html">SegmentIntersectionDetector</a> : <span class="keyword">public</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7f4f76c25c8ae557c23a8032cce05dd"> 44</a></span>&#160; <a class="code" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a>* <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7f4f76c25c8ae557c23a8032cce05dd">li</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2589988631b7f8ad3c18f5c7f47e691a"> 46</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2589988631b7f8ad3c18f5c7f47e691a">findProper</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2a5c04756b0d94cc1234adea4a1e3af9"> 47</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2a5c04756b0d94cc1234adea4a1e3af9">findAllTypes</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#acf83a07183f54e653fe563a7f22b83f0"> 49</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#acf83a07183f54e653fe563a7f22b83f0">_hasIntersection</a>;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad7b5cde62e042ed9914552aafd204dbf"> 50</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad7b5cde62e042ed9914552aafd204dbf">_hasProperIntersection</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ac94658546e862fe0a43c946c4bc0db2f"> 51</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ac94658546e862fe0a43c946c4bc0db2f">_hasNonProperIntersection</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a617107e28a1256ed9f0eb0d0f95d792d"> 53</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>* <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a617107e28a1256ed9f0eb0d0f95d792d">intPt</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a4ade0e1ea9895decf8a1a101d3a3364a"> 54</a></span>&#160; <a class="code" href="classgeos_1_1geom_1_1CoordinateArraySequence.html">geom::CoordinateArraySequence</a>* <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a4ade0e1ea9895decf8a1a101d3a3364a">intSegments</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad6e3f17c5da08d28e5bd9931d0fd6a13"> 58</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad6e3f17c5da08d28e5bd9931d0fd6a13">SegmentIntersectionDetector</a>(<a class="code" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a>* p_li)</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; :</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; li(p_li),</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; findProper(false),</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; findAllTypes(false),</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; _hasIntersection(false),</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; _hasProperIntersection(false),</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; _hasNonProperIntersection(false),</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; intPt(nullptr),</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; intSegments(nullptr)</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; { }</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"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a3e56f65f5a2bf3e8de528e14b676402f"> 70</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a3e56f65f5a2bf3e8de528e14b676402f">~SegmentIntersectionDetector</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="comment">//delete intPt;</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">delete</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a4ade0e1ea9895decf8a1a101d3a3364a">intSegments</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#af9c16b9b6ae284e5657d286c2d351b7c"> 78</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#af9c16b9b6ae284e5657d286c2d351b7c">setFindProper</a>(<span class="keywordtype">bool</span> p_findProper)</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; this-&gt;findProper = p_findProper;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a800cecfbc863f687752665a7ca2a4dfa"> 84</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a800cecfbc863f687752665a7ca2a4dfa">setFindAllIntersectionTypes</a>(<span class="keywordtype">bool</span> p_findAllTypes)</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; this-&gt;findAllTypes = p_findAllTypes;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#adb04288ed28b12593d58f0d767ec9064"> 95</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#adb04288ed28b12593d58f0d767ec9064">hasIntersection</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#acf83a07183f54e653fe563a7f22b83f0">_hasIntersection</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"> 99</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a506450066c5a2897ca109c269c47fd89"> 106</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a506450066c5a2897ca109c269c47fd89">hasProperIntersection</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad7b5cde62e042ed9914552aafd204dbf">_hasProperIntersection</a>;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7542ef3ed118313eabce3a8ddf766ed"> 117</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7542ef3ed118313eabce3a8ddf766ed">hasNonProperIntersection</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ac94658546e862fe0a43c946c4bc0db2f">_hasNonProperIntersection</a>;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>*</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a613decc3353c89436107dcac49d97b5d"> 129</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a613decc3353c89436107dcac49d97b5d">getIntersection</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a617107e28a1256ed9f0eb0d0f95d792d">intPt</a>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; }</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="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>*</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a378dc2d15f6a4f759daf5d9b32e5f259"> 141</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a378dc2d15f6a4f759daf5d9b32e5f259">getIntersectionSegments</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a4ade0e1ea9895decf8a1a101d3a3364a">intSegments</a>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; }</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2c0d1bc0b9f34788419661eb950cbe50"> 147</a></span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2c0d1bc0b9f34788419661eb950cbe50">isDone</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// If finding all types, we can stop</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="comment">// when both possible types have been found.</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">if</span>(findAllTypes) {</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordflow">return</span> _hasProperIntersection &amp;&amp; <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ac94658546e862fe0a43c946c4bc0db2f">_hasNonProperIntersection</a>;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="comment">// If searching for a proper intersection, only stop if one is found</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">if</span>(findProper) {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad7b5cde62e042ed9914552aafd204dbf">_hasProperIntersection</a>;</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="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#acf83a07183f54e653fe563a7f22b83f0">_hasIntersection</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7ab630428e9c06500be34a706726495">processIntersections</a>(<a class="code" href="classgeos_1_1noding_1_1SegmentString.html">noding::SegmentString</a>* e0, <span class="keywordtype">size_t</span> segIndex0,</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="classgeos_1_1noding_1_1SegmentString.html">noding::SegmentString</a>* e1, <span class="keywordtype">size_t</span> segIndex1) <span class="keyword">override</span>;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;};</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;} <span class="comment">// namespace geos::noding</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;} <span class="comment">// namespace geos</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="preprocessor">#endif // GEOS_GEOM_PREP_SEGMENTINTERSECTIONDETECTOR_H</span></div><div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_af9c16b9b6ae284e5657d286c2d351b7c"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#af9c16b9b6ae284e5657d286c2d351b7c">geos::noding::SegmentIntersectionDetector::setFindProper</a></div><div class="ttdeci">void setFindProper(bool p_findProper)</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00078">SegmentIntersectionDetector.h:78</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html">geos::noding::SegmentIntersectionDetector</a></div><div class="ttdoc">Detects and records an intersection between two SegmentStrings, if one exists. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00042">SegmentIntersectionDetector.h:42</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1CoordinateArraySequence_html"><div class="ttname"><a href="classgeos_1_1geom_1_1CoordinateArraySequence.html">geos::geom::CoordinateArraySequence</a></div><div class="ttdoc">The default implementation of CoordinateSequence. </div><div class="ttdef"><b>Definition:</b> <a href="CoordinateArraySequence_8h_source.html#l00037">CoordinateArraySequence.h:37</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a2a5c04756b0d94cc1234adea4a1e3af9"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2a5c04756b0d94cc1234adea4a1e3af9">geos::noding::SegmentIntersectionDetector::findAllTypes</a></div><div class="ttdeci">bool findAllTypes</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00047">SegmentIntersectionDetector.h:47</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="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_acf83a07183f54e653fe563a7f22b83f0"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#acf83a07183f54e653fe563a7f22b83f0">geos::noding::SegmentIntersectionDetector::_hasIntersection</a></div><div class="ttdeci">bool _hasIntersection</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00049">SegmentIntersectionDetector.h:49</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_1SegmentIntersectionDetector_html_ac94658546e862fe0a43c946c4bc0db2f"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ac94658546e862fe0a43c946c4bc0db2f">geos::noding::SegmentIntersectionDetector::_hasNonProperIntersection</a></div><div class="ttdeci">bool _hasNonProperIntersection</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00051">SegmentIntersectionDetector.h:51</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_aa7542ef3ed118313eabce3a8ddf766ed"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7542ef3ed118313eabce3a8ddf766ed">geos::noding::SegmentIntersectionDetector::hasNonProperIntersection</a></div><div class="ttdeci">bool hasNonProperIntersection() const </div><div class="ttdoc">Tests whether a non-proper intersection was found. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00117">SegmentIntersectionDetector.h:117</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_ad6e3f17c5da08d28e5bd9931d0fd6a13"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad6e3f17c5da08d28e5bd9931d0fd6a13">geos::noding::SegmentIntersectionDetector::SegmentIntersectionDetector</a></div><div class="ttdeci">SegmentIntersectionDetector(algorithm::LineIntersector *p_li)</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00058">SegmentIntersectionDetector.h:58</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a3e56f65f5a2bf3e8de528e14b676402f"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a3e56f65f5a2bf3e8de528e14b676402f">geos::noding::SegmentIntersectionDetector::~SegmentIntersectionDetector</a></div><div class="ttdeci">~SegmentIntersectionDetector() override</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00070">SegmentIntersectionDetector.h:70</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_1SegmentIntersectionDetector_html_a617107e28a1256ed9f0eb0d0f95d792d"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a617107e28a1256ed9f0eb0d0f95d792d">geos::noding::SegmentIntersectionDetector::intPt</a></div><div class="ttdeci">const geom::Coordinate * intPt</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00053">SegmentIntersectionDetector.h:53</a></div></div>
<div class="ttc" id="CoordinateArraySequence_8h_html"><div class="ttname"><a href="CoordinateArraySequence_8h.html">CoordinateArraySequence.h</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a613decc3353c89436107dcac49d97b5d"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a613decc3353c89436107dcac49d97b5d">geos::noding::SegmentIntersectionDetector::getIntersection</a></div><div class="ttdeci">const geom::Coordinate * getIntersection() const </div><div class="ttdoc">Gets the computed location of the intersection. Due to round-off, the location may not be exact...</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00129">SegmentIntersectionDetector.h:129</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_1SegmentIntersectionDetector_html_ad7b5cde62e042ed9914552aafd204dbf"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#ad7b5cde62e042ed9914552aafd204dbf">geos::noding::SegmentIntersectionDetector::_hasProperIntersection</a></div><div class="ttdeci">bool _hasProperIntersection</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00050">SegmentIntersectionDetector.h:50</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_aa7f4f76c25c8ae557c23a8032cce05dd"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7f4f76c25c8ae557c23a8032cce05dd">geos::noding::SegmentIntersectionDetector::li</a></div><div class="ttdeci">algorithm::LineIntersector * li</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00044">SegmentIntersectionDetector.h:44</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a378dc2d15f6a4f759daf5d9b32e5f259"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a378dc2d15f6a4f759daf5d9b32e5f259">geos::noding::SegmentIntersectionDetector::getIntersectionSegments</a></div><div class="ttdeci">const geom::CoordinateSequence * getIntersectionSegments() const </div><div class="ttdoc">Gets the endpoints of the intersecting segments. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00141">SegmentIntersectionDetector.h:141</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="LineIntersector_8h_html"><div class="ttname"><a href="LineIntersector_8h.html">LineIntersector.h</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a2589988631b7f8ad3c18f5c7f47e691a"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2589988631b7f8ad3c18f5c7f47e691a">geos::noding::SegmentIntersectionDetector::findProper</a></div><div class="ttdeci">bool findProper</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00046">SegmentIntersectionDetector.h:46</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1CoordinateSequence_html"><div class="ttname"><a href="classgeos_1_1geom_1_1CoordinateSequence.html">geos::geom::CoordinateSequence</a></div><div class="ttdoc">The internal representation of a list of coordinates inside a Geometry. </div><div class="ttdef"><b>Definition:</b> <a href="CoordinateSequence_8h_source.html#l00058">CoordinateSequence.h:58</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="SegmentString_8h_html"><div class="ttname"><a href="SegmentString_8h.html">SegmentString.h</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a2c0d1bc0b9f34788419661eb950cbe50"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2c0d1bc0b9f34788419661eb950cbe50">geos::noding::SegmentIntersectionDetector::isDone</a></div><div class="ttdeci">bool isDone() const override</div><div class="ttdoc">Reports whether the client of this class needs to continue testing all intersections in an arrangemen...</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00147">SegmentIntersectionDetector.h:147</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a4ade0e1ea9895decf8a1a101d3a3364a"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a4ade0e1ea9895decf8a1a101d3a3364a">geos::noding::SegmentIntersectionDetector::intSegments</a></div><div class="ttdeci">geom::CoordinateArraySequence * intSegments</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00054">SegmentIntersectionDetector.h:54</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a800cecfbc863f687752665a7ca2a4dfa"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a800cecfbc863f687752665a7ca2a4dfa">geos::noding::SegmentIntersectionDetector::setFindAllIntersectionTypes</a></div><div class="ttdeci">void setFindAllIntersectionTypes(bool p_findAllTypes)</div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00084">SegmentIntersectionDetector.h:84</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_adb04288ed28b12593d58f0d767ec9064"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#adb04288ed28b12593d58f0d767ec9064">geos::noding::SegmentIntersectionDetector::hasIntersection</a></div><div class="ttdeci">bool hasIntersection() const </div><div class="ttdoc">Tests whether an intersection was found. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00095">SegmentIntersectionDetector.h:95</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_a506450066c5a2897ca109c269c47fd89"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a506450066c5a2897ca109c269c47fd89">geos::noding::SegmentIntersectionDetector::hasProperIntersection</a></div><div class="ttdeci">bool hasProperIntersection() const </div><div class="ttdoc">Tests whether a proper intersection was found. </div><div class="ttdef"><b>Definition:</b> <a href="SegmentIntersectionDetector_8h_source.html#l00106">SegmentIntersectionDetector.h:106</a></div></div>
<div class="ttc" id="classgeos_1_1noding_1_1SegmentIntersectionDetector_html_aa7ab630428e9c06500be34a706726495"><div class="ttname"><a href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7ab630428e9c06500be34a706726495">geos::noding::SegmentIntersectionDetector::processIntersections</a></div><div class="ttdeci">void processIntersections(noding::SegmentString *e0, size_t segIndex0, noding::SegmentString *e1, size_t segIndex1) override</div><div class="ttdoc">This method is called by clients of the SegmentIntersector class to process intersections for two seg...</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>