466 lines
26 KiB
HTML
466 lines
26 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::algorithm::RayCrossingCounter 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_1algorithm.html">algorithm</a></li><li class="navelem"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</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_1algorithm_1_1RayCrossingCounter-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">geos::algorithm::RayCrossingCounter Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Counts the number of segments crossed by a horizontal ray extending to the right from a given point, in an incremental fashion.
|
|
<a href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for geos::algorithm::RayCrossingCounter:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1algorithm_1_1RayCrossingCounter__coll__graph.svg" width="303" height="147"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</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:a3f0c214c00e92e3173ef5efdee0afe67"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a3f0c214c00e92e3173ef5efdee0afe67">RayCrossingCounter</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p_point)</td></tr>
|
|
<tr class="separator:a3f0c214c00e92e3173ef5efdee0afe67"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac6141964164d1f11d5358f367f0323a8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#ac6141964164d1f11d5358f367f0323a8">countSegment</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p1, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p2)</td></tr>
|
|
<tr class="memdesc:ac6141964164d1f11d5358f367f0323a8"><td class="mdescLeft"> </td><td class="mdescRight">Counts a segment. <a href="#ac6141964164d1f11d5358f367f0323a8">More...</a><br /></td></tr>
|
|
<tr class="separator:ac6141964164d1f11d5358f367f0323a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa1a0b63601c69e817aa262617667a41b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#aa1a0b63601c69e817aa262617667a41b">isOnSegment</a> ()</td></tr>
|
|
<tr class="memdesc:aa1a0b63601c69e817aa262617667a41b"><td class="mdescLeft"> </td><td class="mdescRight">Reports whether the point lies exactly on one of the supplied segments. <a href="#aa1a0b63601c69e817aa262617667a41b">More...</a><br /></td></tr>
|
|
<tr class="separator:aa1a0b63601c69e817aa262617667a41b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5fe9f0a82e22a07790f8503d1dea888b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a5fe9f0a82e22a07790f8503d1dea888b">getLocation</a> ()</td></tr>
|
|
<tr class="memdesc:a5fe9f0a82e22a07790f8503d1dea888b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of the point relative to the ring, polygon or multipolygon from which the processed segments were provided. <a href="#a5fe9f0a82e22a07790f8503d1dea888b">More...</a><br /></td></tr>
|
|
<tr class="separator:a5fe9f0a82e22a07790f8503d1dea888b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac83a02448d715c95644c13a03c7b5532"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#ac83a02448d715c95644c13a03c7b5532">isPointInPolygon</a> ()</td></tr>
|
|
<tr class="memdesc:ac83a02448d715c95644c13a03c7b5532"><td class="mdescLeft"> </td><td class="mdescRight">Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segments were provided. <a href="#ac83a02448d715c95644c13a03c7b5532">More...</a><br /></td></tr>
|
|
<tr class="separator:ac83a02448d715c95644c13a03c7b5532"><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:aad834286a28d2fbd6c6459d7155f960a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#aad834286a28d2fbd6c6459d7155f960a">locatePointInRing</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p, const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> &ring)</td></tr>
|
|
<tr class="memdesc:aad834286a28d2fbd6c6459d7155f960a"><td class="mdescLeft"> </td><td class="mdescRight">Determines the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of a point in a ring. <a href="#aad834286a28d2fbd6c6459d7155f960a">More...</a><br /></td></tr>
|
|
<tr class="separator:aad834286a28d2fbd6c6459d7155f960a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a68cf27ef5b63b7f361106c48301ce6dd"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a68cf27ef5b63b7f361106c48301ce6dd">locatePointInRing</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p, const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> * > &ring)</td></tr>
|
|
<tr class="memdesc:a68cf27ef5b63b7f361106c48301ce6dd"><td class="mdescLeft"> </td><td class="mdescRight">Semantically equal to the above, just different args encoding. <a href="#a68cf27ef5b63b7f361106c48301ce6dd">More...</a><br /></td></tr>
|
|
<tr class="separator:a68cf27ef5b63b7f361106c48301ce6dd"><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:a288eb8118a606c656c74029cab8e1e0a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a288eb8118a606c656c74029cab8e1e0a">RayCrossingCounter</a> (const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</a> &other)=delete</td></tr>
|
|
<tr class="separator:a288eb8118a606c656c74029cab8e1e0a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4ebf74b48ebc925a8931c6e60e4b8416"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a4ebf74b48ebc925a8931c6e60e4b8416">operator=</a> (const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</a> &rhs)=delete</td></tr>
|
|
<tr class="separator:a4ebf74b48ebc925a8931c6e60e4b8416"><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:aee47ec0b55ccb7d247bf1ea7fad2ffcf"><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_1algorithm_1_1RayCrossingCounter.html#aee47ec0b55ccb7d247bf1ea7fad2ffcf">point</a></td></tr>
|
|
<tr class="separator:aee47ec0b55ccb7d247bf1ea7fad2ffcf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a887ecdaa3d6d674617003072880a472c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#a887ecdaa3d6d674617003072880a472c">crossingCount</a></td></tr>
|
|
<tr class="separator:a887ecdaa3d6d674617003072880a472c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab359e039d9413dc25b8cc38c375746e9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html#ab359e039d9413dc25b8cc38c375746e9">isPointOnSegment</a></td></tr>
|
|
<tr class="separator:ab359e039d9413dc25b8cc38c375746e9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Counts the number of segments crossed by a horizontal ray extending to the right from a given point, in an incremental fashion. </p>
|
|
<p>This can be used to determine whether a point lies in a polygonal geometry. The class determines the situation where the point lies exactly on a segment. When being used for Point-In-Polygon determination, this case allows short-circuiting the evaluation.</p>
|
|
<p>This class handles polygonal geometries with any number of shells and holes. The orientation of the shell and hole rings is unimportant. In order to compute a correct location for a given polygonal geometry, it is essential that <b>all</b> segments are counted which</p>
|
|
<ul>
|
|
<li>touch the ray</li>
|
|
<li>lie in in any ring which may contain the point</li>
|
|
</ul>
|
|
<p>The only exception is when the point-on-segment situation is detected, in which case no further processing is required. The implication of the above rule is that segments which can be a priori determined to <em>not</em> touch the ray (i.e. by a test of their bounding box or Y-extent) do not need to be counted. This allows for optimization by indexing.</p>
|
|
<dl class="section author"><dt>Author</dt><dd>Martin Davis </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="RayCrossingCounter_8h_source.html#l00065">65</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a288eb8118a606c656c74029cab8e1e0a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">geos::algorithm::RayCrossingCounter::RayCrossingCounter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</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="a3f0c214c00e92e3173ef5efdee0afe67"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">geos::algorithm::RayCrossingCounter::RayCrossingCounter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>p_point</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="RayCrossingCounter_8h_source.html#l00095">95</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="ac6141964164d1f11d5358f367f0323a8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::algorithm::RayCrossingCounter::countSegment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>p1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>p2</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Counts a segment. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">p1</td><td>an endpoint of the segment </td></tr>
|
|
<tr><td class="paramname">p2</td><td>another endpoint of the segment </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5fe9f0a82e22a07790f8503d1dea888b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounter::getLocation </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of the point relative to the ring, polygon or multipolygon from which the processed segments were provided. </p>
|
|
<p>This method only determines the correct location if <b>all</b> relevant segments must have been processed.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd>the Location of the point </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa1a0b63601c69e817aa262617667a41b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool geos::algorithm::RayCrossingCounter::isOnSegment </td>
|
|
<td>(</td>
|
|
<td class="paramname"></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>Reports whether the point lies exactly on one of the supplied segments. </p>
|
|
<p>This method may be called at any time as segments are processed. If the result of this method is <code>true</code>, no further segments need be supplied, since the result will never change again.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the point lies exactly on a segment </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="RayCrossingCounter_8h_source.html#l00120">120</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac83a02448d715c95644c13a03c7b5532"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool geos::algorithm::RayCrossingCounter::isPointInPolygon </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segments were provided. </p>
|
|
<p>This method only determines the correct location if <b>all</b> relevant segments must have been processed.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the point lies in or on the supplied polygon </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aad834286a28d2fbd6c6459d7155f960a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounter::locatePointInRing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> & </td>
|
|
<td class="paramname"><em>ring</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">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determines the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of a point in a ring. </p>
|
|
<p>This method is an exemplar of how to use this class.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">p</td><td>the point to test </td></tr>
|
|
<tr><td class="paramname">ring</td><td>an array of Coordinates forming a ring </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>the location of the point in the ring </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a68cf27ef5b63b7f361106c48301ce6dd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounter::locatePointInRing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> * > & </td>
|
|
<td class="paramname"><em>ring</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">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Semantically equal to the above, just different args encoding. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4ebf74b48ebc925a8931c6e60e4b8416"></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_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</a>& geos::algorithm::RayCrossingCounter::operator= </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounter.html">RayCrossingCounter</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="a887ecdaa3d6d674617003072880a472c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int geos::algorithm::RayCrossingCounter::crossingCount</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="RayCrossingCounter_8h_source.html#l00069">69</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab359e039d9413dc25b8cc38c375746e9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool geos::algorithm::RayCrossingCounter::isPointOnSegment</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="RayCrossingCounter_8h_source.html#l00072">72</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aee47ec0b55ccb7d247bf1ea7fad2ffcf"></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::algorithm::RayCrossingCounter::point</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="RayCrossingCounter_8h_source.html#l00067">67</a> of file <a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="RayCrossingCounter_8h_source.html">RayCrossingCounter.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>
|