<!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::operation::overlay::snap::LineStringSnapper 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_1operation.html">operation</a> </li> <li><a class="el" href="namespacegeos_1_1operation_1_1overlay.html">overlay</a> </li> <li><b>snap</b> </li> <li><a class="el" href="classgeos_1_1operation_1_1overlay_1_1snap_1_1LineStringSnapper.html">geos::operation::overlay::snap::LineStringSnapper</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::operation::overlay::snap::LineStringSnapper Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::operation::overlay::snap::LineStringSnapper" --> <p>Snaps the vertices and segments of a LineString to a set of target snap vertices. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="LineStringSnapper_8h_source.html">LineStringSnapper.h</a>></code></p> <p><a href="classgeos_1_1operation_1_1overlay_1_1snap_1_1LineStringSnapper-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_1operation_1_1overlay_1_1snap_1_1LineStringSnapper.html#ac1ed05effa3c85f646a7be278f460fdc">LineStringSnapper</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59345d3a409b5d2ebe01fcfcdcca92cb">geom::Coordinate::Vect</a> &nSrcPts, double nSnapTol)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af49059e775d14c7d3199b54942f4a604"></a><!-- doxytag: member="geos::operation::overlay::snap::LineStringSnapper::snapTo" ref="af49059e775d14c7d3199b54942f4a604" args="(const geom::Coordinate::ConstVect &snapPts)" --> std::auto_ptr<br class="typebreak"/> < <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59345d3a409b5d2ebe01fcfcdcca92cb">geom::Coordinate::Vect</a> > </td><td class="memItemRight" valign="bottom"><b>snapTo</b> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a1735d833ea7d033b82c317f883948525">geom::Coordinate::ConstVect</a> &snapPts)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Snaps the vertices and segments of a LineString to a set of target snap vertices. </p> <p>A snapping distance tolerance is used to control where snapping is performed. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ac1ed05effa3c85f646a7be278f460fdc"></a><!-- doxytag: member="geos::operation::overlay::snap::LineStringSnapper::LineStringSnapper" ref="ac1ed05effa3c85f646a7be278f460fdc" args="(const geom::Coordinate::Vect &nSrcPts, double nSnapTol)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::operation::overlay::snap::LineStringSnapper::LineStringSnapper </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59345d3a409b5d2ebe01fcfcdcca92cb">geom::Coordinate::Vect</a> & </td> <td class="paramname"> <em>nSrcPts</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>nSnapTol</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new snapper using the given points as source points to be snapped.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>nSrcPts</em> </td><td>the points to snap </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSnapTolerance</em> </td><td>the snap tolerance to use </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="LineStringSnapper_8h_source.html">LineStringSnapper.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>