<!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::noding::SegmentNode 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_1noding.html">noding</a> </li> <li><a class="el" href="classgeos_1_1noding_1_1SegmentNode.html">geos::noding::SegmentNode</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::noding::SegmentNode Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::noding::SegmentNode" --> <p>Represents an intersection point between two <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a>. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="SegmentNode_8h_source.html">SegmentNode.h</a>></code></p> <p><a href="classgeos_1_1noding_1_1SegmentNode-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentNode.html#a33563ced8f3c77028571fd26dbcdb2e9">SegmentNode</a> (const <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html">NodedSegmentString</a> &ss, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &nCoord, unsigned int nSegmentIndex, int nSegmentOctant)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a node on the given <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a>. <a href="#a33563ced8f3c77028571fd26dbcdb2e9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3711af5a5d599412c0fb916d1155d2a6"></a><!-- doxytag: member="geos::noding::SegmentNode::isInterior" ref="a3711af5a5d599412c0fb916d1155d2a6" args="() const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentNode.html#a3711af5a5d599412c0fb916d1155d2a6">isInterior</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if this Node is *internal* (not on the boundary) of the corresponding segment. Currently only the *first* segment endpoint is checked, actually. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab45f7bf70221579d7c61c270bd6f35d3"></a><!-- doxytag: member="geos::noding::SegmentNode::isEndPoint" ref="ab45f7bf70221579d7c61c270bd6f35d3" args="(unsigned int maxSegmentIndex) const " --> bool </td><td class="memItemRight" valign="bottom"><b>isEndPoint</b> (unsigned int maxSegmentIndex) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentNode.html#af285b8f5ec71a473c13a4101fdf753e4">compareTo</a> (const <a class="el" href="classgeos_1_1noding_1_1SegmentNode.html">SegmentNode</a> &other)</td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5656325aac7b3507394727895094625d"></a><!-- doxytag: member="geos::noding::SegmentNode::coord" ref="a5656325aac7b3507394727895094625d" 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_1noding_1_1SegmentNode.html#a5656325aac7b3507394727895094625d">coord</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">the point of intersection (own copy) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a746b101d341a2ce9c54e6f8d43deeeca"></a><!-- doxytag: member="geos::noding::SegmentNode::segmentIndex" ref="a746b101d341a2ce9c54e6f8d43deeeca" args="" --> unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentNode.html#a746b101d341a2ce9c54e6f8d43deeeca">segmentIndex</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">the index of the containing line segment in the parent edge <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="a7e812da48a2eb6b176e92e5183d615cc"></a><!-- doxytag: member="geos::noding::SegmentNode::operator<<" ref="a7e812da48a2eb6b176e92e5183d615cc" args="(std::ostream &os, const SegmentNode &n)" --> std::ostream & </td><td class="memItemRight" valign="bottom"><b>operator<<</b> (std::ostream &os, const <a class="el" href="classgeos_1_1noding_1_1SegmentNode.html">SegmentNode</a> &n)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Represents an intersection point between two <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a>. </p> <p>Final class. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a33563ced8f3c77028571fd26dbcdb2e9"></a><!-- doxytag: member="geos::noding::SegmentNode::SegmentNode" ref="a33563ced8f3c77028571fd26dbcdb2e9" args="(const NodedSegmentString &ss, const geom::Coordinate &nCoord, unsigned int nSegmentIndex, int nSegmentOctant)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::noding::SegmentNode::SegmentNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html">NodedSegmentString</a> & </td> <td class="paramname"> <em>ss</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>nCoord</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>nSegmentIndex</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSegmentOctant</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Construct a node on the given <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ss</em> </td><td>the parent <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a></td></tr> <tr><td valign="top"></td><td valign="top"><em>coord</em> </td><td>the coordinate of the intersection, will be copied</td></tr> <tr><td valign="top"></td><td valign="top"><em>nSegmentIndex</em> </td><td>the index of the segment on parent <a class="el" href="classgeos_1_1noding_1_1NodedSegmentString.html" title="Represents a list of contiguous line segments, and supports noding the segments.">NodedSegmentString</a> where the Node is located.</td></tr> <tr><td valign="top"></td><td valign="top"><em>nSegmentOctant</em> </td><td></td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="af285b8f5ec71a473c13a4101fdf753e4"></a><!-- doxytag: member="geos::noding::SegmentNode::compareTo" ref="af285b8f5ec71a473c13a4101fdf753e4" args="(const SegmentNode &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int geos::noding::SegmentNode::compareTo </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1noding_1_1SegmentNode.html">SegmentNode</a> & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>-1 this EdgeIntersection is located before the argument location </dd> <dd> 0 this EdgeIntersection is at the argument location </dd> <dd> 1 this EdgeIntersection is located after the argument location </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="SegmentNode_8h_source.html">SegmentNode.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>