<!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"/> <title>GEOS: geos::planargraph::Node Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div 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 class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1planargraph.html">planargraph</a> </li> <li><a class="el" href="classgeos_1_1planargraph_1_1Node.html">geos::planargraph::Node</a> </li> </ul> </div> </div> <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="#pro-attribs">Protected Attributes</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::planargraph::Node Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::planargraph::Node" --><!-- doxytag: inherits="geos::planargraph::GraphComponent" --> <p>A node in a <a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html" title="Represents a directed graph which is embeddable in a planar surface.">PlanarGraph</a> is a location where 0 or more <a class="el" href="classgeos_1_1planargraph_1_1Edge.html" title="Represents an undirected edge of a PlanarGraph.">Edge</a> meet. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="planargraph_2Node_8h_source.html">Node.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::planargraph::Node:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1planargraph_1_1Node.png" usemap="#geos::planargraph::Node_map" alt=""/> <map id="geos::planargraph::Node_map" name="geos::planargraph::Node_map"> <area href="classgeos_1_1planargraph_1_1GraphComponent.html" alt="geos::planargraph::GraphComponent" shape="rect" coords="0,0,218,24"/> </map> </div> <p><a href="classgeos_1_1planargraph_1_1Node-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af46bb71adc43a360debca643b4ba40eb"></a><!-- doxytag: member="geos::planargraph::Node::Node" ref="af46bb71adc43a360debca643b4ba40eb" args="(const geom::Coordinate &newPt)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#af46bb71adc43a360debca643b4ba40eb">Node</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &newPt)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> with the given location. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c86e9c7a21420231ffe0b54c4359eb5"></a><!-- doxytag: member="geos::planargraph::Node::Node" ref="a5c86e9c7a21420231ffe0b54c4359eb5" args="(geom::Coordinate &newPt, DirectedEdgeStar *newDeStar)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#a5c86e9c7a21420231ffe0b54c4359eb5">Node</a> (<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &newPt, <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html">DirectedEdgeStar</a> *newDeStar)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a> with the given location and collection of outgoing DirectedEdges. Takes ownership of the given DirectedEdgeStar!! <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf5bb7cfcfbc0a36e85a6ab6038f9ed7"></a><!-- doxytag: member="geos::planargraph::Node::getCoordinate" ref="adf5bb7cfcfbc0a36e85a6ab6038f9ed7" args="()" --> <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_1planargraph_1_1Node.html#adf5bb7cfcfbc0a36e85a6ab6038f9ed7">getCoordinate</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the location of this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98c84ddcbaeaec9eb3b3b348c5cb3d03"></a><!-- doxytag: member="geos::planargraph::Node::addOutEdge" ref="a98c84ddcbaeaec9eb3b3b348c5cb3d03" args="(DirectedEdge *de)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#a98c84ddcbaeaec9eb3b3b348c5cb3d03">addOutEdge</a> (<a class="el" href="classgeos_1_1planargraph_1_1DirectedEdge.html">DirectedEdge</a> *de)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an outgoing <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a> to this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11a8a01833a7f22dbdb892002e46e271"></a><!-- doxytag: member="geos::planargraph::Node::getOutEdges" ref="a11a8a01833a7f22dbdb892002e46e271" args="()" --> <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html">DirectedEdgeStar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#a11a8a01833a7f22dbdb892002e46e271">getOutEdges</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the collection of DirectedEdges that leave this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3b062948711e73675070b266f1dd670"></a><!-- doxytag: member="geos::planargraph::Node::getOutEdges" ref="ae3b062948711e73675070b266f1dd670" args="() const " --> const <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html">DirectedEdgeStar</a> * </td><td class="memItemRight" valign="bottom"><b>getOutEdges</b> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51d969287fd1db1a1787bc302cf868c8"></a><!-- doxytag: member="geos::planargraph::Node::getDegree" ref="a51d969287fd1db1a1787bc302cf868c8" args="() const " --> size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#a51d969287fd1db1a1787bc302cf868c8">getDegree</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of edges around this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef19b4aba1930caaff52b4a79c37e307"></a><!-- doxytag: member="geos::planargraph::Node::getIndex" ref="aef19b4aba1930caaff52b4a79c37e307" args="(Edge *edge)" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#aef19b4aba1930caaff52b4a79c37e307">getIndex</a> (<a class="el" href="classgeos_1_1planargraph_1_1Edge.html">Edge</a> *edge)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the zero-based index of the given <a class="el" href="classgeos_1_1planargraph_1_1Edge.html" title="Represents an undirected edge of a PlanarGraph.">Edge</a>, after sorting in ascending order by angle with the positive x-axis. <br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static std::vector< <a class="el" href="classgeos_1_1planargraph_1_1Edge.html">Edge</a> * > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#acbeee7e7bc4bfe906c3e33c1e1fffd7f">getEdgesBetween</a> (<a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *node0, <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> *node1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns all Edges that connect the two nodes (which are assumed to be different). <a href="#acbeee7e7bc4bfe906c3e33c1e1fffd7f"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7678a19007537325f5474cf69bc73f1"></a><!-- doxytag: member="geos::planargraph::Node::pt" ref="ae7678a19007537325f5474cf69bc73f1" args="" --> <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_1planargraph_1_1Node.html#ae7678a19007537325f5474cf69bc73f1">pt</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The location of this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7c54c5010c7d239bdc6e10d0165a89c"></a><!-- doxytag: member="geos::planargraph::Node::deStar" ref="ab7c54c5010c7d239bdc6e10d0165a89c" args="" --> <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdgeStar.html">DirectedEdgeStar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#ab7c54c5010c7d239bdc6e10d0165a89c">deStar</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The collection of DirectedEdges that leave this <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0e83b3c048d2aae2ff19a4629820b596"></a><!-- doxytag: member="geos::planargraph::Node::operator<<" ref="a0e83b3c048d2aae2ff19a4629820b596" args="(std::ostream &os, const Node &)" --> std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1planargraph_1_1Node.html#a0e83b3c048d2aae2ff19a4629820b596">operator<<</a> (std::ostream &os, const <a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> &)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Print a <a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a>. <br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A node in a <a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html" title="Represents a directed graph which is embeddable in a planar surface.">PlanarGraph</a> is a location where 0 or more <a class="el" href="classgeos_1_1planargraph_1_1Edge.html" title="Represents an undirected edge of a PlanarGraph.">Edge</a> meet. </p> <p>A node is connected to each of its incident Edges via an outgoing <a class="el" href="classgeos_1_1planargraph_1_1DirectedEdge.html" title="Represents a directed edge in a PlanarGraph.">DirectedEdge</a>. Some clients using a <code><a class="el" href="classgeos_1_1planargraph_1_1PlanarGraph.html" title="Represents a directed graph which is embeddable in a planar surface.">PlanarGraph</a></code> may want to subclass <code><a class="el" href="classgeos_1_1planargraph_1_1Node.html" title="A node in a PlanarGraph is a location where 0 or more Edge meet.">Node</a></code> to add their own application-specific data and methods. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="acbeee7e7bc4bfe906c3e33c1e1fffd7f"></a><!-- doxytag: member="geos::planargraph::Node::getEdgesBetween" ref="acbeee7e7bc4bfe906c3e33c1e1fffd7f" args="(Node *node0, Node *node1)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static std::vector<<a class="el" href="classgeos_1_1planargraph_1_1Edge.html">Edge</a>*>* geos::planargraph::Node::getEdgesBetween </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td> <td class="paramname"> <em>node0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgeos_1_1planargraph_1_1Node.html">Node</a> * </td> <td class="paramname"> <em>node1</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns all Edges that connect the two nodes (which are assumed to be different). </p> <p>Note: returned vector is newly allocated, ownership to the caller. </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="planargraph_2Node_8h_source.html">planargraph/Node.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>