A class to represent a trajectory data set. More...
#include <TrajectoryDataSet.h>
  
 Public Member Functions | |
| 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::Envelope & | getSpatialExtent () const | 
| It returns the spatial extent of the trajectory observations.  More... | |
| te::dt::DateTimePeriod * | getTemporalExtent () const | 
| It returns the temporal extent of the trajectory observations.  More... | |
| std::auto_ptr< Trajectory > | getTrajectory (AbstractTrajectoryInterp *interp) | 
| It returns the trajectory from the DataSet.  More... | |
| std::auto_ptr< Trajectory > | getTrajectory () | 
| It returns the trajectory from the DataSet.  More... | |
| const TrajectoryDataSetType & | getType () const | 
| It returns a reference to the internal trajectory data set type.  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 () | 
| It returns the trajectory geometry property.  More... | |
Constructor  | |
| TrajectoryDataSet (te::da::DataSet *ds, int tPropIdx, int gPropIdx, int idPropIdx, const std::string &id) | |
| Constructor.  More... | |
| TrajectoryDataSet (te::da::DataSet *ds, int tPropIdx, int gPropIdx, int idPropIdx, const std::string &id, te::dt::DateTimePeriod *text, const te::gm::Envelope &sext) | |
| Constructor.  More... | |
| TrajectoryDataSet (te::da::DataSet *ds, const std::vector< int > &tPropIdxs, int gPropIdx, int idPropIdx, const std::string &id) | |
| Constructor.  More... | |
| TrajectoryDataSet (te::da::DataSet *ds, const std::vector< int > &tPropIdxs, int gPropIdx, int idPropIdx, const std::string &id, te::dt::DateTimePeriod *text, const te::gm::Envelope &sext) | |
| Constructor.  More... | |
| TrajectoryDataSet (te::da::DataSet *ds, const TrajectoryDataSetType &type, te::dt::DateTimePeriod *text, const te::gm::Envelope &sext) | |
| Constructor.  More... | |
| TrajectoryDataSet (ObservationDataSet *obs, const TrajectoryDataSetType &type, 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.  | |
It returns the geometry pointed by the internal cursor. /*! 
 
  | |
| std::auto_ptr< te::gm::Geometry > | getGeometry () const | 
| std::auto_ptr< te::dt::DateTime > | getTime () const | 
| It returns the time pointed by the internal cursor.  More... | |
Protected Member Functions | |
| std::auto_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::auto_ptr< ObservationDataSet > | m_obsDs | 
| The data set that contains the trajectory observations.  More... | |
| TrajectoryDataSetType | m_type | 
| The trajectory type.  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, | 
| int | tPropIdx, | ||
| int | gPropIdx, | ||
| int | idPropIdx, | ||
| const std::string & | id | ||
| ) | 
Constructor.
| ds | The data set that contains the trajectory observations. | 
| tPropIdx | The index of the property that contains the times of a trajectory. | 
| gPropIdx | The index of the property that contains the geometries of a trajectory. | 
| idPropIdx | The index of the property that contains the identity of the trajectory. | 
| id | The trajectory id. | 
Definition at line 42 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, | 
| int | tPropIdx, | ||
| int | gPropIdx, | ||
| int | idPropIdx, | ||
| const std::string & | id, | ||
| te::dt::DateTimePeriod * | text, | ||
| const te::gm::Envelope & | sext | ||
| ) | 
Constructor.
| ds | The data set that contains the trajectory observations. | 
| tPropIdx | The index of the property that contains the times of a trajectory. | 
| gPropIdx | The index of the property that contains the geometries of a trajectory. | 
| idPropIdx | The index of the property that contains the identity of the trajectory. | 
| id | The trajectory id. | 
| text | The temporal extent. | 
| sext | The spatial extent. | 
Definition at line 51 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, | 
| const std::vector< int > & | tPropIdxs, | ||
| int | gPropIdx, | ||
| int | idPropIdx, | ||
| const std::string & | id | ||
| ) | 
Constructor.
| ds | The data set that contains the trajectory observations. | 
| tPropIdxs | The indexes of the properties that contains the begin and end times of a trajectory. | 
| gPropIdx | The index of the property that contains the geometries of a trajectory. | 
| idPropIdx | The index of the property that contains the identity of the trajectory. | 
| id | The trajectory id. | 
Definition at line 61 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, | 
| const std::vector< int > & | tPropIdxs, | ||
| int | gPropIdx, | ||
| int | idPropIdx, | ||
| const std::string & | id, | ||
| te::dt::DateTimePeriod * | text, | ||
| const te::gm::Envelope & | sext | ||
| ) | 
Constructor.
| ds | The data set that contains the trajectory observations. | 
| tPropIdxs | The indexes of the properties that contains the begin and end times of a trajectory. | 
| gPropIdx | The index of the property that contains the geometries of a trajectory. | 
| idPropIdx | The index of the property that contains the identity of the trajectory. | 
| id | The trajectory id. | 
| text | The temporal extent. | 
| sext | The spatial extent. | 
Definition at line 70 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | te::da::DataSet * | ds, | 
| const TrajectoryDataSetType & | type, | ||
| te::dt::DateTimePeriod * | text, | ||
| const te::gm::Envelope & | sext | ||
| ) | 
Constructor.
| ds | The data set that contains the trajectory observations. | 
| type | The trajectory data set type. | 
| text | The temporal extent. | 
| sext | The spatial extent. | 
Definition at line 80 of file TrajectoryDataSet.cpp.
| te::st::TrajectoryDataSet::TrajectoryDataSet | ( | ObservationDataSet * | obs, | 
| const TrajectoryDataSetType & | type, | ||
| const std::string & | id | ||
| ) | 
Constructor.
| obs | The data set that contains the trajectory observations. | 
| type | The trajectory data set type. | 
| id | The trajectory id | 
Definition at line 89 of file TrajectoryDataSet.cpp.
      
  | 
  virtual | 
It returns the trajectory geometry property.
It returns the trajectory datetime property.
Virtual destructor.
Definition at line 214 of file TrajectoryDataSet.cpp.
| std::auto_ptr< te::gm::Geometry > te::st::TrajectoryDataSet::getGeometry | ( | ) | const | 
Definition at line 167 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
| std::string te::st::TrajectoryDataSet::getId | ( | ) | const | 
It returns the identifier associated to the trajectory.
Definition at line 107 of file TrajectoryDataSet.cpp.
| te::st::ObservationDataSet * te::st::TrajectoryDataSet::getObservationSet | ( | ) | const | 
It returns the data set that contains the trajectory observations.
Definition at line 97 of file TrajectoryDataSet.cpp.
| const te::gm::Envelope & te::st::TrajectoryDataSet::getSpatialExtent | ( | ) | const | 
It returns the spatial extent of the trajectory observations.
Definition at line 185 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
| te::dt::DateTimePeriod * te::st::TrajectoryDataSet::getTemporalExtent | ( | ) | const | 
It returns the temporal extent of the trajectory observations.
Definition at line 180 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
| std::auto_ptr< te::dt::DateTime > te::st::TrajectoryDataSet::getTime | ( | ) | const | 
It returns the time pointed by the internal cursor.
Definition at line 173 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
| std::auto_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 190 of file TrajectoryDataSet.cpp.
References te::st::Trajectory::add(), te::da::DataSet::getDateTime(), te::da::DataSet::getGeometry(), and te::da::DataSet::moveNext().
| std::auto_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 203 of file TrajectoryDataSet.cpp.
References te::common::Singleton< NearestGeometryAtTimeInterp >::getInstance().
| const te::st::TrajectoryDataSetType & te::st::TrajectoryDataSet::getType | ( | ) | const | 
It returns a reference to the internal trajectory data set type.
Definition at line 102 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::isAfterEnd | ( | ) | const | 
Definition at line 162 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::isAtBegin | ( | ) | const | 
Definition at line 147 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::isAtEnd | ( | ) | const | 
Definition at line 157 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::isBeforeBegin | ( | ) | const | 
Definition at line 152 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::moveBeforeFirst | ( | ) | 
Definition at line 137 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::moveFirst | ( | ) | 
Definition at line 132 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::moveLast | ( | ) | 
Definition at line 142 of file TrajectoryDataSet.cpp.
| bool te::st::TrajectoryDataSet::moveNext | ( | ) | 
Definition at line 122 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
| bool te::st::TrajectoryDataSet::movePrevious | ( | ) | 
Definition at line 127 of file TrajectoryDataSet.cpp.
      
  | 
  protected | 
It releases all internal pointers, returning its internal DataSet and invalidating itself.
Definition at line 208 of file TrajectoryDataSet.cpp.
| 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 112 of file TrajectoryDataSet.cpp.
| std::size_t te::st::TrajectoryDataSet::size | ( | void | ) | const | 
It returns the size of the trajectory observation set.
Definition at line 117 of file TrajectoryDataSet.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory().
      
  | 
  friend | 
Definition at line 74 of file TrajectoryDataSet.h.
      
  | 
  private | 
The trajectory identification.
Definition at line 332 of file TrajectoryDataSet.h.
      
  | 
  private | 
The data set that contains the trajectory observations.
Definition at line 330 of file TrajectoryDataSet.h.
      
  | 
  private | 
The trajectory type.
Definition at line 331 of file TrajectoryDataSet.h.