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) // warning C4251: needs to have dll-interface to be used by clients of class
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);
92 static std::auto_ptr<Node> createExpanded(std::auto_ptr<Node> node,
95 Node(std::auto_ptr<geom::Envelope> nenv,
int nlevel)
123 void insertNode(std::auto_ptr<Node> node);
125 std::string toString()
const;
137 #endif // GEOS_IDX_QUADTREE_NODE_H
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:53
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
The base class for nodes in a Quadtree.
Definition: quadtree/NodeBase.h:54
geom::Envelope * getEnvelope()
Definition: index/quadtree/Node.h:108
Represents a node of a Quadtree.
Definition: index/quadtree/Node.h:55