<!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::index::quadtree::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_1index.html">index</a> </li> <li><a class="el" href="namespacegeos_1_1index_1_1quadtree.html">quadtree</a> </li> <li><a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">geos::index::quadtree::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-methods">Protected Member Functions</a> </div> <div class="headertitle"> <h1>geos::index::quadtree::Node Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::index::quadtree::Node" --><!-- doxytag: inherits="geos::index::quadtree::NodeBase" --> <p>Represents a node of a <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Quadtree.html" title="A Quadtree is a spatial index structure for efficient querying of 2D rectangles. If other kinds of sp...">Quadtree</a>. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="index_2quadtree_2Node_8h_source.html">Node.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::index::quadtree::Node:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1index_1_1quadtree_1_1Node.png" usemap="#geos::index::quadtree::Node_map" alt=""/> <map id="geos::index::quadtree::Node_map" name="geos::index::quadtree::Node_map"> <area href="classgeos_1_1index_1_1quadtree_1_1NodeBase.html" alt="geos::index::quadtree::NodeBase" shape="rect" coords="0,0,194,24"/> </map> </div> <p><a href="classgeos_1_1index_1_1quadtree_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="a60adb68c3babc468b90a82b18d6cecb1"></a><!-- doxytag: member="geos::index::quadtree::Node::Node" ref="a60adb68c3babc468b90a82b18d6cecb1" args="(std::auto_ptr< geom::Envelope > nenv, int nlevel)" --> </td><td class="memItemRight" valign="bottom"><b>Node</b> (std::auto_ptr< <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> > nenv, int nlevel)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html#a36420223c53f2f816b332d19392d8eab">getEnvelope</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb4896593e40833759c7180cacd7057f"></a><!-- doxytag: member="geos::index::quadtree::Node::getNode" ref="acb4896593e40833759c7180cacd7057f" args="(const geom::Envelope *searchEnv)" --> <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html#acb4896593e40833759c7180cacd7057f">getNode</a> (const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> *searchEnv)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the subquad containing the envelope. Creates the subquad if it does not already exist. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa55373942e204385bd04b7ddce29849f"></a><!-- doxytag: member="geos::index::quadtree::Node::find" ref="aa55373942e204385bd04b7ddce29849f" args="(const geom::Envelope *searchEnv)" --> <a class="el" href="classgeos_1_1index_1_1quadtree_1_1NodeBase.html">NodeBase</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html#aa55373942e204385bd04b7ddce29849f">find</a> (const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> *searchEnv)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the smallest <em>existing</em> node containing the envelope. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3c989252b542f2d183a85988eef62ada"></a><!-- doxytag: member="geos::index::quadtree::Node::insertNode" ref="a3c989252b542f2d183a85988eef62ada" args="(std::auto_ptr< Node > node)" --> void </td><td class="memItemRight" valign="bottom"><b>insertNode</b> (std::auto_ptr< <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> > node)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0e6fe0d44f4bf6605d1dcb08f8256b72"></a><!-- doxytag: member="geos::index::quadtree::Node::toString" ref="a0e6fe0d44f4bf6605d1dcb08f8256b72" args="() const " --> std::string </td><td class="memItemRight" valign="bottom"><b>toString</b> () const </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="a3a39a3e7b640cd82d44f8d68ccf71993"></a><!-- doxytag: member="geos::index::quadtree::Node::createNode" ref="a3a39a3e7b640cd82d44f8d68ccf71993" args="(const geom::Envelope &env)" --> static std::auto_ptr< <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> > </td><td class="memItemRight" valign="bottom"><b>createNode</b> (const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> &env)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static std::auto_ptr< <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html#a652c8334400e330121e0d7fd15aa8e22">createExpanded</a> (std::auto_ptr< <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> > node, const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> &addEnv)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a node containing the given node and envelope. <a href="#a652c8334400e330121e0d7fd15aa8e22"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1d9704069b24defc47461a13402aabb"></a><!-- doxytag: member="geos::index::quadtree::Node::isSearchMatch" ref="ae1d9704069b24defc47461a13402aabb" args="(const geom::Envelope &searchEnv) const " --> bool </td><td class="memItemRight" valign="bottom"><b>isSearchMatch</b> (const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> &searchEnv) const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Represents a node of a <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Quadtree.html" title="A Quadtree is a spatial index structure for efficient querying of 2D rectangles. If other kinds of sp...">Quadtree</a>. </p> <p>Nodes contain items which have a spatial extent corresponding to the node's position in the quadtree. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a652c8334400e330121e0d7fd15aa8e22"></a><!-- doxytag: member="geos::index::quadtree::Node::createExpanded" ref="a652c8334400e330121e0d7fd15aa8e22" args="(std::auto_ptr< Node > node, const geom::Envelope &addEnv)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static std::auto_ptr<<a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a>> geos::index::quadtree::Node::createExpanded </td> <td>(</td> <td class="paramtype">std::auto_ptr< <a class="el" href="classgeos_1_1index_1_1quadtree_1_1Node.html">Node</a> > </td> <td class="paramname"> <em>node</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a> & </td> <td class="paramname"> <em>addEnv</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>Create a node containing the given node and envelope. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>if not null, will be inserted to the returned node </td></tr> <tr><td valign="top"></td><td valign="top"><em>addEnv</em> </td><td>minimum envelope to use for the node </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a36420223c53f2f816b332d19392d8eab"></a><!-- doxytag: member="geos::index::quadtree::Node::getEnvelope" ref="a36420223c53f2f816b332d19392d8eab" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Envelope.html">geom::Envelope</a>* geos::index::quadtree::Node::getEnvelope </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return Envelope associated with this node ownership retained by this object </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="index_2quadtree_2Node_8h_source.html">index/quadtree/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>