21 #include <geos/export.h> 22 #include <geos/index/quadtree/NodeBase.h> 23 #include <geos/geom/Coordinate.h> 24 #include <geos/geom/Envelope.h> 31 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 59 std::unique_ptr<geom::Envelope> env;
71 Node* getSubnode(
int index);
73 std::unique_ptr<Node> createSubnode(
int index);
80 return env->intersects(searchEnv);
86 static std::unique_ptr<Node> createNode(
const geom::Envelope& env);
93 static std::unique_ptr<Node> createExpanded(std::unique_ptr<Node> node,
96 Node(std::unique_ptr<geom::Envelope> nenv,
int nlevel)
128 void insertNode(std::unique_ptr<Node> node);
130 std::string toString()
const override;
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
The base class for nodes in a Quadtree.
Definition: quadtree/NodeBase.h:54
double getMaxX() const
Returns the Envelope maximum x-value. min x > max x indicates that this is a null Envelope...
Definition: Envelope.h:305
double getMinX() const
Returns the Envelope minimum x-value. min x > max x indicates that this is a null Envelope...
Definition: Envelope.h:325
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
double getMaxY() const
Returns the Envelope maximum y-value. min y > max y indicates that this is a null Envelope...
Definition: Envelope.h:295
double getMinY() const
Returns the Envelope minimum y-value. min y > max y indicates that this is a null Envelope...
Definition: Envelope.h:315
geom::Envelope * getEnvelope()
Definition: index/quadtree/Node.h:110
Represents a node of a Quadtree.
Definition: index/quadtree/Node.h:54