quadtree/Root.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: index/quadtree/Root.java rev 1.7 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/index/quadtree/NodeBase.h> // for inheritance
#include <geos/geom/Coordinate.h> // for composition
// Forward declarations
namespace geos {
namespace geom {
class Envelope;
}
namespace index {
namespace quadtree {
class Node;
}
}
}
namespace geos {
namespace index { // geos::index
namespace quadtree { // geos::index::quadtree
class GEOS_DLL Root: public NodeBase {
private:
static const geom::Coordinate origin;
void insertContained(Node* tree, const geom::Envelope* itemEnv,
void* item);
public:
Root() {}
~Root() override {}
void insert(const geom::Envelope* itemEnv, void* item);
protected:
bool
isSearchMatch(const geom::Envelope& /* searchEnv */) const override
{
return true;
}
};
} // namespace geos::index::quadtree
} // namespace geos::index
} // namespace geos
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Envelope
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
geos::index::quadtree::Node
Represents a node of a Quadtree.
Definition index/quadtree/Node.h:54
geos::index::quadtree::Root::insert
void insert(const geom::Envelope *itemEnv, void *item)
geos::geom
Definition Angle.h:26
geos::index::quadtree
Contains classes that implement a Quadtree spatial index.
Definition CleanCoverage.h:40
geos::index
Provides classes for various kinds of spatial indexes.
Definition CleanCoverage.h:39
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38