<!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::geom::prep::PreparedLineStringIntersects 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_1geom.html">geom</a> </li> <li><b>prep</b> </li> <li><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html">geos::geom::prep::PreparedLineStringIntersects</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <h1>geos::geom::prep::PreparedLineStringIntersects Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::prep::PreparedLineStringIntersects" --> <p>Computes the <code>intersects</code> spatial relationship predicate for a target <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> relative to all other <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> classes. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="PreparedLineStringIntersects_8h_source.html">PreparedLineStringIntersects.h</a>></code></p> <p><a href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects-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_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a54c25312a16465abd9ee19cdb3471c1a">PreparedLineStringIntersects</a> (<a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> &prep)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a8f5221f48e1bc159b947a338ec383415">intersects</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g) const </td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a1c7740b4e55bd0c980455f55add7d732">intersects</a> (<a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> &prep, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#ab5194429d468804ea4b109d837cf646b">isAnyTestPointInTarget</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *testGeom) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a7b5fba358f71f22c2c47c44602534210">PreparedLineStringIntersects</a> (const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html">PreparedLineStringIntersects</a> &other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb1510a8533364813a37468b9c8b13c6"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::operator=" ref="acb1510a8533364813a37468b9c8b13c6" args="(const PreparedLineStringIntersects &rhs)" --> <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html">PreparedLineStringIntersects</a> & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html">PreparedLineStringIntersects</a> &rhs)</td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ac1e0c5171ec14582225715dd38dcb2"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::prepLine" ref="a9ac1e0c5171ec14582225715dd38dcb2" args="" --> <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> & </td><td class="memItemRight" valign="bottom"><b>prepLine</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Computes the <code>intersects</code> spatial relationship predicate for a target <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> relative to all other <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> classes. </p> <p>Uses short-circuit tests and indexing to improve performance.</p> <dl class="author"><dt><b>Author:</b></dt><dd>Martin Davis </dd></dl> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a54c25312a16465abd9ee19cdb3471c1a"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects" ref="a54c25312a16465abd9ee19cdb3471c1a" args="(PreparedLineString &prep)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> & </td> <td class="paramname"> <em>prep</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000005">Todo:</a></b></dt><dd>FIXME - mloskot: Why not taking linestring through const reference? </dd></dl> </div> </div> <a class="anchor" id="a7b5fba358f71f22c2c47c44602534210"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects" ref="a7b5fba358f71f22c2c47c44602534210" args="(const PreparedLineStringIntersects &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html">PreparedLineStringIntersects</a> & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This could be optimized by using the segment index on the lineal target. However, it seems like the L/P case would be pretty rare in practice. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a1c7740b4e55bd0c980455f55add7d732"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::intersects" ref="a1c7740b4e55bd0c980455f55add7d732" args="(PreparedLineString &prep, const geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool geos::geom::prep::PreparedLineStringIntersects::intersects </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> & </td> <td class="paramname"> <em>prep</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>geom</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Computes the intersects predicate between a <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineString.html">PreparedLineString</a> and a <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>prep</em> </td><td>the prepared linestring </td></tr> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>a test geometry </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if the linestring intersects the geometry </dd></dl> <p>References <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a1c7740b4e55bd0c980455f55add7d732">intersects()</a>.</p> <p>Referenced by <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedLineStringIntersects.html#a1c7740b4e55bd0c980455f55add7d732">intersects()</a>.</p> </div> </div> <a class="anchor" id="a8f5221f48e1bc159b947a338ec383415"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::intersects" ref="a8f5221f48e1bc159b947a338ec383415" args="(const geom::Geometry *g) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::geom::prep::PreparedLineStringIntersects::intersects </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Tests whether this geometry intersects a given geometry.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>the test geometry </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if the test geometry intersects </dd></dl> </div> </div> <a class="anchor" id="ab5194429d468804ea4b109d837cf646b"></a><!-- doxytag: member="geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget" ref="ab5194429d468804ea4b109d837cf646b" args="(const geom::Geometry *testGeom) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>testGeom</em></td> <td> ) </td> <td> const<code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Tests whether any representative point of the test <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> intersects the target geometry. Only handles test geometries which are Puntal (dimension 0)</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>a Puntal geometry to test </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if any point of the argument intersects the prepared geometry </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="PreparedLineStringIntersects_8h_source.html">PreparedLineStringIntersects.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>