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 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_pCoords {nullptr} |
Friends | |
class | Region |
SIDX_DLL std::ostream & | operator<< (std::ostream &os, const Point &pt) |
|
default |
Referenced by clone(), and SpatialIndex::TimePoint::TimePoint().
Point::Point | ( | const double * | pCoords, |
uint32_t | dimension | ||
) |
Definition at line 39 of file Point.cc.
References m_dimension, and m_pCoords.
Point::Point | ( | const Point & | p | ) |
Definition at line 48 of file Point.cc.
References m_dimension, and m_pCoords.
|
overridevirtual |
Implements Tools::IObject.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 93 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 101 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 226 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 180 of file Point.cc.
References m_dimension, m_pCoords, and Region.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 190 of file Point.cc.
References SpatialIndex::Region::getMinimumDistance().
|
virtual |
Definition at line 209 of file Point.cc.
References m_dimension, and m_pCoords.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 132 of file Point.cc.
References SpatialIndex::Region::containsPoint().
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 106 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 243 of file Point.cc.
References 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 234 of file Point.cc.
References m_dimension, m_pCoords, and makeDimension().
Definition at line 62 of file Point.cc.
References m_dimension, m_pCoords, and makeDimension().
|
virtual |
Definition at line 73 of file Point.cc.
References m_dimension, and m_pCoords.
|
overridevirtual |
Implements Tools::ISerializable.
Reimplemented in SpatialIndex::TimePoint.
Definition at line 117 of file Point.cc.
References getByteArraySize(), m_dimension, and m_pCoords.
Referenced by SpatialIndex::Ball::storeToByteArray().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 150 of file Point.cc.
References SpatialIndex::Region::touchesPoint().
uint32_t SpatialIndex::Point::m_dimension {0} |
Definition at line 77 of file Point.h.
Referenced by SpatialIndex::Region::combinePoint(), SpatialIndex::Ball::containsLineSegment(), SpatialIndex::Region::containsPoint(), SpatialIndex::MovingRegion::containsPointInTime(), SpatialIndex::Ball::containsRegion(), SpatialIndex::Ball::containsShape(), SpatialIndex::Ball::getArea(), getByteArraySize(), SpatialIndex::TimePoint::getByteArraySize(), SpatialIndex::MovingPoint::getByteArraySize(), SpatialIndex::MovingPoint::getCoord(), getCoordinate(), getDimension(), SpatialIndex::Ball::getDimension(), getMBR(), SpatialIndex::Ball::getMBR(), SpatialIndex::MovingPoint::getMBRAtTime(), getMinimumDistance(), SpatialIndex::Region::getMinimumDistance(), SpatialIndex::MovingPoint::getPointAtTime(), SpatialIndex::MovingPoint::getProjectedCoord(), SpatialIndex::MovingPoint::getVCoord(), SpatialIndex::MovingPoint::getVMBR(), SpatialIndex::MovingRegion::intersectsPointInTime(), SpatialIndex::LineSegment::LineSegment(), loadFromByteArray(), SpatialIndex::TimePoint::loadFromByteArray(), SpatialIndex::MovingPoint::loadFromByteArray(), SpatialIndex::MovingPoint::makeDimension(), makeDimension(), SpatialIndex::TimePoint::makeDimension(), SpatialIndex::MovingPoint::makeInfinite(), makeInfinite(), SpatialIndex::TimePoint::makeInfinite(), SpatialIndex::MovingPoint::MovingPoint(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), operator=(), SpatialIndex::MovingPoint::operator=(), SpatialIndex::TimePoint::operator=(), operator==(), SpatialIndex::MovingPoint::operator==(), SpatialIndex::TimePoint::operator==(), Point(), SpatialIndex::TPRTree::TPRTree::pointLocationQuery(), SpatialIndex::RTree::RTree::pointLocationQuery(), SpatialIndex::MVRTree::MVRTree::pointLocationQuery(), SpatialIndex::Region::Region(), storeToByteArray(), SpatialIndex::TimePoint::storeToByteArray(), SpatialIndex::MovingPoint::storeToByteArray(), SpatialIndex::TimePoint::TimePoint(), SpatialIndex::Region::touchesPoint(), and SpatialIndex::MovingPoint::~MovingPoint().
double* SpatialIndex::Point::m_pCoords {nullptr} |
Definition at line 78 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(), getMinimumDistance(), SpatialIndex::LineSegment::getMinimumDistance(), SpatialIndex::MovingPoint::getPointAtTime(), SpatialIndex::MovingPoint::getProjectedCoord(), SpatialIndex::LineSegment::getRelativeMinimumDistance(), SpatialIndex::LineSegment::LineSegment(), loadFromByteArray(), SpatialIndex::TimePoint::loadFromByteArray(), SpatialIndex::MovingPoint::loadFromByteArray(), SpatialIndex::MovingPoint::makeDimension(), makeDimension(), SpatialIndex::TimePoint::makeDimension(), SpatialIndex::MovingPoint::makeInfinite(), makeInfinite(), SpatialIndex::TimePoint::makeInfinite(), SpatialIndex::MovingPoint::MovingPoint(), SpatialIndex::MovingRegion::MovingRegion(), SpatialIndex::operator<<(), operator=(), SpatialIndex::MovingPoint::operator=(), SpatialIndex::TimePoint::operator=(), operator==(), SpatialIndex::TimePoint::operator==(), SpatialIndex::MovingPoint::operator==(), Point(), SpatialIndex::Region::Region(), storeToByteArray(), SpatialIndex::TimePoint::storeToByteArray(), SpatialIndex::MovingPoint::storeToByteArray(), SpatialIndex::TimePoint::TimePoint(), SpatialIndex::MovingPoint::~MovingPoint(), and ~Point().