<!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: geos::noding::SingleInteriorIntersectionFinder Class Reference</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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1noding.html">noding</a> </li> <li><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html">geos::noding::SingleInteriorIntersectionFinder</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::noding::SingleInteriorIntersectionFinder Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::noding::SingleInteriorIntersectionFinder" --><!-- doxytag: inherits="geos::noding::SegmentIntersector" --> <p>Finds an interior intersection in a set of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html" title="An interface for classes which represent a sequence of contiguous line segments.">SegmentString</a>, if one exists. Only the first intersection found is reported. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="SingleInteriorIntersectionFinder_8h_source.html">SingleInteriorIntersectionFinder.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::noding::SingleInteriorIntersectionFinder:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.png" usemap="#geos::noding::SingleInteriorIntersectionFinder_map" alt=""/> <map id="geos::noding::SingleInteriorIntersectionFinder_map" name="geos::noding::SingleInteriorIntersectionFinder_map"> <area href="classgeos_1_1noding_1_1SegmentIntersector.html" alt="geos::noding::SegmentIntersector" shape="rect" coords="0,0,266,24"/> </map> </div> <p><a href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#a6845e5980450325bf054ebc7fa80e199">SingleInteriorIntersectionFinder</a> (<a class="el" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a> &newLi)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an intersection finder which finds an interior intersection if one exists. <a href="#a6845e5980450325bf054ebc7fa80e199"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#af46577b39de46d28779c2eeb5597c4ed">hasIntersection</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Tests whether an intersection was found. <a href="#af46577b39de46d28779c2eeb5597c4ed"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#aeb5c05a21b8a392695fea4e837a9f07f">getInteriorIntersection</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the computed location of the intersection. Due to round-off, the location may not be exact. <a href="#aeb5c05a21b8a392695fea4e837a9f07f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const std::vector<br class="typebreak"/> < <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#ab34a94fb225c7f04bdc2b5692fe9408b">getIntersectionSegments</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the endpoints of the intersecting segments. <a href="#ab34a94fb225c7f04bdc2b5692fe9408b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#af819e151c6180d923696c1924d3dbcfa">processIntersections</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e0, int segIndex0, <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e1, int segIndex1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This method is called by clients of the <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> class to process intersections for two segments of the <a class="el" href="">SegmentStrings</a> being intersected. <a href="#af819e151c6180d923696c1924d3dbcfa"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SingleInteriorIntersectionFinder.html#a8932c1f2b238c29a2cc1865fe9c56d4f">isDone</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reports whether the client of this class needs to continue testing all intersections in an arrangement. <a href="#a8932c1f2b238c29a2cc1865fe9c56d4f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Finds an interior intersection in a set of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html" title="An interface for classes which represent a sequence of contiguous line segments.">SegmentString</a>, if one exists. Only the first intersection found is reported. </p> <dl class="version"><dt><b>Version:</b></dt><dd>1.7 </dd></dl> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a6845e5980450325bf054ebc7fa80e199"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::SingleInteriorIntersectionFinder" ref="a6845e5980450325bf054ebc7fa80e199" args="(algorithm::LineIntersector &newLi)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::noding::SingleInteriorIntersectionFinder::SingleInteriorIntersectionFinder </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1algorithm_1_1LineIntersector.html">algorithm::LineIntersector</a> & </td> <td class="paramname"> <em>newLi</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an intersection finder which finds an interior intersection if one exists. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>li</em> </td><td>the LineIntersector to use </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aeb5c05a21b8a392695fea4e837a9f07f"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::getInteriorIntersection" ref="aeb5c05a21b8a392695fea4e837a9f07f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& geos::noding::SingleInteriorIntersectionFinder::getInteriorIntersection </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the computed location of the intersection. Due to round-off, the location may not be exact. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the coordinate for the intersection location </dd></dl> </div> </div> <a class="anchor" id="ab34a94fb225c7f04bdc2b5692fe9408b"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::getIntersectionSegments" ref="ab34a94fb225c7f04bdc2b5692fe9408b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::vector<<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>>& geos::noding::SingleInteriorIntersectionFinder::getIntersectionSegments </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the endpoints of the intersecting segments. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>an array of the segment endpoints (p00, p01, p10, p11) </dd></dl> </div> </div> <a class="anchor" id="af46577b39de46d28779c2eeb5597c4ed"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::hasIntersection" ref="af46577b39de46d28779c2eeb5597c4ed" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::noding::SingleInteriorIntersectionFinder::hasIntersection </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Tests whether an intersection was found. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>true if an intersection was found </dd></dl> </div> </div> <a class="anchor" id="a8932c1f2b238c29a2cc1865fe9c56d4f"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::isDone" ref="a8932c1f2b238c29a2cc1865fe9c56d4f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::noding::SingleInteriorIntersectionFinder::isDone </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></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="return"><dt><b>Returns:</b></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 from <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#a2402e2ce3a39edad9f5d283be73b5d1d">geos::noding::SegmentIntersector</a>.</p> </div> </div> <a class="anchor" id="af819e151c6180d923696c1924d3dbcfa"></a><!-- doxytag: member="geos::noding::SingleInteriorIntersectionFinder::processIntersections" ref="af819e151c6180d923696c1924d3dbcfa" args="(SegmentString *e0, int segIndex0, SegmentString *e1, int segIndex1)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::noding::SingleInteriorIntersectionFinder::processIntersections </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> * </td> <td class="paramname"> <em>e0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </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> * </td> <td class="paramname"> <em>e1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>segIndex1</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></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">SegmentIntersector</a> class to process intersections for two segments of the <a class="el" href="">SegmentStrings</a> being intersected. </p> <p>Note that some clients (such as <a class="el" href="">MonotoneChain</a>s) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test). </p> <p>Implements <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html#a23998a6202706d84baf9aac78f9d2ee5">geos::noding::SegmentIntersector</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="SingleInteriorIntersectionFinder_8h_source.html">SingleInteriorIntersectionFinder.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>