<!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::PreparedPolygonCovers 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_1PreparedPolygonCovers.html">geos::geom::prep::PreparedPolygonCovers</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> </div> <div class="headertitle"> <h1>geos::geom::prep::PreparedPolygonCovers Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::prep::PreparedPolygonCovers" --><!-- doxytag: inherits="geos::geom::prep::AbstractPreparedPolygonContains" --> <p>Computes the <code>covers</code> spatial relationship predicate for a <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</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="PreparedPolygonCovers_8h_source.html">PreparedPolygonCovers.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::geom::prep::PreparedPolygonCovers:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1geom_1_1prep_1_1PreparedPolygonCovers.png" usemap="#geos::geom::prep::PreparedPolygonCovers_map" alt=""/> <map id="geos::geom::prep::PreparedPolygonCovers_map" name="geos::geom::prep::PreparedPolygonCovers_map"> <area href="classgeos_1_1geom_1_1prep_1_1AbstractPreparedPolygonContains.html" alt="geos::geom::prep::AbstractPreparedPolygonContains" shape="rect" coords="0,56,308,80"/> <area href="classgeos_1_1geom_1_1prep_1_1PreparedPolygonPredicate.html" alt="geos::geom::prep::PreparedPolygonPredicate" shape="rect" coords="0,0,308,24"/> </map> </div> <p><a href="classgeos_1_1geom_1_1prep_1_1PreparedPolygonCovers-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_1PreparedPolygonCovers.html#ae65809a6840e49622447bc9f593db691">PreparedPolygonCovers</a> (const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</a> *const 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_1PreparedPolygonCovers.html#a77005a8073696363374c1284f18b219f">covers</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *geom)</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_1PreparedPolygonCovers.html#a161ea51c4ececd4854b92927a56945f3">covers</a> (const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</a> *const 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_1PreparedPolygonCovers.html#a8754efdeab8ef963a865ae535a9df0f3">fullTopologicalPredicate</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Computes the <code>covers</code> spatial relationship predicate for a <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</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> <p>It is not possible to short-circuit in all cases, in particular in the case where the test geometry touches the polygon linework. In this case full topology must be computed.</p> <dl class="author"><dt><b>Author:</b></dt><dd>Martin Davis </dd></dl> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae65809a6840e49622447bc9f593db691"></a><!-- doxytag: member="geos::geom::prep::PreparedPolygonCovers::PreparedPolygonCovers" ref="ae65809a6840e49622447bc9f593db691" args="(const PreparedPolygon *const prep)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::geom::prep::PreparedPolygonCovers::PreparedPolygonCovers </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</a> *const </td> <td class="paramname"> <em>prep</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an instance of this operation.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>prepPoly</em> </td><td>the <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html" title="A prepared version of Polygon or MultiPolygon geometries.">PreparedPolygon</a> to evaluate </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a161ea51c4ececd4854b92927a56945f3"></a><!-- doxytag: member="geos::geom::prep::PreparedPolygonCovers::covers" ref="a161ea51c4ececd4854b92927a56945f3" args="(const PreparedPolygon *const prep, const geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool geos::geom::prep::PreparedPolygonCovers::covers </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</a> *const </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 covers predicate between a <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html">PreparedPolygon</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 polygon </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 polygon covers the geometry </dd></dl> <p>References <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygonCovers.html#a161ea51c4ececd4854b92927a56945f3">covers()</a>.</p> <p>Referenced by <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygonCovers.html#a161ea51c4ececd4854b92927a56945f3">covers()</a>.</p> </div> </div> <a class="anchor" id="a77005a8073696363374c1284f18b219f"></a><!-- doxytag: member="geos::geom::prep::PreparedPolygonCovers::covers" ref="a77005a8073696363374c1284f18b219f" args="(const Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::geom::prep::PreparedPolygonCovers::covers </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td> <td class="paramname"> <em>geom</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Tests whether this <a class="el" href="classgeos_1_1geom_1_1prep_1_1PreparedPolygon.html" title="A prepared version of Polygon or MultiPolygon geometries.">PreparedPolygon</a> <code>covers</code> 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 is covered </dd></dl> <p>References <a class="el" href="classgeos_1_1geom_1_1prep_1_1AbstractPreparedPolygonContains.html#a40a340530e4d7ebf07a731258497a357">geos::geom::prep::AbstractPreparedPolygonContains::eval()</a>.</p> </div> </div> <a class="anchor" id="a8754efdeab8ef963a865ae535a9df0f3"></a><!-- doxytag: member="geos::geom::prep::PreparedPolygonCovers::fullTopologicalPredicate" ref="a8754efdeab8ef963a865ae535a9df0f3" args="(const geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::geom::prep::PreparedPolygonCovers::fullTopologicalPredicate </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> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Computes the full topological <code>covers</code> predicate. Used when short-circuit tests are not conclusive.</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 this prepared polygon covers the test geometry </dd></dl> <p>Implements <a class="el" href="classgeos_1_1geom_1_1prep_1_1AbstractPreparedPolygonContains.html#ae0fba49106f225fd7399605437560823">geos::geom::prep::AbstractPreparedPolygonContains</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="PreparedPolygonCovers_8h_source.html">PreparedPolygonCovers.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>