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


Public Member Functions | |
| Point () | |
| Point (const double *pCoords, uint32_t dimension) | |
| Point (const Point &p) | |
| ~Point () override | |
| virtual Point & | operator= (const Point &p) |
| virtual bool | operator== (const Point &p) const |
| Point * | 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 double | getMinimumDistance (const Point &p) const |
| virtual double | getCoordinate (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_pCoords {nullptr} |
Static Public Attributes | |
| static constexpr int | local_dim = 3 |
Friends | |
| class | Region |
| SIDX_DLL std::ostream & | operator<< (std::ostream &os, const Point &pt) |
|
default |
| Point::Point | ( | const double * | pCoords, |
| uint32_t | dimension | ||
| ) |
Definition at line 39 of file Point.cc.
References local_dim, m_dimension, and m_pCoords.
| Point::Point | ( | const Point & | p | ) |
Definition at line 50 of file Point.cc.
References local_dim, m_dimension, and m_pCoords.
|
override |
Definition at line 61 of file Point.cc.
References local_dim, m_dimension, and m_pCoords.
|
overridevirtual |
Implements Tools::IObject.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 98 of file Point.cc.
References Point().

|
overridevirtual |
Implements SpatialIndex::IShape.
|
overridevirtual |
Implements SpatialIndex::IShape.
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 106 of file Point.cc.
References m_dimension.
Referenced by SpatialIndex::Ball::getByteArraySize(), SpatialIndex::Ball::loadFromByteArray(), and storeToByteArray().

|
overridevirtual |
Implements SpatialIndex::IShape.
|
virtual |
Definition at line 231 of file Point.cc.
References m_dimension, and m_pCoords.
Referenced by SpatialIndex::Region::containsPoint(), SpatialIndex::Region::getMinimumDistance(), and SpatialIndex::Region::touchesPoint().

|
overridevirtual |
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 185 of file Point.cc.
References m_dimension, m_pCoords, and Region.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 195 of file Point.cc.
References SpatialIndex::Region::getMinimumDistance().

|
virtual |
Definition at line 214 of file Point.cc.
References m_dimension, and m_pCoords.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 137 of file Point.cc.
References SpatialIndex::Region::containsPoint().

|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 111 of file Point.cc.
References m_dimension, m_pCoords, and makeDimension().
Referenced by SpatialIndex::Ball::loadFromByteArray().


|
virtual |
Reimplemented in SpatialIndex::TimePoint, and SpatialIndex::MovingPoint.
Definition at line 248 of file Point.cc.
References local_dim, m_dimension, and m_pCoords.
Referenced by SpatialIndex::Region::getCenter(), SpatialIndex::MovingPoint::getPointAtTime(), loadFromByteArray(), makeInfinite(), and operator=().

|
virtual |
Reimplemented in SpatialIndex::TimePoint, and SpatialIndex::MovingPoint.
Definition at line 239 of file Point.cc.
References m_dimension, m_pCoords, and makeDimension().

Definition at line 67 of file Point.cc.
References m_dimension, m_pCoords, and makeDimension().

|
virtual |
Definition at line 78 of file Point.cc.
References m_dimension, and m_pCoords.
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 122 of file Point.cc.
References getByteArraySize(), m_dimension, and m_pCoords.
Referenced by SpatialIndex::Ball::storeToByteArray().


|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 155 of file Point.cc.
References SpatialIndex::Region::touchesPoint().

|
staticconstexpr |
Definition at line 76 of file Point.h.
Referenced by makeDimension(), Point(), and ~Point().
| uint32_t SpatialIndex::Point::m_dimension {0} |
Definition at line 79 of file Point.h.
Referenced by SpatialIndex::Region::combinePoint(), SpatialIndex::Ball::containsLineSegment(), SpatialIndex::Region::containsPoint(), SpatialIndex::Ball::containsRegion(), SpatialIndex::Ball::containsShape(), SpatialIndex::Ball::getArea(), SpatialIndex::MovingPoint::getByteArraySize(), getByteArraySize(), SpatialIndex::TimePoint::getByteArraySize(), SpatialIndex::MovingPoint::getCoord(), getCoordinate(), SpatialIndex::Ball::getDimension(), getDimension(), getMBR(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), SpatialIndex::Region::getMinimumDistance(), getMinimumDistance(), SpatialIndex::MovingPoint::getPointAtTime(), SpatialIndex::MovingPoint::getProjectedCoord(), SpatialIndex::MovingPoint::getVCoord(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::LineSegment::LineSegment(), SpatialIndex::MovingPoint::loadFromByteArray(), loadFromByteArray(), SpatialIndex::TimePoint::loadFromByteArray(), makeDimension(), SpatialIndex::MovingPoint::makeDimension(), SpatialIndex::TimePoint::makeDimension(), makeInfinite(), SpatialIndex::MovingPoint::makeInfinite(), SpatialIndex::TimePoint::makeInfinite(), SpatialIndex::MovingPoint::MovingPoint(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), SpatialIndex::MovingPoint::operator=(), operator=(), SpatialIndex::TimePoint::operator=(), SpatialIndex::MovingPoint::operator==(), operator==(), SpatialIndex::TimePoint::operator==(), Point(), SpatialIndex::MVRTree::MVRTree::pointLocationQuery(), SpatialIndex::RTree::RTree::pointLocationQuery(), SpatialIndex::TPRTree::TPRTree::pointLocationQuery(), SpatialIndex::Region::Region(), SpatialIndex::MovingPoint::storeToByteArray(), SpatialIndex::TimePoint::storeToByteArray(), storeToByteArray(), SpatialIndex::TimePoint::TimePoint(), SpatialIndex::Region::touchesPoint(), and ~Point().
| double* SpatialIndex::Point::m_pCoords {nullptr} |
Definition at line 80 of file Point.h.
Referenced by SpatialIndex::LineSegment::between(), SpatialIndex::Region::combinePoint(), SpatialIndex::Ball::containsLineSegment(), SpatialIndex::Ball::containsRegion(), SpatialIndex::LineSegment::doubleAreaTriangle(), SpatialIndex::Region::getCenter(), SpatialIndex::MovingPoint::getCoord(), getCoordinate(), getMBR(), SpatialIndex::LineSegment::getMinimumDistance(), getMinimumDistance(), SpatialIndex::MovingPoint::getPointAtTime(), SpatialIndex::MovingPoint::getProjectedCoord(), SpatialIndex::LineSegment::getRelativeMinimumDistance(), SpatialIndex::LineSegment::LineSegment(), SpatialIndex::MovingPoint::loadFromByteArray(), loadFromByteArray(), SpatialIndex::TimePoint::loadFromByteArray(), makeDimension(), SpatialIndex::MovingPoint::makeDimension(), SpatialIndex::TimePoint::makeDimension(), makeInfinite(), SpatialIndex::MovingPoint::makeInfinite(), SpatialIndex::TimePoint::makeInfinite(), SpatialIndex::MovingPoint::MovingPoint(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), SpatialIndex::MovingPoint::operator=(), operator=(), SpatialIndex::TimePoint::operator=(), SpatialIndex::MovingPoint::operator==(), operator==(), SpatialIndex::TimePoint::operator==(), Point(), SpatialIndex::Region::Region(), SpatialIndex::MovingPoint::storeToByteArray(), SpatialIndex::TimePoint::storeToByteArray(), storeToByteArray(), SpatialIndex::TimePoint::TimePoint(), and ~Point().