geos_390_docs/planargraph_2Node_8h_source...

91 lines
31 KiB
HTML
Raw Normal View History

2020-12-23 18:34:09 -08:00
<!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: Node.h Source File</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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_0322b1859b1398f2d2fce5c1dcb1bde4.html">planargraph</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">planargraph/Node.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="planargraph_2Node_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#ifndef GEOS_PLANARGRAPH_NODE_H</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#define GEOS_PLANARGRAPH_NODE_H</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="export_8h.html">geos/export.h</a>&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="planargraph_2GraphComponent_8h.html">geos/planargraph/GraphComponent.h</a>&gt;</span> <span class="comment">// for inheritance</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="planargraph_2DirectedEdgeStar_8h.html">geos/planargraph/DirectedEdgeStar.h</a>&gt;</span> <span class="comment">// for inlines</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Coordinate_8h.html">geos/geom/Coordinate.h</a>&gt;</span> <span class="comment">// for composition</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// Forward declarations</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">namespace </span><a
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_aef19b4aba1930caaff52b4a79c37e307"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#aef19b4aba1930caaff52b4a79c37e307">geos::planargraph::Node::getIndex</a></div><div class="ttdeci">int getIndex(Edge *edge)</div><div class="ttdoc">Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the po...</div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00141">planargraph/Node.h:141</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_ab7c54c5010c7d239bdc6e10d0165a89c"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#ab7c54c5010c7d239bdc6e10d0165a89c">geos::planargraph::Node::deStar</a></div><div class="ttdeci">DirectedEdgeStar * deStar</div><div class="ttdoc">The collection of DirectedEdges that leave this Node. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00052">planargraph/Node.h:52</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1DirectedEdgeStar_html"><div class="ttname"><a href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html">geos::planargraph::DirectedEdgeStar</a></div><div class="ttdoc">A sorted collection of DirectedEdge which leave a Node in a PlanarGraph. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2DirectedEdgeStar_8h_source.html#l00043">planargraph/DirectedEdgeStar.h:43</a></div></div>
<div class="ttc" id="export_8h_html_ae36df939090171f6e9a28a8cb6254fea"><div class="ttname"><a href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a></div><div class="ttdeci">#define GEOS_DLL</div><div class="ttdef"><b>Definition:</b> <a href="export_8h_source.html#l00028">export.h:28</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_af46bb71adc43a360debca643b4ba40eb"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#af46bb71adc43a360debca643b4ba40eb">geos::planargraph::Node::Node</a></div><div class="ttdeci">Node(const geom::Coordinate &amp;newPt)</div><div class="ttdoc">Constructs a Node with the given location. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00069">planargraph/Node.h:69</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1DirectedEdgeStar_html_a804487abbc01c23d2c4dbdcd50d8229b"><div class="ttname"><a href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html#a804487abbc01c23d2c4dbdcd50d8229b">geos::planargraph::DirectedEdgeStar::getIndex</a></div><div class="ttdeci">int getIndex(const Edge *edge)</div><div class="ttdoc">Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the po...</div></div>
<div class="ttc" id="planargraph_2DirectedEdgeStar_8h_html"><div class="ttname"><a href="planargraph_2DirectedEdgeStar_8h.html">DirectedEdgeStar.h</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Coordinate_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Coordinate.html">geos::geom::Coordinate</a></div><div class="ttdoc">Coordinate is the lightweight class used to store coordinates. </div><div class="ttdef"><b>Definition:</b> <a href="Coordinate_8h_source.html#l00060">Coordinate.h:60</a></div></div>
<div class="ttc" id="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_a6f27642d22c4a90dea3854d973605251"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#a6f27642d22c4a90dea3854d973605251">geos::planargraph::Node::~Node</a></div><div class="ttdeci">~Node() override</div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00076">planargraph/Node.h:76</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1DirectedEdge_html"><div class="ttname"><a href="classgeos_1_1planargraph_1_1DirectedEdge.html">geos::planargraph::DirectedEdge</a></div><div class="ttdoc">Represents a directed edge in a PlanarGraph. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2DirectedEdge_8h_source.html#l00046">planargraph/DirectedEdge.h:46</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_a51d969287fd1db1a1787bc302cf868c8"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#a51d969287fd1db1a1787bc302cf868c8">geos::planargraph::Node::getDegree</a></div><div class="ttdeci">size_t getDegree() const </div><div class="ttdoc">Returns the number of edges around this Node. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00130">planargraph/Node.h:130</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_ae3b062948711e73675070b266f1dd670"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#ae3b062948711e73675070b266f1dd670">geos::planargraph::Node::getOutEdges</a></div><div class="ttdeci">const DirectedEdgeStar * getOutEdges() const </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00121">planargraph/Node.h:121</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_a5c86e9c7a21420231ffe0b54c4359eb5"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#a5c86e9c7a21420231ffe0b54c4359eb5">geos::planargraph::Node::Node</a></div><div class="ttdeci">Node(geom::Coordinate &amp;newPt, DirectedEdgeStar *newDeStar)</div><div class="ttdoc">Constructs a Node with the given location and collection of outgoing DirectedEdges. Takes ownership of the given DirectedEdgeStar!! </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00087">planargraph/Node.h:87</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_a11a8a01833a7f22dbdb892002e46e271"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#a11a8a01833a7f22dbdb892002e46e271">geos::planargraph::Node::getOutEdges</a></div><div class="ttdeci">DirectedEdgeStar * getOutEdges()</div><div class="ttdoc">Returns the collection of DirectedEdges that leave this Node. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00116">planargraph/Node.h:116</a></div></div>
<div class="ttc" id="planargraph_2GraphComponent_8h_html"><div class="ttname"><a href="planargraph_2GraphComponent_8h.html">GraphComponent.h</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1DirectedEdgeStar_html_a8169a46841ebc67d1686a0c510fb54a4"><div class="ttname"><a href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html#a8169a46841ebc67d1686a0c510fb54a4">geos::planargraph::DirectedEdgeStar::getDegree</a></div><div class="ttdeci">std::size_t getDegree() const </div><div class="ttdoc">Returns the number of edges around the Node associated with this DirectedEdgeStar. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2DirectedEdgeStar_8h_source.html#l00099">planargraph/DirectedEdgeStar.h:99</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1DirectedEdgeStar_html_a029879e8739b15d681c1011aa633adeb"><div class="ttname"><a href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html#a029879e8739b15d681c1011aa633adeb">geos::planargraph::DirectedEdgeStar::add</a></div><div class="ttdeci">void add(DirectedEdge *de)</div><div class="ttdoc">Adds a new member to this DirectedEdgeStar. </div></div>
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Edge_html"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Edge.html">geos::planargraph::Edge</a></div><div class="ttdoc">Represents an undirected edge of a PlanarGraph. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Edge_8h_source.html#l00054">planargraph/Edge.h:54</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_a98c84ddcbaeaec9eb3b3b348c5cb3d03"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#a98c84ddcbaeaec9eb3b3b348c5cb3d03">geos::planargraph::Node::addOutEdge</a></div><div class="ttdeci">void addOutEdge(DirectedEdge *de)</div><div class="ttdoc">Adds an outgoing DirectedEdge to this Node. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00106">planargraph/Node.h:106</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html_ae7678a19007537325f5474cf69bc73f1"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html#ae7678a19007537325f5474cf69bc73f1">geos::planargraph::Node::pt</a></div><div class="ttdeci">geom::Coordinate pt</div><div class="ttdoc">The location of this Node. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00049">planargraph/Node.h:49</a></div></div>
<div class="ttc" id="Coordinate_8h_html"><div class="ttname"><a href="Coordinate_8h.html">Coordinate.h</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1GraphComponent_html"><div class="ttname"><a href="classgeos_1_1planargraph_1_1GraphComponent.html">geos::planargraph::GraphComponent</a></div><div class="ttdoc">The base class for all graph component classes. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2GraphComponent_8h_source.html#l00046">planargraph/GraphComponent.h:46</a></div></div>
<div class="ttc" id="classgeos_1_1planargraph_1_1Node_html"><div class="ttname"><a href="classgeos_1_1planargraph_1_1Node.html">geos::planargraph::Node</a></div><div class="ttdoc">A node in a PlanarGraph is a location where 0 or more Edge meet. </div><div class="ttdef"><b>Definition:</b> <a href="planargraph_2Node_8h_source.html#l00045">planargraph/Node.h:45</a></div></div>
<div class="ttc" id="namespacegeos_1_1planargraph_html_a0d3fb7cf1518ef4fd51731f97d7fcdb3"><div class="ttname"><a href="namespacegeos_1_1planargraph.html#a0d3fb7cf1518ef4fd51731f97d7fcdb3">geos::planargraph::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;, const DirectedEdge &amp;)</div><div class="ttdoc">Output operator. </div></div>
</div><!-- fragment --></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>