Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5035839f674c88dea1f7928a86fbdc64 > files > 1221

geos-devel-3.2.1-3.fc14.x86_64.rpm

<!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::simplify::DouglasPeuckerSimplifier 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespacegeos.html">geos</a>      </li>
      <li><b>simplify</b>      </li>
      <li><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerSimplifier.html">geos::simplify::DouglasPeuckerSimplifier</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>geos::simplify::DouglasPeuckerSimplifier Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="geos::simplify::DouglasPeuckerSimplifier" -->
<p>Simplifies a Geometry using the standard Douglas-Peucker algorithm.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="DouglasPeuckerSimplifier_8h_source.html">DouglasPeuckerSimplifier.h</a>&gt;</code></p>

<p><a href="classgeos_1_1simplify_1_1DouglasPeuckerSimplifier-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="a93a33955dfb393ba359281623bd75616"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerSimplifier::DouglasPeuckerSimplifier" ref="a93a33955dfb393ba359281623bd75616" args="(const geom::Geometry *geom)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>DouglasPeuckerSimplifier</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerSimplifier.html#aef7fadc6a278ebcecb6c21813306a328">setDistanceTolerance</a> (double tolerance)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the distance tolerance for the simplification.  <a href="#aef7fadc6a278ebcecb6c21813306a328"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41f6f32818f2223aac67b4b4eadf9de5"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerSimplifier::getResultGeometry" ref="a41f6f32818f2223aac67b4b4eadf9de5" args="()" -->
std::auto_ptr&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>getResultGeometry</b> ()</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"><a class="anchor" id="a34a2490b21fcc91280978a3e71c0e298"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerSimplifier::simplify" ref="a34a2490b21fcc91280978a3e71c0e298" args="(const geom::Geometry *geom, double tolerance)" -->
static std::auto_ptr<br class="typebreak"/>
&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>simplify</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom, double tolerance)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Simplifies a Geometry using the standard Douglas-Peucker algorithm. </p>
<p>Ensures that any polygonal geometries returned are valid. Simple lines are not guaranteed to remain simple after simplification.</p>
<p>Note that in general D-P does not preserve topology - e.g. polygons can be split, collapse to lines or disappear holes can be created or disappear, and lines can cross. To simplify geometry while preserving topology use <a class="el" href="classgeos_1_1simplify_1_1TopologyPreservingSimplifier.html" title="Simplifies a geometry, ensuring that the result is a valid geometry having the same dimension and num...">TopologyPreservingSimplifier</a>. (However, using D-P is significantly faster). </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aef7fadc6a278ebcecb6c21813306a328"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerSimplifier::setDistanceTolerance" ref="aef7fadc6a278ebcecb6c21813306a328" args="(double tolerance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geos::simplify::DouglasPeuckerSimplifier::setDistanceTolerance </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>tolerance</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the distance tolerance for the simplification. </p>
<p>All vertices in the simplified geometry will be within this distance of the original geometry. The tolerance value must be non-negative. A tolerance value of zero is effectively a no-op.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>distanceTolerance</em>&nbsp;</td><td>the approximation 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="DouglasPeuckerSimplifier_8h_source.html">DouglasPeuckerSimplifier.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>