geos_390_docs/classgeos_1_1noding_1_1Simp...

299 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::noding::SimpleNoder 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_1noding.html">noding</a></li><li class="navelem"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html">SimpleNoder</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_1noding_1_1SimpleNoder-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::noding::SimpleNoder Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Nodes a set of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s by performing a brute-force comparison of every segment to every other one.
<a href="classgeos_1_1noding_1_1SimpleNoder.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for geos::noding::SimpleNoder:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1noding_1_1SimpleNoder__inherit__graph.svg" width="207" height="207"><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>
<div class="dynheader">
Collaboration diagram for geos::noding::SimpleNoder:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1noding_1_1SimpleNoder__coll__graph.svg" width="427" height="224"><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:a9756db326cb45d1fa05120e8e8e842b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html#a9756db326cb45d1fa05120e8e8e842b0">SimpleNoder</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> *nSegInt=nullptr)</td></tr>
<tr class="separator:a9756db326cb45d1fa05120e8e8e842b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accc5199584fd3097fc1ed71c450c29a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html#accc5199584fd3097fc1ed71c450c29a9">computeNodes</a> (std::vector&lt; <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> * &gt; *inputSegmentStrings) override</td></tr>
<tr class="memdesc:accc5199584fd3097fc1ed71c450c29a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the noding for a collection of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. <a href="#accc5199584fd3097fc1ed71c450c29a9">More...</a><br /></td></tr>
<tr class="separator:accc5199584fd3097fc1ed71c450c29a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f5411f07b5ff998a409648237286dc"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html#a26f5411f07b5ff998a409648237286dc">getNodedSubstrings</a> () const override</td></tr>
<tr class="memdesc:a26f5411f07b5ff998a409648237286dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a Collection of fully noded <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. <a href="#a26f5411f07b5ff998a409648237286dc">More...</a><br /></td></tr>
<tr class="separator:a26f5411f07b5ff998a409648237286dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classgeos_1_1noding_1_1SinglePassNoder')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html">geos::noding::SinglePassNoder</a></td></tr>
<tr class="memitem:a72b15d56b266fdcd09517c98f4a9ec6c inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#a72b15d56b266fdcd09517c98f4a9ec6c">SinglePassNoder</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> *nSegInt=nullptr)</td></tr>
<tr class="separator:a72b15d56b266fdcd09517c98f4a9ec6c inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c1a1c630f73af884cd4ab273d897c3f inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#a0c1a1c630f73af884cd4ab273d897c3f">~SinglePassNoder</a> () override</td></tr>
<tr class="separator:a0c1a1c630f73af884cd4ab273d897c3f inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9c1fb39270a9a2917e40d65c3b1303d inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#af9c1fb39270a9a2917e40d65c3b1303d">setSegmentIntersector</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> *newSegInt)</td></tr>
<tr class="memdesc:af9c1fb39270a9a2917e40d65c3b1303d inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the <a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html" title="Processes possible intersections detected by a Noder. ">SegmentIntersector</a> to use with this noder. <a href="#af9c1fb39270a9a2917e40d65c3b1303d">More...</a><br /></td></tr>
<tr class="separator:af9c1fb39270a9a2917e40d65c3b1303d inherit pub_methods_classgeos_1_1noding_1_1SinglePassNoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classgeos_1_1noding_1_1Noder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classgeos_1_1noding_1_1Noder')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classgeos_1_1noding_1_1Noder.html">geos::noding::Noder</a></td></tr>
<tr class="memitem:a51af7a896051686b867d1e6aac6f8387 inherit pub_methods_classgeos_1_1noding_1_1Noder"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1Noder.html#a51af7a896051686b867d1e6aac6f8387">~Noder</a> ()</td></tr>
<tr class="separator:a51af7a896051686b867d1e6aac6f8387 inherit pub_methods_classgeos_1_1noding_1_1Noder"><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:a8b4b8c7d255be64eac8655c8940f720e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html#a8b4b8c7d255be64eac8655c8940f720e">computeIntersects</a> (<a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e0, <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *e1)</td></tr>
<tr class="separator:a8b4b8c7d255be64eac8655c8940f720e"><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:a69870daa13f53a8ff424fa965d791379"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SimpleNoder.html#a69870daa13f53a8ff424fa965d791379">nodedSegStrings</a></td></tr>
<tr class="separator:a69870daa13f53a8ff424fa965d791379"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classgeos_1_1noding_1_1Noder"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classgeos_1_1noding_1_1Noder')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classgeos_1_1noding_1_1Noder.html">geos::noding::Noder</a></td></tr>
<tr class="memitem:a44ae3fde11fa58e6f3637ebd67f6571e inherit pro_methods_classgeos_1_1noding_1_1Noder"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1Noder.html#a44ae3fde11fa58e6f3637ebd67f6571e">Noder</a> ()</td></tr>
<tr class="separator:a44ae3fde11fa58e6f3637ebd67f6571e inherit pro_methods_classgeos_1_1noding_1_1Noder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classgeos_1_1noding_1_1SinglePassNoder"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classgeos_1_1noding_1_1SinglePassNoder')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html">geos::noding::SinglePassNoder</a></td></tr>
<tr class="memitem:af33939516a02955a5ccf8c0def027663 inherit pro_attribs_classgeos_1_1noding_1_1SinglePassNoder"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#af33939516a02955a5ccf8c0def027663">segInt</a></td></tr>
<tr class="memdesc:af33939516a02955a5ccf8c0def027663 inherit pro_attribs_classgeos_1_1noding_1_1SinglePassNoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Externally owned. <a href="#af33939516a02955a5ccf8c0def027663">More...</a><br /></td></tr>
<tr class="separator:af33939516a02955a5ccf8c0def027663 inherit pro_attribs_classgeos_1_1noding_1_1SinglePassNoder"><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>Nodes a set of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s by performing a brute-force comparison of every segment to every other one. </p>
<p>This has n^2 performance, so is too slow for use on large numbers of segments.</p>
<dl class="section version"><dt>Version</dt><dd>1.7 </dd></dl>
<p>Definition at line <a class="el" href="SimpleNoder_8h_source.html#l00051">51</a> of file <a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9756db326cb45d1fa05120e8e8e842b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::noding::SimpleNoder::SimpleNoder </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentIntersector.html">SegmentIntersector</a> *&#160;</td>
<td class="paramname"><em>nSegInt</em> = <code>nullptr</code></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="SimpleNoder_8h_source.html#l00057">57</a> of file <a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8b4b8c7d255be64eac8655c8940f720e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void geos::noding::SimpleNoder::computeIntersects </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *&#160;</td>
<td class="paramname"><em>e0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> *&#160;</td>
<td class="paramname"><em>e1</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 class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="accc5199584fd3097fc1ed71c450c29a9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::noding::SimpleNoder::computeNodes </td>
<td>(</td>
<td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a> * &gt; *&#160;</td>
<td class="paramname"><em>segStrings</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the noding for a collection of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">segStrings</td><td>a collection of <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s to node </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#a4c945f02ead1a39d5653e23d893cbee6">geos::noding::SinglePassNoder</a>.</p>
</div>
</div>
<a class="anchor" id="a26f5411f07b5ff998a409648237286dc"></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;<a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>*&gt;* geos::noding::SimpleNoder::getNodedSubstrings </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a Collection of fully noded <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. </p>
<p>The SegmentStrings have the same context as their parent.</p>
<dl class="section return"><dt>Returns</dt><dd>a Collection of SegmentStrings </dd></dl>
<p>Implements <a class="el" href="classgeos_1_1noding_1_1SinglePassNoder.html#a46dcb940d54812acd02617828b66abd4">geos::noding::SinglePassNoder</a>.</p>
<p>Definition at line <a class="el" href="SimpleNoder_8h_source.html#l00065">65</a> of file <a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.h</a>.</p>
<p>References <a class="el" href="NodedSegmentString_8h_source.html#l00063">geos::noding::NodedSegmentString::getNodedSubstrings()</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1noding_1_1SimpleNoder_a26f5411f07b5ff998a409648237286dc_cgraph.svg" width="100%" height="392"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a69870daa13f53a8ff424fa965d791379"></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;<a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>*&gt;* geos::noding::SimpleNoder::nodedSegStrings</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="SimpleNoder_8h_source.html#l00053">53</a> of file <a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="SimpleNoder_8h_source.html">SimpleNoder.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>