A class to represent a trajectory data set. More...
#include <TrajectoryDataSet.h>
Public Member Functions | |
| const te::gm::GeometryProperty * | getGeometryProperty () const |
| It returns the trajectory geometry property. More... | |
| std::string | getId () const |
| It returns the identifier associated to the trajectory. More... | |
| ObservationDataSet * | getObservationSet () const |
| It returns the data set that contains the trajectory observations. More... | |
| const te::gm::Geometry * | getSpatialExtent () const |
| It returns the spatial extent of the trajectory observations. More... | |
| const te::dt::DateTimePeriod * | getTemporalExtent () const |
| It returns the temporal extent of the trajectory observations. More... | |
| const te::dt::DateTimeProperty * | getTimeProperty () const |
| It returns the trajectory datetime property. More... | |
| std::unique_ptr< Trajectory > | getTrajectory (AbstractTrajectoryInterp *interp) |
| It returns the trajectory from the DataSet. More... | |
| std::unique_ptr< Trajectory > | getTrajectory () |
| It returns the trajectory from the DataSet. More... | |
| void | setId (const std::string &id) |
| It sets the identifier associated to the trajectory. More... | |
| std::size_t | size () const |
| It returns the size of the trajectory observation set. More... | |
| virtual | ~TrajectoryDataSet () |
| Virtual destructor. More... | |
Constructor | |
| TrajectoryDataSet (te::da::DataSet *ds, const ObservationDataSetType &type) | |
| Constructor. More... | |
| TrajectoryDataSet (te::da::DataSet *ds, const ObservationDataSetType &type, const std::string &id) | |
| Constructor. More... | |
| TrajectoryDataSet (ObservationDataSet *obs, const std::string &id) | |
| Constructor. More... | |
Methods to traverse the trajectory observations and to check the | |
internal cursor pointer | |
| bool | moveNext () |
| bool | movePrevious () |
| bool | moveFirst () |
| bool | moveBeforeFirst () |
| bool | moveLast () |
| bool | isAtBegin () const |
| bool | isBeforeBegin () const |
| bool | isAtEnd () const |
| bool | isAfterEnd () const |
Methods to get values pointed by the internal cursor. | |
| std::unique_ptr< te::gm::Geometry > | getGeometry () const |
| It returns the geometry pointed by the internal cursor. More... | |
| std::unique_ptr< te::dt::DateTime > | getTime () const |
| It returns the time pointed by the internal cursor. More... | |
Protected Member Functions | |
| std::unique_ptr< te::da::DataSet > | release () |
| It releases all internal pointers, returning its internal DataSet and invalidating itself. More... | |
Private Attributes | |
| std::string | m_id |
| The trajectory identification. More... | |
| std::unique_ptr< ObservationDataSet > | m_obsDs |
| The data set that contains the trajectory observations. More... | |
Friends | |
| class | TrajectoryDataSetLayer |
A class to represent a trajectory data set.
This class represents a view on a DataSet that contains observations of a trajectory.
A trajectory represents the variation of spatial locations or boundaries of an object over time. It is composed of an observation data set where one observed property is a geometry. The observations have a fixed object identity and measured geometries at controlled times.
Definition at line 72 of file TrajectoryDataSet.h.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, |
| const ObservationDataSetType & | type | ||
| ) |
Constructor.
| ds | The data set that contains the trajectory observations. |
| type | The observation data set type. |
Definition at line 42 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, |
| const ObservationDataSetType & | type, | ||
| const std::string & | id | ||
| ) |
Constructor.
| ds | The data set that contains the trajectory observations. |
| type | The observation data set type. |
| id | The trajectory id. |
Definition at line 49 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | ObservationDataSet * | obs, |
| const std::string & | id | ||
| ) |
Constructor.
| obs | The data set that contains the trajectory observations. |
| id | The trajectory id |
Definition at line 56 of file TrajectoryDataSet.cpp.
|
virtualdefault |
Virtual destructor.
Referenced by release().
| std::unique_ptr< te::gm::Geometry > te::st::TrajectoryDataSet::getGeometry | ( | ) | const |
It returns the geometry pointed by the internal cursor.
Definition at line 127 of file TrajectoryDataSet.cpp.
References m_obsDs.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), and PrintTrajectoryDataSet().
|
inline |
It returns the trajectory geometry property.
Definition at line 238 of file TrajectoryDataSet.h.
| std::string te::st::TrajectoryDataSet::getId | ( | ) | const |
It returns the identifier associated to the trajectory.
Definition at line 67 of file TrajectoryDataSet.cpp.
References m_id.
| te::st::ObservationDataSet * te::st::TrajectoryDataSet::getObservationSet | ( | ) | const |
It returns the data set that contains the trajectory observations.
Definition at line 62 of file TrajectoryDataSet.cpp.
References m_obsDs.
| const te::gm::Geometry * te::st::TrajectoryDataSet::getSpatialExtent | ( | ) | const |
It returns the spatial extent of the trajectory observations.
Definition at line 146 of file TrajectoryDataSet.cpp.
References m_obsDs.
| const te::dt::DateTimePeriod * te::st::TrajectoryDataSet::getTemporalExtent | ( | ) | const |
It returns the temporal extent of the trajectory observations.
Definition at line 141 of file TrajectoryDataSet.cpp.
References m_obsDs.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), and PrintTrajectoryDataSetInfo().
| std::unique_ptr< te::dt::DateTime > te::st::TrajectoryDataSet::getTime | ( | ) | const |
It returns the time pointed by the internal cursor.
Definition at line 134 of file TrajectoryDataSet.cpp.
References m_obsDs.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), and PrintTrajectoryDataSet().
|
inline |
It returns the trajectory datetime property.
Definition at line 247 of file TrajectoryDataSet.h.
| std::unique_ptr< te::st::Trajectory > te::st::TrajectoryDataSet::getTrajectory | ( | AbstractTrajectoryInterp * | interp | ) |
It returns the trajectory from the DataSet.
This method encapsulates all observations of this DataSet as a Trajectory type associated to a given interpolator.
Definition at line 151 of file TrajectoryDataSet.cpp.
References te::st::Trajectory::add(), ds, te::da::DataSet::getDateTime(), te::da::DataSet::getGeometry(), m_id, m_obsDs, and te::da::DataSet::moveNext().
Referenced by TrajectoryExamples().
| std::unique_ptr< te::st::Trajectory > te::st::TrajectoryDataSet::getTrajectory | ( | ) |
It returns the trajectory from the DataSet.
This method encapsulates all observations of this DataSet as a Trajectory type associated to a NearestGeometryAtTimeInterp interpolator.
Definition at line 164 of file TrajectoryDataSet.cpp.
References te::common::Singleton< NearestGeometryAtTimeInterp >::getInstance().
| bool te::st::TrajectoryDataSet::isAfterEnd | ( | ) | const |
Definition at line 122 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::isAtBegin | ( | ) | const |
Definition at line 107 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::isAtEnd | ( | ) | const |
Definition at line 117 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::isBeforeBegin | ( | ) | const |
Definition at line 112 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::moveBeforeFirst | ( | ) |
Definition at line 97 of file TrajectoryDataSet.cpp.
References m_obsDs.
Referenced by PrintTrajectoryDataSet(), and TrajectoryExamples().
| bool te::st::TrajectoryDataSet::moveFirst | ( | ) |
Definition at line 92 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::moveLast | ( | ) |
Definition at line 102 of file TrajectoryDataSet.cpp.
References m_obsDs.
| bool te::st::TrajectoryDataSet::moveNext | ( | ) |
Definition at line 82 of file TrajectoryDataSet.cpp.
References m_obsDs.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), and PrintTrajectoryDataSet().
| bool te::st::TrajectoryDataSet::movePrevious | ( | ) |
Definition at line 87 of file TrajectoryDataSet.cpp.
References m_obsDs.
|
protected |
It releases all internal pointers, returning its internal DataSet and invalidating itself.
Definition at line 169 of file TrajectoryDataSet.cpp.
References m_obsDs, and ~TrajectoryDataSet().
| void te::st::TrajectoryDataSet::setId | ( | const std::string & | id | ) |
It sets the identifier associated to the trajectory.
| id | The identifier associated to the trajectory. |
Definition at line 72 of file TrajectoryDataSet.cpp.
References m_id.
| std::size_t te::st::TrajectoryDataSet::size | ( | void | ) | const |
It returns the size of the trajectory observation set.
Definition at line 77 of file TrajectoryDataSet.cpp.
References m_obsDs.
|
friend |
Definition at line 74 of file TrajectoryDataSet.h.
|
private |
The trajectory identification.
Definition at line 265 of file TrajectoryDataSet.h.
Referenced by getId(), getTrajectory(), and setId().
|
private |
The data set that contains the trajectory observations.
Definition at line 264 of file TrajectoryDataSet.h.
Referenced by getGeometry(), getObservationSet(), getSpatialExtent(), getTemporalExtent(), getTime(), getTrajectory(), isAfterEnd(), isAtBegin(), isAtEnd(), isBeforeBegin(), moveBeforeFirst(), moveFirst(), moveLast(), moveNext(), movePrevious(), release(), and size().