19#ifndef GEOS_IDX_QUADTREE_NODE_H
20#define GEOS_IDX_QUADTREE_NODE_H
22#include <geos/export.h>
23#include <geos/index/quadtree/NodeBase.h>
24#include <geos/geom/Coordinate.h>
25#include <geos/geom/Envelope.h>
32#pragma warning(disable: 4251)
55class GEOS_DLL Node:
public NodeBase {
60 std::auto_ptr<geom::Envelope> env;
72 Node* getSubnode(
int index);
74 std::auto_ptr<Node> createSubnode(
int index);
79 return env->intersects(searchEnv);
95 Node(std::auto_ptr<geom::Envelope> nenv,
int nlevel)
98 centre((env->getMinX()+env->getMaxX())/2,
99 (env->getMinY()+env->getMaxY())/2),
123 void insertNode(std::auto_ptr<Node> node);
125 std::string toString()
const;
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:53
Represents a node of a Quadtree.
Definition index/quadtree/Node.h:55
NodeBase * find(const geom::Envelope *searchEnv)
Returns the smallest existing node containing the envelope.
static std::auto_ptr< Node > createExpanded(std::auto_ptr< Node > node, const geom::Envelope &addEnv)
Create a node containing the given node and envelope.
Node * getNode(const geom::Envelope *searchEnv)
Returns the subquad containing the envelope. Creates the subquad if it does not already exist.
geom::Envelope * getEnvelope()
Definition index/quadtree/Node.h:108
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement a Quadtree spatial index.
Definition DoubleBits.h:29
Provides classes for various kinds of spatial indexes.
Definition IndexedNestedRingTester.h:31
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25