<!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::precision::CommonBitsRemover 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_1precision.html">precision</a> </li> <li><a class="el" href="classgeos_1_1precision_1_1CommonBitsRemover.html">geos::precision::CommonBitsRemover</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::precision::CommonBitsRemover Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::precision::CommonBitsRemover" --> <p>Allow computing and removing common mantissa bits from one or more Geometries. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="CommonBitsRemover_8h_source.html">CommonBitsRemover.h</a>></code></p> <p><a href="classgeos_1_1precision_1_1CommonBitsRemover-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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1precision_1_1CommonBitsRemover.html#adabbf68d10a4ac2e5f008c0b2285d1c1">add</a> (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"><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_1precision_1_1CommonBitsRemover.html#a1a50e1926f77b8c56760abac9e0c517b">getCommonCoordinate</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1precision_1_1CommonBitsRemover.html#a20cd039d70a230af7bff843593bb8d6e">removeCommonBits</a> (<a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the common coordinate bits from a Geometry. The coordinates of the Geometry are changed. <a href="#a20cd039d70a230af7bff843593bb8d6e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1precision_1_1CommonBitsRemover.html#a286e6fd6378012f2c3feef6f131e46e6">addCommonBits</a> (<a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds the common coordinate bits back into a Geometry. The coordinates of the Geometry are changed. <a href="#a286e6fd6378012f2c3feef6f131e46e6"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Allow computing and removing common mantissa bits from one or more Geometries. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="adabbf68d10a4ac2e5f008c0b2285d1c1"></a><!-- doxytag: member="geos::precision::CommonBitsRemover::add" ref="adabbf68d10a4ac2e5f008c0b2285d1c1" args="(const geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::precision::CommonBitsRemover::add </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>geom</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a geometry to the set of geometries whose common bits are being computed. After this method has executed the common coordinate reflects the common bits of all added geometries.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>a Geometry to test for common bits </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a286e6fd6378012f2c3feef6f131e46e6"></a><!-- doxytag: member="geos::precision::CommonBitsRemover::addCommonBits" ref="a286e6fd6378012f2c3feef6f131e46e6" args="(geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::precision::CommonBitsRemover::addCommonBits </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>geom</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds the common coordinate bits back into a Geometry. The coordinates of the Geometry are changed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>the Geometry to which to add the common coordinate bits </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the shifted Geometry </dd></dl> <p>Referenced by <a class="el" href="namespacegeos_1_1geom.html#aac47cb336ecaac60f80faf87991b85ab">geos::geom::SnapOp()</a>.</p> </div> </div> <a class="anchor" id="a1a50e1926f77b8c56760abac9e0c517b"></a><!-- doxytag: member="geos::precision::CommonBitsRemover::getCommonCoordinate" ref="a1a50e1926f77b8c56760abac9e0c517b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& geos::precision::CommonBitsRemover::getCommonCoordinate </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The common bits of the Coordinates in the supplied Geometries. </p> </div> </div> <a class="anchor" id="a20cd039d70a230af7bff843593bb8d6e"></a><!-- doxytag: member="geos::precision::CommonBitsRemover::removeCommonBits" ref="a20cd039d70a230af7bff843593bb8d6e" args="(geom::Geometry *geom)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::precision::CommonBitsRemover::removeCommonBits </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>geom</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Removes the common coordinate bits from a Geometry. The coordinates of the Geometry are changed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>the Geometry from which to remove the common coordinate bits </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the shifted Geometry </dd></dl> <p>Referenced by <a class="el" href="namespacegeos_1_1geom.html#aac47cb336ecaac60f80faf87991b85ab">geos::geom::SnapOp()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="CommonBitsRemover_8h_source.html">CommonBitsRemover.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>