geos_390_docs/classgeos_1_1operation_1_1s...

539 lines
29 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::sharedpaths::SharedPathsOp 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_1sharedpaths.html">sharedpaths</a></li><li class="navelem"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static 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_1sharedpaths_1_1SharedPathsOp-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::operation::sharedpaths::SharedPathsOp Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Find shared paths among two linear Geometry objects.
<a href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::operation::sharedpaths::SharedPathsOp:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp__coll__graph.svg" width="100%" height="436"><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-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a27ae356a9ad5be3bb86313d5d0158ebb"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a></td></tr>
<tr class="memdesc:a27ae356a9ad5be3bb86313d5d0158ebb"><td class="mdescLeft">&#160;</td><td class="mdescRight">LineString vector (list of edges) <a href="#a27ae356a9ad5be3bb86313d5d0158ebb">More...</a><br /></td></tr>
<tr class="separator:a27ae356a9ad5be3bb86313d5d0158ebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a7c7335dd1e4a567c68f5878669d78876"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a7c7335dd1e4a567c68f5878669d78876">SharedPathsOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g2)</td></tr>
<tr class="separator:a7c7335dd1e4a567c68f5878669d78876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a394f50f897a722cbc9cdb7647df9ca5c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a394f50f897a722cbc9cdb7647df9ca5c">getSharedPaths</a> (<a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;sameDirection, <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;oppositeDirection)</td></tr>
<tr class="separator:a394f50f897a722cbc9cdb7647df9ca5c"><td class="memSeparator" colspan="2">&#160;</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:a145b9be28358023fb4d50677a9a2b870"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a145b9be28358023fb4d50677a9a2b870">sharedPathsOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g2, <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;sameDirection, <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;oppositeDirection)</td></tr>
<tr class="separator:a145b9be28358023fb4d50677a9a2b870"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59f424a9f0096a6590a5e050a0bb001a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a59f424a9f0096a6590a5e050a0bb001a">clearEdges</a> (<a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;from)</td></tr>
<tr class="memdesc:a59f424a9f0096a6590a5e050a0bb001a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all edges in the list. <a href="#a59f424a9f0096a6590a5e050a0bb001a">More...</a><br /></td></tr>
<tr class="separator:a59f424a9f0096a6590a5e050a0bb001a"><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:a69e2543f09d8ada7a5c07c6e25eeca10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a69e2543f09d8ada7a5c07c6e25eeca10">findLinearIntersections</a> (<a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;to)</td></tr>
<tr class="separator:a69e2543f09d8ada7a5c07c6e25eeca10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07aaf84920b13a306423845afe8ca82e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a07aaf84920b13a306423845afe8ca82e">isForward</a> (const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> &amp;edge, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;geom)</td></tr>
<tr class="separator:a07aaf84920b13a306423845afe8ca82e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e4e7d82f689ae3a47ef9d983e3d721"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a56e4e7d82f689ae3a47ef9d983e3d721">isSameDirection</a> (const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> &amp;edge)</td></tr>
<tr class="separator:a56e4e7d82f689ae3a47ef9d983e3d721"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab68bee1c4303012904208794e17ad16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#aab68bee1c4303012904208794e17ad16">checkLinealInput</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g)</td></tr>
<tr class="memdesc:aab68bee1c4303012904208794e17ad16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Throw an IllegalArgumentException if the geom is not linear. <a href="#aab68bee1c4303012904208794e17ad16">More...</a><br /></td></tr>
<tr class="separator:aab68bee1c4303012904208794e17ad16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53a7e3c5b32e56cd068eb5792a84f27b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a53a7e3c5b32e56cd068eb5792a84f27b">SharedPathsOp</a> (const <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a> &amp;other)=delete</td></tr>
<tr class="separator:a53a7e3c5b32e56cd068eb5792a84f27b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a1b485b4f6b003320f2f1ed281f0e26"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a4a1b485b4f6b003320f2f1ed281f0e26">operator=</a> (const <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a> &amp;rhs)=delete</td></tr>
<tr class="separator:a4a1b485b4f6b003320f2f1ed281f0e26"><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:afe504a4737b389c487fe6352e3d310d0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#afe504a4737b389c487fe6352e3d310d0">_g1</a></td></tr>
<tr class="separator:afe504a4737b389c487fe6352e3d310d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a834ee3b80850cb0cb650f16e091b6a7d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a834ee3b80850cb0cb650f16e091b6a7d">_g2</a></td></tr>
<tr class="separator:a834ee3b80850cb0cb650f16e091b6a7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb69f71437468a53eb59d6b3fae7ac61"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#aeb69f71437468a53eb59d6b3fae7ac61">_gf</a></td></tr>
<tr class="separator:aeb69f71437468a53eb59d6b3fae7ac61"><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>Find shared paths among two linear Geometry objects. </p>
<p>For each shared path report if it direction is the same or opposite.</p>
<p>Paths reported as shared are given in the direction they appear in the first geometry.</p>
<dl class="section remark"><dt>Remarks</dt><dd>Developed by Sandro Santilli (<a href="#" onclick="location.href='mai'+'lto:'+'str'+'k@'+'kbt'+'.i'+'o'; return false;">strk@<span style="display: none;">.nosp@m.</span>kbt.<span style="display: none;">.nosp@m.</span>io</a>) for Faunalia (<a href="http://www.faunalia.it">http://www.faunalia.it</a>) with funding from Regione Toscana - Settore SISTEMA INFORMATIVO TERRITORIALE ED AMBIENTALE - for the project: "Sviluppo strumenti software per il trattamento di dati geografici basati su QuantumGIS e Postgis (CIG 0494241492)" </dd></dl>
<p>Definition at line <a class="el" href="SharedPathsOp_8h_source.html#l00066">66</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a27ae356a9ad5be3bb86313d5d0158ebb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef std::vector&lt;<a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>*&gt; <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">geos::operation::sharedpaths::SharedPathsOp::PathList</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>LineString vector (list of edges) </p>
<p>Definition at line <a class="el" href="SharedPathsOp_8h_source.html#l00070">70</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7c7335dd1e4a567c68f5878669d78876"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::operation::sharedpaths::SharedPathsOp::SharedPathsOp </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td>
<td class="paramname"><em>g1</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> &amp;&#160;</td>
<td class="paramname"><em>g2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">g1</td><td>First geometry. Must be linear.</td></tr>
<tr><td class="paramname">g2</td><td>Second geometry. Must be linear. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a53a7e3c5b32e56cd068eb5792a84f27b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::operation::sharedpaths::SharedPathsOp::SharedPathsOp </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a> &amp;&#160;</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>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aab68bee1c4303012904208794e17ad16"></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::sharedpaths::SharedPathsOp::checkLinealInput </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td>
<td class="paramname"><em>g</em></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>Throw an IllegalArgumentException if the geom is not linear. </p>
</div>
</div>
<a class="anchor" id="a59f424a9f0096a6590a5e050a0bb001a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void geos::operation::sharedpaths::SharedPathsOp::clearEdges </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>from</em></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>Delete all edges in the list. </p>
</div>
</div>
<a class="anchor" id="a69e2543f09d8ada7a5c07c6e25eeca10"></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::sharedpaths::SharedPathsOp::findLinearIntersections </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>to</em></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>Get all the linear intersections</p>
<p>Ownership of linestring pushed to the given container is transferred to caller. See clearEdges for a deep release if you need one. </p>
</div>
</div>
<a class="anchor" id="a394f50f897a722cbc9cdb7647df9ca5c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void geos::operation::sharedpaths::SharedPathsOp::getSharedPaths </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>sameDirection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>oppositeDirection</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get shared paths</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">sameDirection</td><td>Shared edges having the same direction are pushed onto this vector. They'll be of type <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>. Ownership of the edges is tranferred.</td></tr>
<tr><td class="paramname">oppositeDirection</td><td>Shared edges having the opposite direction are pushed onto this vector. They'll be of type <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>. Ownership of the edges is tranferred. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a07aaf84920b13a306423845afe8ca82e"></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::sharedpaths::SharedPathsOp::isForward </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> &amp;&#160;</td>
<td class="paramname"><em>edge</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> &amp;&#160;</td>
<td class="paramname"><em>geom</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 the given edge goes forward or backward on the given line.</p>
<p>PRECONDITION: It is assumed the edge fully lays on the geometry </p>
</div>
</div>
<a class="anchor" id="a56e4e7d82f689ae3a47ef9d983e3d721"></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::sharedpaths::SharedPathsOp::isSameDirection </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> &amp;&#160;</td>
<td class="paramname"><em>edge</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if the given edge goes in the same direction over the two geometries. </p>
<p>Definition at line <a class="el" href="SharedPathsOp_8h_source.html#l00142">142</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4a1b485b4f6b003320f2f1ed281f0e26"></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_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a>&amp; geos::operation::sharedpaths::SharedPathsOp::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html">SharedPathsOp</a> &amp;&#160;</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>
<a class="anchor" id="a145b9be28358023fb4d50677a9a2b870"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void geos::operation::sharedpaths::SharedPathsOp::sharedPathsOp </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td>
<td class="paramname"><em>g1</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> &amp;&#160;</td>
<td class="paramname"><em>g2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>sameDirection</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1operation_1_1sharedpaths_1_1SharedPathsOp.html#a27ae356a9ad5be3bb86313d5d0158ebb">PathList</a> &amp;&#160;</td>
<td class="paramname"><em>oppositeDirection</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">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Find paths shared between two linear geometries</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">g1</td><td>First geometry. Must be linear.</td></tr>
<tr><td class="paramname">g2</td><td>Second geometry. Must be linear.</td></tr>
<tr><td class="paramname">sameDirection</td><td>Shared edges having the same direction are pushed onto this vector. They'll be of type LineString. Ownership of the edges is tranferred.</td></tr>
<tr><td class="paramname">oppositeDirection</td><td>Shared edges having the opposite direction are pushed onto this vector. They'll be of type <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>. Ownership of the edges is tranferred. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="afe504a4737b389c487fe6352e3d310d0"></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_1Geometry.html">geom::Geometry</a>&amp; geos::operation::sharedpaths::SharedPathsOp::_g1</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="SharedPathsOp_8h_source.html#l00150">150</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="a834ee3b80850cb0cb650f16e091b6a7d"></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_1Geometry.html">geom::Geometry</a>&amp; geos::operation::sharedpaths::SharedPathsOp::_g2</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="SharedPathsOp_8h_source.html#l00151">151</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="aeb69f71437468a53eb59d6b3fae7ac61"></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_1GeometryFactory.html">geom::GeometryFactory</a>&amp; geos::operation::sharedpaths::SharedPathsOp::_gf</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="SharedPathsOp_8h_source.html#l00152">152</a> of file <a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="SharedPathsOp_8h_source.html">SharedPathsOp.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>