geos_390_docs/classgeos_1_1noding_1_1Segm...

237 lines
14 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: geos::noding::SegmentIntersector Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1noding.html">noding</a></li><li class="navelem"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classgeos_1_1noding_1_1SegmentIntersector-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::noding::SegmentIntersector Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Processes possible intersections detected by a <a class="el" href="classgeos_1_1noding_1_1Noder.html" title="Computes all intersections between segments in a set of SegmentString. ">Noder</a>.
<a href="classgeos_1_1noding_1_1SegmentIntersector.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="noding_2SegmentIntersector_8h_source.html">SegmentIntersector.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for geos::noding::SegmentIntersector:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1noding_1_1SegmentIntersector__inherit__graph.svg" width="542" height="395"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab37c13c8ccf0a75ad60df76fab4e4175"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#ab37c13c8ccf0a75ad60df76fab4e4175">processIntersections</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e0, size_t segIndex0, <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e1, size_t segIndex1)=0</td></tr>
<tr class="separator:ab37c13c8ccf0a75ad60df76fab4e4175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2402e2ce3a39edad9f5d283be73b5d1d"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#a2402e2ce3a39edad9f5d283be73b5d1d">isDone</a> () const </td></tr>
<tr class="memdesc:a2402e2ce3a39edad9f5d283be73b5d1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether the client of this class needs to continue testing all intersections in an arrangement. <a href="#a2402e2ce3a39edad9f5d283be73b5d1d">More...</a><br /></td></tr>
<tr class="separator:a2402e2ce3a39edad9f5d283be73b5d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaed578d309e9cc6816f532a12e6019e"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#abaed578d309e9cc6816f532a12e6019e">~SegmentIntersector</a> ()</td></tr>
<tr class="separator:abaed578d309e9cc6816f532a12e6019e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aad5d64d5214d60e5e867379dc7d9c9ea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#aad5d64d5214d60e5e867379dc7d9c9ea">SegmentIntersector</a> ()</td></tr>
<tr class="separator:aad5d64d5214d60e5e867379dc7d9c9ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Processes possible intersections detected by a <a class="el" href="classgeos_1_1noding_1_1Noder.html" title="Computes all intersections between segments in a set of SegmentString. ">Noder</a>. </p>
<p>The <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html" title="Processes possible intersections detected by a Noder. ">SegmentIntersector</a> is passed to a <a class="el" href="classgeos_1_1noding_1_1Noder.html" title="Computes all intersections between segments in a set of SegmentString. ">Noder</a>. The addIntersections method is called whenever the <a class="el" href="classgeos_1_1noding_1_1Noder.html" title="Computes all intersections between segments in a set of SegmentString. ">Noder</a> detects that two SegmentStrings <em>might</em> intersect. This class may be used either to find all intersections, or to detect the presence of an intersection. In the latter case, Noders may choose to short-circuit their computation by calling the isDone method. This class is an example of the <em>Strategy</em> pattern.</p>
<dl class="section version"><dt>Version</dt><dd>1.7 </dd></dl>
<p>Definition at line <a class="el" href="noding_2SegmentIntersector_8h_source.html#l00048">48</a> of file <a class="el" href="noding_2SegmentIntersector_8h_source.html">noding/SegmentIntersector.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abaed578d309e9cc6816f532a12e6019e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual geos::noding::SegmentIntersector::~SegmentIntersector </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="noding_2SegmentIntersector_8h_source.html#l00078">78</a> of file <a class="el" href="noding_2SegmentIntersector_8h_source.html">noding/SegmentIntersector.h</a>.</p>
</div>
</div>
<a class="anchor" id="aad5d64d5214d60e5e867379dc7d9c9ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::noding::SegmentIntersector::SegmentIntersector </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="noding_2SegmentIntersector_8h_source.html#l00083">83</a> of file <a class="el" href="noding_2SegmentIntersector_8h_source.html">noding/SegmentIntersector.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a2402e2ce3a39edad9f5d283be73b5d1d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool geos::noding::SegmentIntersector::isDone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reports whether the client of this class needs to continue testing all intersections in an arrangement. </p>
<dl class="section return"><dt>Returns</dt><dd>true if there is not need to continue testing segments</dd></dl>
<p>The default implementation always return false (process all intersections). </p>
<p>Reimplemented in <a class="el" href="classgeos_1_1noding_1_1IntersectionAdder.html#a7628f2135fca2b67837ccb1169d5b95a">geos::noding::IntersectionAdder</a>, <a class="el" href="classgeos_1_1noding_1_1NodingIntersectionFinder.html#a744dce6eb5a0b401f8b08e90dcf2b66f">geos::noding::NodingIntersectionFinder</a>, <a class="el" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#a2c0d1bc0b9f34788419661eb950cbe50">geos::noding::SegmentIntersectionDetector</a>, <a class="el" href="classgeos_1_1noding_1_1snapround_1_1SnapRoundingIntersectionAdder.html#a46913b592e89d6c6693ff0105c6250d2">geos::noding::snapround::SnapRoundingIntersectionAdder</a>, <a class="el" href="classgeos_1_1noding_1_1IntersectionFinderAdder.html#ad30ccb6dc1b79a0e19365d3622e86426">geos::noding::IntersectionFinderAdder</a>, and <a class="el" href="classgeos_1_1noding_1_1snap_1_1SnappingIntersectionAdder.html#a8c67ed72b4c3a5f52a54b276d7b7771d">geos::noding::snap::SnappingIntersectionAdder</a>.</p>
<p>Definition at line <a class="el" href="noding_2SegmentIntersector_8h_source.html#l00072">72</a> of file <a class="el" href="noding_2SegmentIntersector_8h_source.html">noding/SegmentIntersector.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab37c13c8ccf0a75ad60df76fab4e4175"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void geos::noding::SegmentIntersector::processIntersections </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *&#160;</td>
<td class="paramname"><em>e0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>segIndex0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *&#160;</td>
<td class="paramname"><em>e1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>segIndex1</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method is called by clients of the <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html" title="Processes possible intersections detected by a Noder. ">SegmentIntersector</a> interface to process intersections for two segments of the SegmentStrings being intersected. </p>
<p>Implemented in <a class="el" href="classgeos_1_1noding_1_1IntersectionAdder.html#a26dbd8ecc9501c2092a09bfea2dc2f8c">geos::noding::IntersectionAdder</a>, <a class="el" href="classgeos_1_1noding_1_1SegmentIntersectionDetector.html#aa7ab630428e9c06500be34a706726495">geos::noding::SegmentIntersectionDetector</a>, <a class="el" href="classgeos_1_1noding_1_1NodingIntersectionFinder.html#a616d08c60818f511e2461f8bcbeef250">geos::noding::NodingIntersectionFinder</a>, <a class="el" href="classgeos_1_1noding_1_1snapround_1_1SnapRoundingIntersectionAdder.html#abe71f1c3b90735618af19808d8715116">geos::noding::snapround::SnapRoundingIntersectionAdder</a>, <a class="el" href="classgeos_1_1noding_1_1snap_1_1SnappingIntersectionAdder.html#ae15f748ce7cc8c20f8b4237ebdac911f">geos::noding::snap::SnappingIntersectionAdder</a>, and <a class="el" href="classgeos_1_1noding_1_1IntersectionFinderAdder.html#ac4d4d69dfaa0ef6706af8a4bbec1c7e3">geos::noding::IntersectionFinderAdder</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="noding_2SegmentIntersector_8h_source.html">noding/SegmentIntersector.h</a></li>
</ul>
</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>