331 lines
18 KiB
HTML
331 lines
18 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::operation::predicate::RectangleIntersects 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
|
||
|
 <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 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 id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class 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_1operation.html">operation</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1operation_1_1predicate.html">predicate</a></li><li class="navelem"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<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="#pri-methods">Private Member Functions</a> |
|
||
|
<a href="#pri-attribs">Private Attributes</a> |
|
||
|
<a href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects-members.html">List of all members</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">geos::operation::predicate::RectangleIntersects Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>Optimized implementation of the "intersects" spatial predicate for cases where one Geometry is a rectangle.
|
||
|
<a href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#details">More...</a></p>
|
||
|
|
||
|
<p><code>#include <<a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>></code></p>
|
||
|
<div class="dynheader">
|
||
|
Collaboration diagram for geos::operation::predicate::RectangleIntersects:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects__coll__graph.svg" width="100%" height="441"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||
|
</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:a3a786e2d4ffd16ee62cbaf52b1a147c0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a3a786e2d4ffd16ee62cbaf52b1a147c0">RectangleIntersects</a> (const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> &newRect)</td></tr>
|
||
|
<tr class="memdesc:a3a786e2d4ffd16ee62cbaf52b1a147c0"><td class="mdescLeft"> </td><td class="mdescRight">Create a new intersects computer for a rectangle. <a href="#a3a786e2d4ffd16ee62cbaf52b1a147c0">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a3a786e2d4ffd16ee62cbaf52b1a147c0"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a90b968b7ad1250b8adeaa4803762424c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a90b968b7ad1250b8adeaa4803762424c">intersects</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &geom)</td></tr>
|
||
|
<tr class="separator:a90b968b7ad1250b8adeaa4803762424c"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
||
|
Static Public Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:aa09c0b68ad7da79586f1dd839db4f8c1"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#aa09c0b68ad7da79586f1dd839db4f8c1">intersects</a> (const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> &<a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a3bfca0cabb3ba13f3c74c4e0bb3cb06b">rectangle</a>, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &b)</td></tr>
|
||
|
<tr class="memdesc:aa09c0b68ad7da79586f1dd839db4f8c1"><td class="mdescLeft"> </td><td class="mdescRight">Tests whether a rectangle intersects a given geometry. <a href="#aa09c0b68ad7da79586f1dd839db4f8c1">More...</a><br /></td></tr>
|
||
|
<tr class="separator:aa09c0b68ad7da79586f1dd839db4f8c1"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
|
||
|
Private Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:a7a7dbdbaaeaf9d9fc4f9344634915821"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a7a7dbdbaaeaf9d9fc4f9344634915821">RectangleIntersects</a> (const <a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a> &other)=delete</td></tr>
|
||
|
<tr class="separator:a7a7dbdbaaeaf9d9fc4f9344634915821"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ab225a3e6a1b9b5e95188e9857b6820fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#ab225a3e6a1b9b5e95188e9857b6820fb">operator=</a> (const <a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a> &rhs)=delete</td></tr>
|
||
|
<tr class="separator:ab225a3e6a1b9b5e95188e9857b6820fb"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
||
|
Private Attributes</h2></td></tr>
|
||
|
<tr class="memitem:a3bfca0cabb3ba13f3c74c4e0bb3cb06b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a3bfca0cabb3ba13f3c74c4e0bb3cb06b">rectangle</a></td></tr>
|
||
|
<tr class="separator:a3bfca0cabb3ba13f3c74c4e0bb3cb06b"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:afb2d05d4215a45c3acc8b2760f1a914f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#afb2d05d4215a45c3acc8b2760f1a914f">rectEnv</a></td></tr>
|
||
|
<tr class="separator:afb2d05d4215a45c3acc8b2760f1a914f"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<div class="textblock"><p>Optimized implementation of the "intersects" spatial predicate for cases where one Geometry is a rectangle. </p>
|
||
|
<p>This class works for all input geometries, including <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html">GeometryCollections</a>.</p>
|
||
|
<p>As a further optimization, this class can be used to test many geometries against a single rectangle in a slightly more efficient way. </p>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="RectangleIntersects_8h_source.html#l00052">52</a> of file <a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>.</p>
|
||
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" id="a7a7dbdbaaeaf9d9fc4f9344634915821"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::predicate::RectangleIntersects::RectangleIntersects </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a> & </td>
|
||
|
<td class="paramname"><em>other</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a3a786e2d4ffd16ee62cbaf52b1a147c0"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::predicate::RectangleIntersects::RectangleIntersects </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> & </td>
|
||
|
<td class="paramname"><em>newRect</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Create a new intersects computer for a rectangle. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">newRect</td><td>a rectangular geometry </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="RectangleIntersects_8h_source.html#l00071">71</a> of file <a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Function Documentation</h2>
|
||
|
<a class="anchor" id="a90b968b7ad1250b8adeaa4803762424c"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">bool geos::operation::predicate::RectangleIntersects::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>geom</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Referenced by <a class="el" href="RectangleIntersects_8h_source.html#l00087">intersects()</a>.</p>
|
||
|
|
||
|
<p><div class="dynheader">
|
||
|
Here is the caller graph for this function:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects_a90b968b7ad1250b8adeaa4803762424c_icgraph.svg" width="512" height="55"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||
|
</div>
|
||
|
</div>
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aa09c0b68ad7da79586f1dd839db4f8c1"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static bool geos::operation::predicate::RectangleIntersects::intersects </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> & </td>
|
||
|
<td class="paramname"><em>rectangle</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>b</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Tests whether a rectangle intersects a given geometry. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">rectangle</td><td>a rectangular Polygon </td></tr>
|
||
|
<tr><td class="paramname">b</td><td>a Geometry of any type </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>true if the geometries intersect </dd></dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="RectangleIntersects_8h_source.html#l00087">87</a> of file <a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>.</p>
|
||
|
|
||
|
<p>References <a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html#a90b968b7ad1250b8adeaa4803762424c">intersects()</a>.</p>
|
||
|
|
||
|
<p><div class="dynheader">
|
||
|
Here is the call graph for this function:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects_aa09c0b68ad7da79586f1dd839db4f8c1_cgraph.svg" width="512" height="55"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||
|
</div>
|
||
|
</div>
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ab225a3e6a1b9b5e95188e9857b6820fb"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a>& geos::operation::predicate::RectangleIntersects::operator= </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1operation_1_1predicate_1_1RectangleIntersects.html">RectangleIntersects</a> & </td>
|
||
|
<td class="paramname"><em>rhs</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Data Documentation</h2>
|
||
|
<a class="anchor" id="a3bfca0cabb3ba13f3c74c4e0bb3cb06b"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a>& geos::operation::predicate::RectangleIntersects::rectangle</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="RectangleIntersects_8h_source.html#l00056">56</a> of file <a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="afb2d05d4215a45c3acc8b2760f1a914f"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a>& geos::operation::predicate::RectangleIntersects::rectEnv</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="RectangleIntersects_8h_source.html#l00058">58</a> of file <a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
||
|
<li><a class="el" href="RectangleIntersects_8h_source.html">RectangleIntersects.h</a></li>
|
||
|
</ul>
|
||
|
</div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.8.11
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|