geos_390_docs/classgeos_1_1operation_1_1v...

387 lines
20 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::valid::IndexedNestedShellTester 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_1operation.html">operation</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1operation_1_1valid.html">valid</a></li><li class="navelem"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html">IndexedNestedShellTester</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::operation::valid::IndexedNestedShellTester Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::operation::valid::IndexedNestedShellTester:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester__coll__graph.svg" width="100%" height="510"><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:a7d4edd506c5b7ea3156144f3b92f51bf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a7d4edd506c5b7ea3156144f3b92f51bf">IndexedNestedShellTester</a> (const <a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;g, size_t initialCapacity)</td></tr>
<tr class="separator:a7d4edd506c5b7ea3156144f3b92f51bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4909f8912ded2e52fac2fb9e8d85b2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#af4909f8912ded2e52fac2fb9e8d85b2e">add</a> (const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> &amp;p)</td></tr>
<tr class="separator:af4909f8912ded2e52fac2fb9e8d85b2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3da77b0b3dd509bc8a6494f99bc17fd7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a3da77b0b3dd509bc8a6494f99bc17fd7">getNestedPoint</a> ()</td></tr>
<tr class="separator:a3da77b0b3dd509bc8a6494f99bc17fd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8418c2f1a25391065a7deea293928dd2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a8418c2f1a25391065a7deea293928dd2">isNonNested</a> ()</td></tr>
<tr class="separator:a8418c2f1a25391065a7deea293928dd2"><td class="memSeparator" colspan="2">&#160;</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:a88175283fee194ef7a00fc4b23fff506"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a88175283fee194ef7a00fc4b23fff506">compute</a> ()</td></tr>
<tr class="separator:a88175283fee194ef7a00fc4b23fff506"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad51f12a1a9f294c991258cf1f5e4463b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#ad51f12a1a9f294c991258cf1f5e4463b">checkShellNotNested</a> (const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> *shell, PolygonIndexedLocators &amp;locs)</td></tr>
<tr class="separator:ad51f12a1a9f294c991258cf1f5e4463b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87e66117999954d9a056e8ab1b82ce8f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a87e66117999954d9a056e8ab1b82ce8f">checkShellInsideHole</a> (const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> *shell, <a class="el" href="classgeos_1_1algorithm_1_1locate_1_1IndexedPointInAreaLocator.html">algorithm::locate::IndexedPointInAreaLocator</a> &amp;holeLoc)</td></tr>
<tr class="separator:a87e66117999954d9a056e8ab1b82ce8f"><td class="memSeparator" colspan="2">&#160;</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:a203518260387882f3b9f0e404a00ae82"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a203518260387882f3b9f0e404a00ae82">graph</a></td></tr>
<tr class="memdesc:a203518260387882f3b9f0e404a00ae82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Externally owned. <a href="#a203518260387882f3b9f0e404a00ae82">More...</a><br /></td></tr>
<tr class="separator:a203518260387882f3b9f0e404a00ae82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6237ee3b713cdc5e966af279c85ca9e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#af6237ee3b713cdc5e966af279c85ca9e">polys</a></td></tr>
<tr class="separator:af6237ee3b713cdc5e966af279c85ca9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b57f2543d0eab272b64d35d634943ee"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#a2b57f2543d0eab272b64d35d634943ee">nestedPt</a></td></tr>
<tr class="separator:a2b57f2543d0eab272b64d35d634943ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abccbde67c2287ae5f89a9915c7361fa4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IndexedNestedShellTester.html#abccbde67c2287ae5f89a9915c7361fa4">processed</a></td></tr>
<tr class="separator:abccbde67c2287ae5f89a9915c7361fa4"><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>Definition at line <a class="el" href="IndexedNestedShellTester_8h_source.html#l00052">52</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7d4edd506c5b7ea3156144f3b92f51bf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::operation::valid::IndexedNestedShellTester::IndexedNestedShellTester </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;&#160;</td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>initialCapacity</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af4909f8912ded2e52fac2fb9e8d85b2e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::operation::valid::IndexedNestedShellTester::add </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> &amp;&#160;</td>
<td class="paramname"><em>p</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>Definition at line <a class="el" href="IndexedNestedShellTester_8h_source.html#l00057">57</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div>
</div>
<a class="anchor" id="a87e66117999954d9a056e8ab1b82ce8f"></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_1Coordinate.html">geom::Coordinate</a>* geos::operation::valid::IndexedNestedShellTester::checkShellInsideHole </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> *&#160;</td>
<td class="paramname"><em>shell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1algorithm_1_1locate_1_1IndexedPointInAreaLocator.html">algorithm::locate::IndexedPointInAreaLocator</a> &amp;&#160;</td>
<td class="paramname"><em>holeLoc</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">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This routine checks to see if a shell is properly contained in a hole. It assumes that the edges of the shell and hole do not properly intersect.</p>
<dl class="section return"><dt>Returns</dt><dd><code>null</code> if the shell is properly contained, or a Coordinate which is not inside the hole if it is not </dd></dl>
</div>
</div>
<a class="anchor" id="ad51f12a1a9f294c991258cf1f5e4463b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::operation::valid::IndexedNestedShellTester::checkShellNotNested </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> *&#160;</td>
<td class="paramname"><em>shell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">PolygonIndexedLocators &amp;&#160;</td>
<td class="paramname"><em>locs</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">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if a shell is incorrectly nested within a polygon. This is the case if the shell is inside the polygon shell, but not inside a polygon hole. (If the shell is inside a polygon hole, the nesting is valid.)</p>
<p>The algorithm used relies on the fact that the rings must be properly contained. E.g. they cannot partially overlap (this has been previously checked by <code>checkRelateConsistency</code> </p>
</div>
</div>
<a class="anchor" id="a88175283fee194ef7a00fc4b23fff506"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::operation::valid::IndexedNestedShellTester::compute </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a3da77b0b3dd509bc8a6494f99bc17fd7"></a>
<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::operation::valid::IndexedNestedShellTester::getNestedPoint </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a8418c2f1a25391065a7deea293928dd2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::valid::IndexedNestedShellTester::isNonNested </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a203518260387882f3b9f0e404a00ae82"></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_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a>&amp; geos::operation::valid::IndexedNestedShellTester::graph</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>Externally owned. </p>
<p>Definition at line <a class="el" href="IndexedNestedShellTester_8h_source.html#l00094">94</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2b57f2543d0eab272b64d35d634943ee"></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_1Coordinate.html">geom::Coordinate</a>* geos::operation::valid::IndexedNestedShellTester::nestedPt</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="IndexedNestedShellTester_8h_source.html#l00099">99</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div>
</div>
<a class="anchor" id="af6237ee3b713cdc5e966af279c85ca9e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a>*&gt; geos::operation::valid::IndexedNestedShellTester::polys</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="IndexedNestedShellTester_8h_source.html#l00096">96</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div>
</div>
<a class="anchor" id="abccbde67c2287ae5f89a9915c7361fa4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::valid::IndexedNestedShellTester::processed</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="IndexedNestedShellTester_8h_source.html#l00101">101</a> of file <a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="IndexedNestedShellTester_8h_source.html">IndexedNestedShellTester.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>