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 Tools::IObject | |
virtual | ~IObject ()=default |
Public Member Functions inherited from SpatialIndex::IShape | |
~IShape () override=default | |
Public Member Functions inherited from Tools::ISerializable | |
virtual | ~ISerializable ()=default |
Public Attributes | |
uint32_t | m_dimension {0} |
double * | m_pLow {nullptr} |
double * | m_pHigh {nullptr} |
Friends | |
SIDX_DLL std::ostream & | operator<< (std::ostream &os, const Region &r) |
|
default |
Referenced by clone(), and SpatialIndex::TimeRegion::TimeRegion().
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 |
|
overridevirtual |
Implements Tools::IObject.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 135 of file Region.cc.
References Region().
Referenced by LeafQueryResult::LeafQueryResult(), and LeafQueryResult::operator=().
|
virtual |
Definition at line 510 of file Region.cc.
References SpatialIndex::Point::m_dimension, m_dimension, SpatialIndex::Point::m_pCoords, m_pHigh, and m_pLow.
|
virtual |
Definition at line 496 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::combineRegionInTime(), getCombinedRegion(), SpatialIndex::MVRTree::Node::~Node(), and SpatialIndex::RTree::Node::~Node().
|
virtual |
Definition at line 374 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(), intersectsShape(), and SpatialIndex::Point::intersectsShape().
|
virtual |
Definition at line 278 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::containsRegionInTime(), containsShape(), and SpatialIndex::RTree::Node::~Node().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 194 of file Region.cc.
References containsPoint(), and containsRegion().
Referenced by SpatialIndex::MVRTree::Node::~Node().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 239 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::Index::findLeastEnlargement(), SpatialIndex::RTree::Index::findLeastOverlap(), SpatialIndex::MVRTree::Node::~Node(), and SpatialIndex::RTree::Node::~Node().
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 143 of file Region.cc.
References m_dimension.
Referenced by SpatialIndex::RTree::Data::getByteArraySize(), and storeToByteArray().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 220 of file Region.cc.
References m_dimension, SpatialIndex::Point::m_pCoords, m_pHigh, m_pLow, and SpatialIndex::Point::makeDimension().
Referenced by SpatialIndex::RTree::Node::~Node().
Definition at line 524 of file Region.cc.
References combineRegion(), and m_dimension.
Referenced by SpatialIndex::RTree::Index::findLeastEnlargement(), SpatialIndex::RTree::Index::findLeastOverlap(), SpatialIndex::TimeRegion::getCombinedRegionInTime(), SpatialIndex::MVRTree::Node::~Node(), and SpatialIndex::RTree::Node::~Node().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 229 of file Region.cc.
References m_dimension.
Referenced by SpatialIndex::TPRTree::TPRTree::flush(), SpatialIndex::RTree::RTree::flush(), SpatialIndex::MVRTree::MVRTree::flush(), Index_GetBounds(), and IndexItem_GetBounds().
|
virtual |
Definition at line 543 of file Region.cc.
References m_dimension, and m_pHigh.
Referenced by Index_GetBounds(), Index_GetLeaves(), and IndexItem_GetBounds().
|
virtual |
Definition at line 457 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::Index::findLeastOverlap(), SpatialIndex::RTree::Node::~Node(), and SpatialIndex::MVRTree::Node::~Node().
Definition at line 431 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeInfinite().
Referenced by SpatialIndex::RTree::RTree::flush().
|
virtual |
Definition at line 535 of file Region.cc.
References m_dimension, and m_pLow.
Referenced by Index_GetBounds(), Index_GetLeaves(), and IndexItem_GetBounds().
|
virtual |
Definition at line 483 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::MVRTree::Node::~Node(), and SpatialIndex::RTree::Node::~Node().
|
overridevirtual |
Implements SpatialIndex::IShape.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 251 of file Region.cc.
Referenced by SpatialIndex::Point::getMinimumDistance().
|
virtual |
Definition at line 312 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
virtual |
Definition at line 407 of file Region.cc.
References SpatialIndex::Point::getCoordinate(), SpatialIndex::Point::m_dimension, m_dimension, m_pHigh, and m_pLow.
|
virtual |
Definition at line 340 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 264 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::RTree::flush(), SpatialIndex::TimeRegion::intersectsRegionInTime(), and intersectsShape().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 178 of file Region.cc.
References containsPoint(), intersectsLineSegment(), and intersectsRegion().
Referenced by SpatialIndex::MVRTree::Node::~Node().
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 148 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().
Referenced by SpatialIndex::RTree::Data::loadFromByteArray().
|
virtual |
Reimplemented in SpatialIndex::MovingRegion, and SpatialIndex::TimeRegion.
Definition at line 561 of file Region.cc.
References 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::MovingRegion, and SpatialIndex::TimeRegion.
Definition at line 551 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().
Referenced by SpatialIndex::RTree::RTree::flush(), getIntersectingRegion(), and SpatialIndex::RTree::Node::isIndex().
Definition at line 101 of file Region.cc.
References m_dimension, m_pHigh, m_pLow, and makeDimension().
|
virtual |
Definition at line 113 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimeRegion.
Definition at line 161 of file Region.cc.
References getByteArraySize(), m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::RTree::Data::storeToByteArray().
|
virtual |
Definition at line 388 of file Region.cc.
References SpatialIndex::Point::getCoordinate(), SpatialIndex::Point::m_dimension, m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::touchesPointInTime(), touchesShape(), and SpatialIndex::Point::touchesShape().
|
virtual |
Definition at line 292 of file Region.cc.
References m_dimension, m_pHigh, and m_pLow.
Referenced by SpatialIndex::TimeRegion::touchesRegionInTime(), touchesShape(), and SpatialIndex::RTree::Node::~Node().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 207 of file Region.cc.
References touchesPoint(), and touchesRegion().
Referenced by SpatialIndex::MVRTree::Node::~Node().
uint32_t SpatialIndex::Region::m_dimension {0} |
Definition at line 97 of file Region.h.
Referenced by combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), SpatialIndex::MovingRegion::containsPointInTime(), containsRegion(), SpatialIndex::MovingRegion::containsRegionAtTime(), SpatialIndex::MovingRegion::containsRegionInTime(), SpatialIndex::TPRTree::TPRTree::deleteData(), SpatialIndex::MVRTree::MVRTree::deleteData(), SpatialIndex::TPRTree::TPRTree::flush(), SpatialIndex::RTree::RTree::flush(), SpatialIndex::MVRTree::MVRTree::flush(), getArea(), SpatialIndex::MovingRegion::getAreaInTime(), getByteArraySize(), SpatialIndex::TimeRegion::getByteArraySize(), SpatialIndex::MovingRegion::getByteArraySize(), getCenter(), SpatialIndex::MovingRegion::getCenterDistanceInTime(), getCombinedRegion(), SpatialIndex::MovingRegion::getCombinedRegionAfterTime(), SpatialIndex::MovingRegion::getCombinedRegionInTime(), getDimension(), SpatialIndex::MovingRegion::getExtrapolatedHigh(), SpatialIndex::MovingRegion::getExtrapolatedLow(), SpatialIndex::MovingRegion::getHigh(), getHigh(), getIntersectingArea(), SpatialIndex::MovingRegion::getIntersectingAreaInTime(), getIntersectingRegion(), SpatialIndex::MovingRegion::getLow(), getLow(), getMargin(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::MovingRegion::getProjectedSurfaceAreaInTime(), SpatialIndex::MovingRegion::getVHigh(), SpatialIndex::MovingRegion::getVLow(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::TPRTree::TPRTree::insertData(), SpatialIndex::MVRTree::MVRTree::insertData(), intersectsLineSegment(), SpatialIndex::MovingRegion::intersectsPointInTime(), intersectsRegion(), SpatialIndex::LineSegment::intersectsRegion(), SpatialIndex::MovingRegion::intersectsRegionAtTime(), SpatialIndex::MovingRegion::intersectsRegionInTime(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), SpatialIndex::MovingRegion::isShrinking(), loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), SpatialIndex::MovingRegion::loadFromByteArray(), SpatialIndex::RTree::ExternalSorter::Record::loadFromFile(), makeDimension(), SpatialIndex::TimeRegion::makeDimension(), SpatialIndex::MovingRegion::makeDimension(), makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator=(), operator==(), SpatialIndex::TimeRegion::operator==(), SpatialIndex::MovingRegion::operator==(), Region(), storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::RTree::ExternalSorter::Record::storeToFile(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), touchesRegion(), SpatialIndex::TPRTree::Node::~Node(), SpatialIndex::MVRTree::Node::~Node(), and SpatialIndex::RTree::Node::~Node().
double* SpatialIndex::Region::m_pHigh {nullptr} |
Definition at line 99 of file Region.h.
Referenced by combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), containsRegion(), SpatialIndex::Ball::containsRegion(), SpatialIndex::TPRTree::TPRTree::deleteData(), SpatialIndex::MVRTree::MVRTree::deleteData(), getArea(), getCenter(), SpatialIndex::MovingRegion::getExtrapolatedHigh(), SpatialIndex::MovingRegion::getHigh(), getHigh(), getIntersectingArea(), SpatialIndex::MovingRegion::getIntersectingAreaInTime(), getIntersectingRegion(), getMargin(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::LineSegment::getRelativeMaximumDistance(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::TPRTree::TPRTree::insertData(), SpatialIndex::MVRTree::MVRTree::insertData(), intersectsLineSegment(), intersectsRegion(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), loadFromByteArray(), SpatialIndex::TPRTree::Node::loadFromByteArray(), SpatialIndex::MVRTree::Node::loadFromByteArray(), SpatialIndex::RTree::Node::loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), SpatialIndex::MovingRegion::loadFromByteArray(), SpatialIndex::RTree::ExternalSorter::Record::loadFromFile(), makeDimension(), SpatialIndex::TimeRegion::makeDimension(), SpatialIndex::MovingRegion::makeDimension(), makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::RTree::ExternalSorter::Record::operator<(), SpatialIndex::operator<<(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator=(), operator==(), SpatialIndex::TimeRegion::operator==(), SpatialIndex::MovingRegion::operator==(), Region(), storeToByteArray(), SpatialIndex::TPRTree::Node::storeToByteArray(), SpatialIndex::MVRTree::Node::storeToByteArray(), SpatialIndex::RTree::Node::storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::RTree::ExternalSorter::Record::storeToFile(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), touchesRegion(), SpatialIndex::TPRTree::Node::~Node(), SpatialIndex::MVRTree::Node::~Node(), SpatialIndex::RTree::Node::~Node(), and ~Region().
double* SpatialIndex::Region::m_pLow {nullptr} |
Definition at line 98 of file Region.h.
Referenced by SpatialIndex::RTree::Index::adjustTree(), combinePoint(), combineRegion(), SpatialIndex::MovingRegion::combineRegionAfterTime(), SpatialIndex::MovingRegion::combineRegionInTime(), containsPoint(), containsRegion(), SpatialIndex::Ball::containsRegion(), SpatialIndex::TPRTree::TPRTree::deleteData(), SpatialIndex::MVRTree::MVRTree::deleteData(), getArea(), getCenter(), SpatialIndex::MovingRegion::getExtrapolatedLow(), getIntersectingArea(), SpatialIndex::MovingRegion::getIntersectingAreaInTime(), getIntersectingRegion(), SpatialIndex::MovingRegion::getLow(), getLow(), getMargin(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::MovingRegion::getMBRAtTime(), getMinimumDistance(), SpatialIndex::LineSegment::getRelativeMaximumDistance(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::getVMBR(), SpatialIndex::TPRTree::TPRTree::insertData(), SpatialIndex::MVRTree::MVRTree::insertData(), intersectsLineSegment(), intersectsRegion(), SpatialIndex::TPRTree::TPRTree::isIndexValid(), SpatialIndex::RTree::RTree::isIndexValid(), SpatialIndex::MVRTree::MVRTree::isIndexValid(), loadFromByteArray(), SpatialIndex::TPRTree::Node::loadFromByteArray(), SpatialIndex::MVRTree::Node::loadFromByteArray(), SpatialIndex::RTree::Node::loadFromByteArray(), SpatialIndex::TimeRegion::loadFromByteArray(), SpatialIndex::MovingRegion::loadFromByteArray(), SpatialIndex::RTree::ExternalSorter::Record::loadFromFile(), makeDimension(), SpatialIndex::TimeRegion::makeDimension(), SpatialIndex::MovingRegion::makeDimension(), makeInfinite(), SpatialIndex::TimeRegion::makeInfinite(), SpatialIndex::MovingRegion::makeInfinite(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::RTree::ExternalSorter::Record::operator<(), SpatialIndex::operator<<(), operator=(), SpatialIndex::TimeRegion::operator=(), SpatialIndex::MovingRegion::operator=(), operator==(), SpatialIndex::TimeRegion::operator==(), SpatialIndex::MovingRegion::operator==(), Region(), storeToByteArray(), SpatialIndex::TPRTree::Node::storeToByteArray(), SpatialIndex::RTree::Node::storeToByteArray(), SpatialIndex::MVRTree::Node::storeToByteArray(), SpatialIndex::TimeRegion::storeToByteArray(), SpatialIndex::MovingRegion::storeToByteArray(), SpatialIndex::RTree::ExternalSorter::Record::storeToFile(), SpatialIndex::TimeRegion::TimeRegion(), touchesPoint(), touchesRegion(), SpatialIndex::TPRTree::Node::~Node(), SpatialIndex::MVRTree::Node::~Node(), SpatialIndex::RTree::Node::~Node(), and ~Region().