All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::st::NearestGeometryAtTimeInterp Class Reference

It is an interpolation function the estimates the nearest geometry at a given non-observed time of a trajectory. More...

#include <NearestGeometryAtTimeInterp.h>

Inheritance diagram for te::st::NearestGeometryAtTimeInterp:
te::st::AbstractTrajectoryInterp te::common::Singleton< NearestGeometryAtTimeInterp >

Public Member Functions

std::auto_ptr< te::gm::Geometryestimate (const Trajectory &tj, te::dt::DateTime *time) const
 It estimates a geometry of a trajectory at a given non-observed time . More...
 
te::common::AbstractParametersgetParams ()
 It gets the parameters associated to the interpolator. More...
 
void setParams (te::common::AbstractParameters *p)
 It sets the parameters associated to the interpolator. More...
 
virtual ~NearestGeometryAtTimeInterp ()
 Virtual destructor. More...
 

Static Public Member Functions

static
NearestGeometryAtTimeInterp
getInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 NearestGeometryAtTimeInterp ()
 Constructor. More...
 

Friends

class te::common::Singleton< NearestGeometryAtTimeInterp >
 

Detailed Description

It is an interpolation function the estimates the nearest geometry at a given non-observed time of a trajectory.

See also
AbstractTrajectoryInterp

Definition at line 50 of file NearestGeometryAtTimeInterp.h.

Constructor & Destructor Documentation

te::st::NearestGeometryAtTimeInterp::~NearestGeometryAtTimeInterp ( )
virtual

Virtual destructor.

Definition at line 40 of file NearestGeometryAtTimeInterp.cpp.

te::st::NearestGeometryAtTimeInterp::NearestGeometryAtTimeInterp ( )
protected

Constructor.

Definition at line 36 of file NearestGeometryAtTimeInterp.cpp.

Member Function Documentation

std::auto_ptr< te::gm::Geometry > te::st::NearestGeometryAtTimeInterp::estimate ( const Trajectory tj,
te::dt::DateTime time 
) const
virtual

It estimates a geometry of a trajectory at a given non-observed time .

Parameters
tjA trajectory used in the estimation.
timeThe given non-observed time.
Returns
The estimated geometry.
Note
It will NOT take the ownership of the given pointer.
The caller will take the ownership of the output Geometry pointer.

Implements te::st::AbstractTrajectoryInterp.

Definition at line 45 of file NearestGeometryAtTimeInterp.cpp.

References te::dt::AbstractData::clone(), te::dt::GetDistance(), and te::st::Trajectory::getObservations().

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.

Referenced by te::st::TrajectoryDataSet::getTrajectory().

te::common::AbstractParameters* te::st::NearestGeometryAtTimeInterp::getParams ( )
inlinevirtual

It gets the parameters associated to the interpolator.

Returns
It returns the parameters associated to the interpolator.
Note
The caller will not take the ownership of the returned pointer.

Implements te::st::AbstractTrajectoryInterp.

Definition at line 56 of file NearestGeometryAtTimeInterp.h.

void te::st::NearestGeometryAtTimeInterp::setParams ( te::common::AbstractParameters p)
inlinevirtual

It sets the parameters associated to the interpolator.

Parameters
pThe parameters to be associated to the interpolator.
Note
It will take the ownership of the given pointer.

Implements te::st::AbstractTrajectoryInterp.

Definition at line 58 of file NearestGeometryAtTimeInterp.h.

Friends And Related Function Documentation

Definition at line 52 of file NearestGeometryAtTimeInterp.h.


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