libspatialindex API Reference
(git-trunk)
|
#include <Ball.h>
Public Member Functions | |
Ball () | |
Ball (double radius, const Point ¢er) | |
Ball (double radius, const double *pCoords, uint32_t dimension) | |
Ball (const Ball &b) | |
~Ball () override | |
virtual Ball & | operator= (const Ball &b) |
virtual bool | operator== (const Ball &b) const |
Ball * | 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 (SpatialIndex::Point &out) const override |
uint32_t | getDimension () const override |
void | getMBR (SpatialIndex::Region &out) const override |
double | getArea () const override |
double | getMinimumDistance (const IShape &in) const override |
virtual bool | containsLineSegment (const SpatialIndex::LineSegment *line) const |
virtual bool | containsRegion (const SpatialIndex::Region *region) const |
bool | containsPoint (const Point *point) const |
bool | containsBall (const Ball *ball) const |
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 | |
double | m_radius {0.0} |
Point | m_centerPoint |
|
default |
Ball::Ball | ( | double | radius, |
const Point & | center | ||
) |
Definition at line 45 of file Ball.cc.
References m_centerPoint, and m_radius.
Ball::Ball | ( | double | radius, |
const double * | pCoords, | ||
uint32_t | dimension | ||
) |
Definition at line 51 of file Ball.cc.
References m_centerPoint, m_radius, and ~Ball().
Ball::Ball | ( | const Ball & | b | ) |
Definition at line 39 of file Ball.cc.
References m_centerPoint, and m_radius.
|
overridedefault |
|
overridevirtual |
Implements Tools::IObject.
Definition at line 79 of file Ball.cc.
References Ball().
|
inline |
Definition at line 84 of file Ball.h.
References m_centerPoint, and m_radius.
Referenced by containsShape().
|
virtual |
Definition at line 195 of file Ball.cc.
References m_centerPoint, SpatialIndex::Point::m_dimension, SpatialIndex::Point::m_pCoords, SpatialIndex::LineSegment::m_pEndPoint, SpatialIndex::LineSegment::m_pStartPoint, and m_radius.
Referenced by containsShape().
|
inline |
Definition at line 79 of file Ball.h.
Referenced by containsShape().
|
virtual |
Definition at line 183 of file Ball.cc.
References m_centerPoint, SpatialIndex::Point::m_dimension, SpatialIndex::Point::m_pCoords, SpatialIndex::Region::m_pHigh, SpatialIndex::Region::m_pLow, and m_radius.
Referenced by containsShape().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 121 of file Ball.cc.
References containsBall(), containsLineSegment(), containsPoint(), containsRegion(), SpatialIndex::IShape::getDimension(), m_centerPoint, and SpatialIndex::Point::m_dimension.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 171 of file Ball.cc.
References m_centerPoint, SpatialIndex::Point::m_dimension, M_PI, and m_radius.
|
overridevirtual |
Implements Tools::ISerializable.
Definition at line 87 of file Ball.cc.
References SpatialIndex::Point::getByteArraySize(), and m_centerPoint.
Referenced by storeToByteArray().
|
overridevirtual |
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 156 of file Ball.cc.
References m_centerPoint, and SpatialIndex::Point::m_dimension.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 161 of file Ball.cc.
References m_centerPoint, SpatialIndex::Point::m_dimension, SpatialIndex::Region::m_pHigh, SpatialIndex::Region::m_pLow, and m_radius.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 178 of file Ball.cc.
References SpatialIndex::IShape::getMinimumDistance(), m_centerPoint, and m_radius.
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 116 of file Ball.cc.
References SpatialIndex::IShape::getMinimumDistance(), m_centerPoint, and m_radius.
|
overridevirtual |
Implements Tools::ISerializable.
Definition at line 92 of file Ball.cc.
References SpatialIndex::Point::getByteArraySize(), SpatialIndex::Point::loadFromByteArray(), m_centerPoint, and m_radius.
Definition at line 60 of file Ball.cc.
References m_centerPoint, and m_radius.
|
virtual |
Definition at line 70 of file Ball.cc.
References m_centerPoint, and m_radius.
|
overridevirtual |
Implements Tools::ISerializable.
Definition at line 99 of file Ball.cc.
References getByteArraySize(), m_centerPoint, m_radius, and SpatialIndex::Point::storeToByteArray().
|
overridevirtual |
Implements SpatialIndex::IShape.
Definition at line 145 of file Ball.cc.
References SpatialIndex::IShape::getMinimumDistance(), m_centerPoint, and m_radius.
Point SpatialIndex::Ball::m_centerPoint |
Definition at line 91 of file Ball.h.
Referenced by Ball(), containsBall(), containsLineSegment(), containsRegion(), containsShape(), getArea(), getByteArraySize(), getCenter(), getDimension(), getMBR(), getMinimumDistance(), intersectsShape(), loadFromByteArray(), SpatialIndex::operator<<(), operator=(), operator==(), storeToByteArray(), and touchesShape().
double SpatialIndex::Ball::m_radius {0.0} |
Definition at line 90 of file Ball.h.
Referenced by Ball(), containsBall(), containsLineSegment(), containsRegion(), getArea(), getMBR(), getMinimumDistance(), intersectsShape(), loadFromByteArray(), SpatialIndex::operator<<(), operator=(), operator==(), storeToByteArray(), and touchesShape().