Go to the documentation of this file.
4 #include <boost/geometry/index/rtree.hpp>
15 namespace bg = boost::geometry;
16 namespace bgm = boost::geometry::model;
17 namespace bgi = boost::geometry::index;
20 typedef bgm::point<double, 3, bg::cs::cartesian>
Point;
22 typedef bg::model::box<Point>
Box;
28 typedef bgi::rtree<PointValue, bgi::rstar<16> >
PointRTree;
31 typedef bgi::rtree<BoxValue, bgi::rstar<16> >
BoxRTree;
41 typedef bgm::point<double, 2, bg::cs::cartesian>
Point2d;
43 typedef bg::model::box<Point2d>
Box2d;
52 typedef bgi::rtree<Box2dValue, bgi::rstar<16> >
Box2dRTree;
54 LX_GEOM_EXPORT
Box2d getBox2d(
const double& minx,
const double& miny,
const double& maxx,
const double& maxy);
58 LX_GEOM_EXPORT
Box2dValue getBox2dValue(
const double& minx,
const double& miny,
const double& maxx,
const double& maxy, uintptr_t userData);
bool remove(const Value &value)
std::pair< Segment, uintptr_t > SegmentValue
Definition: RTree.h:24
void insert(const Value &value)
BoxRTree(const std::vector< Value > &values)
std::pair< Segment2d, uintptr_t > Segment2dValue
Definition: RTree.h:45
bg::model::box< Point > Box
Definition: RTree.h:22
Geom::Bnd_Box bbox
Definition: RTree.h:68
bgm::point< double, 3, bg::cs::cartesian > Point
Definition: RTree.h:20
void queryIntersects(const Bnd_Box &bbox, std::vector< uintptr_t > &userDataVec) const
bg::model::box< Point2d > Box2d
Definition: RTree.h:43
std::pair< Box2d, uintptr_t > Box2dValue
Definition: RTree.h:51
Box2dRTree(const std::vector< Value > &values)
bool remove(const Value &value)
bgm::point< double, 2, bg::cs::cartesian > Point2d
Definition: RTree.h:41
std::pair< Point2d, uintptr_t > Point2dValue
Definition: RTree.h:48
bgm::segment< Point2d > Segment2d
Definition: RTree.h:42
std::pair< Point, uintptr_t > PointValue
Definition: RTree.h:27
uintptr_t userData
Definition: RTree.h:95
bgi::rtree< PointValue, bgi::rstar< 16 > > PointRTree
Definition: RTree.h:28
void insert(const Value &value)
bgm::segment< Point > Segment
Definition: RTree.h:21
void queryIntersects(const RTree::Box2d &bbox, std::vector< uintptr_t > &userDataVec) const
bgi::rtree< SegmentValue, bgi::rstar< 16 > > SegmentRTree
Definition: RTree.h:25
bool hasIntersection(const RTree::Box2d &bbox) const
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
bgi::rtree< Point2dValue, bgi::rstar< 16 > > Point2dRTree
Definition: RTree.h:49
LX_GEOM_EXPORT Point getPoint(const Geom::Pnt &p)
Geom::Bnd_Box bbox
Definition: RTree.h:94
void insert(const Bnd_Box &bbox, uintptr_t userData)
BoxRTree(const BoxRTree &other)
LX_GEOM_EXPORT Box2d getBox2d(const double &minx, const double &miny, const double &maxx, const double &maxy)
LX_GEOM_EXPORT BoxValue getBoxValue(const Bnd_Box &bbox, uintptr_t userData)
std::pair< Box, uintptr_t > BoxValue
Definition: RTree.h:30
uintptr_t userData
Definition: RTree.h:69
bool remove(const Bnd_Box &bbox, uintptr_t userData)
Box2dRTree(const Box2dRTree &other)
void queryIntersects(const Bnd_Box &bbox, std::vector< uintptr_t > &userDataVec) const
LX_GEOM_EXPORT Box getBox(const Geom::Pnt &p, const double &radius)
void insert(const Bnd_Box &bbox, uintptr_t userData)
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:34
bgi::rtree< Box2dValue, bgi::rstar< 16 > > Box2dRTree
Definition: RTree.h:52
LX_GEOM_EXPORT Box2dValue getBox2dValue(const double &minx, const double &miny, const double &maxx, const double &maxy, uintptr_t userData)
LX_GEOM_EXPORT PointValue getPointValue(const Geom::Pnt &p, uintptr_t userData)
bool remove(const Bnd_Box &bbox, uintptr_t userData)
bool hasIntersection(const Bnd_Box &bbox) const
bgi::rtree< Segment2dValue, bgi::rstar< 16 > > Segment2dRTree
Definition: RTree.h:46
bgi::rtree< BoxValue, bgi::rstar< 16 > > BoxRTree
Definition: RTree.h:31
Definition: PropertyContainer.h:33