|
libspatialindex API Reference
(git-trunk)
|
#include <Region.h>


Public Member Functions | |
| Region () | |
| Region (const double *pLow, const double *pHigh, uint32_t dimension) | |
| Region (const Point &low, const Point &high) | |
| Region (const Region &in) | |
| ~Region () override | |
| virtual Region & | operator= (const Region &r) |
| virtual bool | operator== (const Region &) const |
| Region * | clone () override |
| uint32_t | getByteArraySize () override |
| void | loadFromByteArray (const uint8_t *data) override |
| void | storeToByteArray (uint8_t **data, uint32_t &length) override |
| bool | intersectsShape (const IShape &in) const override |
| bool | containsShape (const IShape &in) const override |
| bool | touchesShape (const IShape &in) const override |
| void | getCenter (Point &out) const override |
| uint32_t | getDimension () const override |
| void | getMBR (Region &out) const override |
| double | getArea () const override |
| double | getMinimumDistance (const IShape &in) const override |
| virtual bool | intersectsRegion (const Region &in) const |
| virtual bool | containsRegion (const Region &in) const |
| virtual bool | touchesRegion (const Region &in) const |
| virtual double | getMinimumDistance (const Region &in) const |
| virtual bool | intersectsLineSegment (const LineSegment &in) const |
| virtual bool | containsPoint (const Point &in) const |
| virtual bool | touchesPoint (const Point &in) const |
| virtual double | getMinimumDistance (const Point &in) const |
| virtual Region | getIntersectingRegion (const Region &r) const |
| virtual double | getIntersectingArea (const Region &in) const |
| virtual double | getMargin () const |
| virtual void | combineRegion (const Region &in) |
| virtual void | combinePoint (const Point &in) |
| virtual void | getCombinedRegion (Region &out, const Region &in) const |
| virtual double | getLow (uint32_t index) const |
| virtual double | getHigh (uint32_t index) const |
| virtual void | makeInfinite (uint32_t dimension) |
| virtual void | makeDimension (uint32_t dimension) |
Public Member Functions inherited from SpatialIndex::IShape | |
| ~IShape () override=default | |
Public Member Functions inherited from Tools::ISerializable | |
| virtual | ~ISerializable ()=default |
Public Member Functions inherited from Tools::IObject | |
| virtual | ~IObject ()=default |
Public Attributes | |
| uint32_t | m_dimension {0} |
| double * | m_pLow {nullptr} |
| double * | m_pHigh {nullptr} |
Static Public Attributes | |
| static constexpr int | local_dim = 3 |
Friends | |
| SIDX_DLL std::ostream & | operator<< (std::ostream &os, const Region &r) |
|
default |
| Region::Region | ( | const double * | pLow, |
| const double * | pHigh, | ||
| uint32_t | dimension | ||
| ) |
Definition at line 44 of file Region.cc.
References SpatialIndex::Point::m_dimension, and SpatialIndex::Point::m_pCoords.
| Region::Region | ( | const Region & | in | ) |
Definition at line 54 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
override |
Definition at line 74 of file Region.cc.
References local_dim, m_dimension, and m_pLow.
|
overridevirtual |
Implements Tools::IObject.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 114 of file Region.cc.
References Region().
Referenced by LeafQueryResult::LeafQueryResult(), and LeafQueryResult::operator=().


|
virtual |
Definition at line 489 of file Region.cc.
References SpatialIndex::Point::m_dimension, m_dimension, SpatialIndex::Point::m_pCoords, m_pHigh, and m_pLow.
|
virtual |
Definition at line 475 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::combineRegionInTime(), and getCombinedRegion().

|
virtual |
Definition at line 353 of file Region.cc.
References SpatialIndex::Point::getCoordinate(), SpatialIndex::Point::m_dimension, m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::containsPointInTime(), containsShape(), intersectsLineSegment(), SpatialIndex::Point::intersectsShape(), and intersectsShape().


|
virtual |
Definition at line 257 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::containsRegionInTime(), and containsShape().

|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 173 of file Region.cc.
References containsPoint(), and containsRegion().

|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 218 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::Index::findLeastEnlargement(), and SpatialIndex::RTree::Index::findLeastOverlap().

|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 122 of file Region.cc.
References m_dimension.
Referenced by storeToByteArray().

|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 199 of file Region.cc.
References m_dimension, SpatialIndex::Point::m_pCoords, m_pHigh, m_pLow, and SpatialIndex::Point::makeDimension().

Definition at line 503 of file Region.cc.
References combineRegion(), and m_dimension.
Referenced by SpatialIndex::RTree::Index::findLeastEnlargement(), SpatialIndex::RTree::Index::findLeastOverlap(), and SpatialIndex::TimeRegion::getCombinedRegionInTime().


|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 208 of file Region.cc.
References m_dimension.
Referenced by Index_GetBounds(), and IndexItem_GetBounds().

|
virtual |
Definition at line 522 of file Region.cc.
References m_dimension, and m_pHigh.
Referenced by Index_GetBounds(), Index_GetLeaves(), and IndexItem_GetBounds().

|
virtual |
Definition at line 436 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::Index::findLeastOverlap().

Definition at line 410 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeInfinite().

|
virtual |
Definition at line 514 of file Region.cc.
References m_dimension, and m_pLow.
Referenced by Index_GetBounds(), Index_GetLeaves(), and IndexItem_GetBounds().

|
virtual |
Definition at line 462 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
overridevirtual |
Implements SpatialIndex::IShape.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 230 of file Region.cc.
Referenced by SpatialIndex::Point::getMinimumDistance().

|
virtual |
Definition at line 386 of file Region.cc.
References SpatialIndex::Point::getCoordinate(), SpatialIndex::Point::m_dimension, m_dimension, m_pHigh, and m_pLow.

|
virtual |
Definition at line 291 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
virtual |
Definition at line 319 of file Region.cc.
References containsPoint(), SpatialIndex::LineSegment::intersectsShape(), SpatialIndex::LineSegment::m_dimension, m_dimension, SpatialIndex::LineSegment::m_pEndPoint, m_pHigh, m_pLow, and SpatialIndex::LineSegment::m_pStartPoint.
Referenced by SpatialIndex::LineSegment::intersectsRegion(), and intersectsShape().


|
virtual |
Definition at line 243 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::intersectsRegionInTime(), and intersectsShape().

|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 157 of file Region.cc.
References containsPoint(), intersectsLineSegment(), and intersectsRegion().

|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 127 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().

|
virtual |
Reimplemented in SpatialIndex::TimeRegion, and SpatialIndex::MovingRegion.
Definition at line 540 of file Region.cc.
References local_dim, m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::MovingRegion::getMBRAtTime(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::getVMBR(), loadFromByteArray(), makeInfinite(), and operator=().

|
virtual |
Reimplemented in SpatialIndex::TimeRegion, and SpatialIndex::MovingRegion.
Definition at line 530 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().
Referenced by getIntersectingRegion().


Definition at line 80 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().

|
virtual |
Definition at line 92 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 140 of file Region.cc.
References getByteArraySize(), m_dimension, m_pHigh, and m_pLow.

|
virtual |
Definition at line 367 of file Region.cc.
References SpatialIndex::Point::getCoordinate(), SpatialIndex::Point::m_dimension, m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::touchesPointInTime(), SpatialIndex::Point::touchesShape(), and touchesShape().


|
virtual |
Definition at line 271 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::touchesRegionInTime(), and touchesShape().

|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 186 of file Region.cc.
References touchesPoint(), and touchesRegion().

|
staticconstexpr |
Definition at line 93 of file Region.h.
Referenced by makeDimension(), and ~Region().
| uint32_t SpatialIndex::Region::m_dimension {0} |
Definition at line 99 of file Region.h.
Referenced by combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), containsRegion(), SpatialIndex::MovingRegion::containsRegionAtTime(), SpatialIndex::MVRTree::MVRTree::deleteData(), SpatialIndex::TPRTree::TPRTree::deleteData(), getArea(), SpatialIndex::MovingRegion::getByteArraySize(), getByteArraySize(), SpatialIndex::TimeRegion::getByteArraySize(), getCenter(), getCombinedRegion(), SpatialIndex::MovingRegion::getCombinedRegionAfterTime(), SpatialIndex::MovingRegion::getCombinedRegionInTime(), getDimension(), SpatialIndex::MovingRegion::getExtrapolatedHigh(), SpatialIndex::MovingRegion::getExtrapolatedLow(), getHigh(), SpatialIndex::MovingRegion::getHigh(), getIntersectingArea(), getIntersectingRegion(), getLow(), SpatialIndex::MovingRegion::getLow(), getMargin(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::MovingRegion::getVHigh(), SpatialIndex::MovingRegion::getVLow(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::MVRTree::MVRTree::insertData(), SpatialIndex::TPRTree::TPRTree::insertData(), intersectsLineSegment(), intersectsRegion(), SpatialIndex::LineSegment::intersectsRegion(), SpatialIndex::MovingRegion::intersectsRegionAtTime(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::MovingRegion::isShrinking(), SpatialIndex::MovingRegion::loadFromByteArray(), loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), makeDimension(), SpatialIndex::MovingRegion::makeDimension(), SpatialIndex::TimeRegion::makeDimension(), makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), SpatialIndex::MovingRegion::operator=(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator==(), operator==(), SpatialIndex::TimeRegion::operator==(), Region(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), storeToByteArray(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), touchesRegion(), and ~Region().
| double* SpatialIndex::Region::m_pHigh {nullptr} |
Definition at line 101 of file Region.h.
Referenced by combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), containsRegion(), SpatialIndex::Ball::containsRegion(), SpatialIndex::MVRTree::MVRTree::deleteData(), SpatialIndex::TPRTree::TPRTree::deleteData(), getArea(), getCenter(), SpatialIndex::MovingRegion::getExtrapolatedHigh(), getHigh(), SpatialIndex::MovingRegion::getHigh(), getIntersectingArea(), getIntersectingRegion(), getMargin(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::LineSegment::getRelativeMaximumDistance(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::MVRTree::MVRTree::insertData(), SpatialIndex::TPRTree::TPRTree::insertData(), intersectsLineSegment(), intersectsRegion(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::MovingRegion::loadFromByteArray(), loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), SpatialIndex::MVRTree::Node::loadFromByteArray(), SpatialIndex::RTree::Node::loadFromByteArray(), SpatialIndex::TPRTree::Node::loadFromByteArray(), makeDimension(), SpatialIndex::MovingRegion::makeDimension(), SpatialIndex::TimeRegion::makeDimension(), makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::RTree::ExternalSorter::Record::operator<(), SpatialIndex::operator<<(), SpatialIndex::MovingRegion::operator=(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator==(), operator==(), SpatialIndex::TimeRegion::operator==(), Region(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), SpatialIndex::MVRTree::Node::storeToByteArray(), SpatialIndex::RTree::Node::storeToByteArray(), SpatialIndex::TPRTree::Node::storeToByteArray(), storeToByteArray(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), and touchesRegion().
| double* SpatialIndex::Region::m_pLow {nullptr} |
Definition at line 100 of file Region.h.
Referenced by SpatialIndex::RTree::Index::adjustTree(), combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), containsRegion(), SpatialIndex::Ball::containsRegion(), SpatialIndex::MVRTree::MVRTree::deleteData(), SpatialIndex::TPRTree::TPRTree::deleteData(), getArea(), getCenter(), SpatialIndex::MovingRegion::getExtrapolatedLow(), getIntersectingArea(), getIntersectingRegion(), getLow(), SpatialIndex::MovingRegion::getLow(), getMargin(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::LineSegment::getRelativeMaximumDistance(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::MVRTree::MVRTree::insertData(), SpatialIndex::TPRTree::TPRTree::insertData(), intersectsLineSegment(), intersectsRegion(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::MovingRegion::loadFromByteArray(), loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), SpatialIndex::MVRTree::Node::loadFromByteArray(), SpatialIndex::RTree::Node::loadFromByteArray(), SpatialIndex::TPRTree::Node::loadFromByteArray(), makeDimension(), SpatialIndex::MovingRegion::makeDimension(), SpatialIndex::TimeRegion::makeDimension(), makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::RTree::ExternalSorter::Record::operator<(), SpatialIndex::operator<<(), SpatialIndex::MovingRegion::operator=(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator==(), operator==(), SpatialIndex::TimeRegion::operator==(), Region(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), SpatialIndex::MVRTree::Node::storeToByteArray(), SpatialIndex::RTree::Node::storeToByteArray(), SpatialIndex::TPRTree::Node::storeToByteArray(), storeToByteArray(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), touchesRegion(), and ~Region().