libspatialindex API Reference  (git-trunk)
SpatialIndex::TimePoint Class Reference

#include <TimePoint.h>

Inheritance diagram for SpatialIndex::TimePoint:
Inheritance graph
Collaboration diagram for SpatialIndex::TimePoint:
Collaboration graph

Public Member Functions

 TimePoint ()
 
 TimePoint (const double *pCoords, const Tools::IInterval &ti, uint32_t dimension)
 
 TimePoint (const double *pCoords, double tStart, double tEnd, uint32_t dimension)
 
 TimePoint (const Point &p, const Tools::IInterval &ti)
 
 TimePoint (const Point &p, double tStart, double tEnd)
 
 TimePoint (const TimePoint &p)
 
 ~TimePoint () override
 
virtual TimePointoperator= (const TimePoint &p)
 
virtual bool operator== (const TimePoint &p) const
 
TimePointclone () override
 
uint32_t getByteArraySize () override
 
void loadFromByteArray (const uint8_t *data) override
 
void storeToByteArray (uint8_t **data, uint32_t &len) override
 
bool intersectsShapeInTime (const ITimeShape &in) const override
 
bool intersectsShapeInTime (const Tools::IInterval &ivI, const ITimeShape &in) const override
 
bool containsShapeInTime (const ITimeShape &in) const override
 
bool containsShapeInTime (const Tools::IInterval &ivI, const ITimeShape &in) const override
 
bool touchesShapeInTime (const ITimeShape &in) const override
 
bool touchesShapeInTime (const Tools::IInterval &ivI, const ITimeShape &in) const override
 
double getAreaInTime () const override
 
double getAreaInTime (const Tools::IInterval &ivI) const override
 
double getIntersectingAreaInTime (const ITimeShape &r) const override
 
double getIntersectingAreaInTime (const Tools::IInterval &ivI, const ITimeShape &r) const override
 
virtual Tools::IIntervaloperator= (const Tools::IInterval &)
 
double getLowerBound () const override
 
double getUpperBound () const override
 
void setBounds (double, double) override
 
bool intersectsInterval (const Tools::IInterval &ti) const override
 
bool intersectsInterval (Tools::IntervalType t, const double start, const double end) const override
 
bool containsInterval (const Tools::IInterval &ti) const override
 
Tools::IntervalType getIntervalType () const override
 
void makeInfinite (uint32_t dimension) override
 
void makeDimension (uint32_t dimension) override
 
- Public Member Functions inherited from SpatialIndex::Point
 Point ()
 
 Point (const double *pCoords, uint32_t dimension)
 
 Point (const Point &p)
 
 ~Point () override
 
virtual Pointoperator= (const Point &p)
 
virtual bool operator== (const Point &p) const
 
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
 
- 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 Member Functions inherited from SpatialIndex::ITimeShape
 ~ITimeShape () override=default
 
- Public Member Functions inherited from Tools::IInterval
virtual ~IInterval ()=default
 

Public Attributes

double m_startTime
 
double m_endTime
 
- Public Attributes inherited from SpatialIndex::Point
uint32_t m_dimension {0}
 
double * m_pCoords {nullptr}
 

Friends

SIDX_DLL std::ostream & operator<< (std::ostream &os, const TimePoint &pt)
 

Detailed Description

Definition at line 32 of file TimePoint.h.

Constructor & Destructor Documentation

◆ TimePoint() [1/6]

TimePoint::TimePoint ( )

Definition at line 35 of file TimePoint.cc.

Referenced by clone().

Here is the caller graph for this function:

◆ TimePoint() [2/6]

SpatialIndex::TimePoint::TimePoint ( const double *  pCoords,
const Tools::IInterval ti,
uint32_t  dimension 
)

◆ TimePoint() [3/6]

TimePoint::TimePoint ( const double *  pCoords,
double  tStart,
double  tEnd,
uint32_t  dimension 
)

Definition at line 45 of file TimePoint.cc.

◆ TimePoint() [4/6]

SpatialIndex::TimePoint::TimePoint ( const Point p,
const Tools::IInterval ti 
)

◆ TimePoint() [5/6]

TimePoint::TimePoint ( const Point p,
double  tStart,
double  tEnd 
)

Definition at line 55 of file TimePoint.cc.

◆ TimePoint() [6/6]

TimePoint::TimePoint ( const TimePoint p)

◆ ~TimePoint()

TimePoint::~TimePoint ( )
overridedefault

Member Function Documentation

◆ clone()

TimePoint * TimePoint::clone ( )
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 108 of file TimePoint.cc.

References TimePoint().

Here is the call graph for this function:

◆ containsInterval()

bool TimePoint::containsInterval ( const Tools::IInterval ti) const
overridevirtual

Implements Tools::IInterval.

Definition at line 254 of file TimePoint.cc.

References m_endTime, and m_startTime.

◆ containsShapeInTime() [1/2]

bool TimePoint::containsShapeInTime ( const ITimeShape in) const
overridevirtual

Implements SpatialIndex::ITimeShape.

Definition at line 168 of file TimePoint.cc.

◆ containsShapeInTime() [2/2]

bool SpatialIndex::TimePoint::containsShapeInTime ( const Tools::IInterval ivI,
const ITimeShape in 
) const
overridevirtual

◆ getAreaInTime() [1/2]

double TimePoint::getAreaInTime ( ) const
overridevirtual

Implements SpatialIndex::ITimeShape.

Definition at line 188 of file TimePoint.cc.

◆ getAreaInTime() [2/2]

double SpatialIndex::TimePoint::getAreaInTime ( const Tools::IInterval ivI) const
overridevirtual

◆ getByteArraySize()

uint32_t TimePoint::getByteArraySize ( )
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 116 of file TimePoint.cc.

References SpatialIndex::Point::m_dimension.

Referenced by storeToByteArray().

Here is the caller graph for this function:

◆ getIntersectingAreaInTime() [1/2]

double TimePoint::getIntersectingAreaInTime ( const ITimeShape r) const
overridevirtual

Implements SpatialIndex::ITimeShape.

Definition at line 198 of file TimePoint.cc.

◆ getIntersectingAreaInTime() [2/2]

double SpatialIndex::TimePoint::getIntersectingAreaInTime ( const Tools::IInterval ivI,
const ITimeShape r 
) const
overridevirtual

◆ getIntervalType()

Tools::IntervalType TimePoint::getIntervalType ( ) const
overridevirtual

Implements Tools::IInterval.

Definition at line 260 of file TimePoint.cc.

References Tools::IT_RIGHTOPEN.

◆ getLowerBound()

double TimePoint::getLowerBound ( ) const
overridevirtual

Implements Tools::IInterval.

Definition at line 222 of file TimePoint.cc.

References m_startTime.

◆ getUpperBound()

double TimePoint::getUpperBound ( ) const
overridevirtual

Implements Tools::IInterval.

Definition at line 227 of file TimePoint.cc.

References m_endTime.

◆ intersectsInterval() [1/2]

bool SpatialIndex::TimePoint::intersectsInterval ( const Tools::IInterval ti) const
overridevirtual

Implements Tools::IInterval.

◆ intersectsInterval() [2/2]

bool TimePoint::intersectsInterval ( Tools::IntervalType  t,
const double  start,
const double  end 
) const
overridevirtual

Implements Tools::IInterval.

Definition at line 245 of file TimePoint.cc.

References m_endTime, and m_startTime.

◆ intersectsShapeInTime() [1/2]

bool TimePoint::intersectsShapeInTime ( const ITimeShape in) const
overridevirtual

Implements SpatialIndex::ITimeShape.

Definition at line 155 of file TimePoint.cc.

References SpatialIndex::TimeRegion::containsPointInTime().

Here is the call graph for this function:

◆ intersectsShapeInTime() [2/2]

bool SpatialIndex::TimePoint::intersectsShapeInTime ( const Tools::IInterval ivI,
const ITimeShape in 
) const
overridevirtual

◆ loadFromByteArray()

void TimePoint::loadFromByteArray ( const uint8_t *  data)
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 121 of file TimePoint.cc.

References SpatialIndex::Point::m_dimension, m_endTime, SpatialIndex::Point::m_pCoords, m_startTime, and makeDimension().

Here is the call graph for this function:

◆ makeDimension()

void TimePoint::makeDimension ( uint32_t  dimension)
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 277 of file TimePoint.cc.

References SpatialIndex::Point::m_dimension, and SpatialIndex::Point::m_pCoords.

Referenced by loadFromByteArray(), makeInfinite(), and operator=().

Here is the caller graph for this function:

◆ makeInfinite()

void TimePoint::makeInfinite ( uint32_t  dimension)
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 265 of file TimePoint.cc.

References SpatialIndex::Point::m_dimension, m_endTime, SpatialIndex::Point::m_pCoords, m_startTime, and makeDimension().

Here is the call graph for this function:

◆ operator=() [1/2]

TimePoint & TimePoint::operator= ( const TimePoint p)
virtual

Definition at line 72 of file TimePoint.cc.

References SpatialIndex::Point::m_dimension, m_endTime, SpatialIndex::Point::m_pCoords, m_startTime, and makeDimension().

Here is the call graph for this function:

◆ operator=() [2/2]

Tools::IInterval & TimePoint::operator= ( const Tools::IInterval i)
virtual

Definition at line 211 of file TimePoint.cc.

References Tools::IInterval::getLowerBound(), Tools::IInterval::getUpperBound(), m_endTime, and m_startTime.

Here is the call graph for this function:

◆ operator==()

bool TimePoint::operator== ( const TimePoint p) const
virtual

◆ setBounds()

void TimePoint::setBounds ( double  l,
double  h 
)
overridevirtual

Implements Tools::IInterval.

Definition at line 232 of file TimePoint.cc.

References m_endTime, and m_startTime.

◆ storeToByteArray()

void TimePoint::storeToByteArray ( uint8_t **  data,
uint32_t &  len 
)
overridevirtual

Reimplemented from SpatialIndex::Point.

Definition at line 136 of file TimePoint.cc.

References getByteArraySize(), SpatialIndex::Point::m_dimension, m_endTime, SpatialIndex::Point::m_pCoords, and m_startTime.

Here is the call graph for this function:

◆ touchesShapeInTime() [1/2]

bool TimePoint::touchesShapeInTime ( const ITimeShape in) const
overridevirtual

Implements SpatialIndex::ITimeShape.

Definition at line 178 of file TimePoint.cc.

◆ touchesShapeInTime() [2/2]

bool SpatialIndex::TimePoint::touchesShapeInTime ( const Tools::IInterval ivI,
const ITimeShape in 
) const
overridevirtual

Friends And Related Function Documentation

◆ operator<<

SIDX_DLL std::ostream& operator<< ( std::ostream &  os,
const TimePoint pt 
)
friend

Member Data Documentation

◆ m_endTime

◆ m_startTime


The documentation for this class was generated from the following files: