WSF
WsfTSPI_Mover::TSPI_Model Class Reference

#include <WsfTSPI_Mover.hpp>

Inheritance diagram for WsfTSPI_Mover::TSPI_Model:
Collaboration diagram for WsfTSPI_Mover::TSPI_Model:

Classes

struct  Point

Public Member Functions

 TSPI_Model (double aSimTime, double aStartTime, double aTSPI_StartTime, WsfStringId aModelTypeId, const WsfTSPI_Mover *aTSPI_MoverPtr, WsfDraw *aDrawPtr=nullptr)
bool GetLocationXYZ (double aTime, double aLocXYZ[3]) const override
bool GetVelocityXYZ (double aTime, double aVelXYZ[3]) const override
Public Member Functions inherited from WsfMover::KinematicModel
 KinematicModel ()=delete
 KinematicModel (const KinematicModel &aSrc)=default
virtual ~KinematicModel ()
double GetApogeeTime () const
double GetTimeAtLocation () const
double GetStartTime () const

Protected Member Functions

void Add (const Point &aPoint)
Protected Member Functions inherited from WsfMover::KinematicModel
 KinematicModel (double aSimTime, WsfStringId aModelTypeId)

Protected Attributes

double mTSPI_StartTime
std::vector< PointmPoints
Protected Attributes inherited from WsfMover::KinematicModel
double mStartTime
double mApogeeTime
double mTimeAtLocation
WsfStringId mModelTypeId

Additional Inherited Members

Static Public Member Functions inherited from WsfMover::KinematicModel
static void GetRangeAndAltitude (const double aOriginLocXYZ[3], const double aModelLocXYZ[3], double &aRange, double &aAltitude)

Detailed Description

A class encapsulating a TSPI kinematic trajectory model. It may be used to predict ahead the locations, times or apogee of entities.

Constructor & Destructor Documentation

◆ TSPI_Model()

WsfTSPI_Mover::TSPI_Model::TSPI_Model ( double aSimTime,
double aStartTime,
double aTSPI_StartTime,
WsfStringId aModelTypeId,
const WsfTSPI_Mover * aTSPI_MoverPtr,
WsfDraw * aDrawPtr = nullptr )

Member Function Documentation

◆ Add()

void WsfTSPI_Mover::TSPI_Model::Add ( const Point & aPoint)
protected

◆ GetLocationXYZ()

bool WsfTSPI_Mover::TSPI_Model::GetLocationXYZ ( double aTime,
double aLocXYZ[3] ) const
overridevirtual

Return the SPHERICAL WCS location of the model at the specified time.

Parameters
aTimeThe time for which the model position is to be returned.
aLocXYZThe spherical WCS location of the model at 'aSimTime'.
Returns
true if valid data was returned or false if no data exists for the specified time.

Implements WsfMover::KinematicModel.

References mPoints, WsfMover::KinematicModel::mStartTime, and mTSPI_StartTime.

◆ GetVelocityXYZ()

bool WsfTSPI_Mover::TSPI_Model::GetVelocityXYZ ( double aTime,
double aVelXYZ[3] ) const
overridevirtual

Return the SPHERICAL WCS velocity of the model at the specified time.

Parameters
aTimeThe time for which the model velocity is to be returned.
aVelXYZThe spherical WCS velocity of the model at 'aSimTime'.
Returns
true if valid data was returned or false if no data exists for the specified time.
Note
This routine does not need to be particularly fast or accurate.

Implements WsfMover::KinematicModel.

References mPoints, WsfMover::KinematicModel::mStartTime, mTSPI_StartTime, and vel.

Member Data Documentation

◆ mPoints

std::vector<Point> WsfTSPI_Mover::TSPI_Model::mPoints
protected

◆ mTSPI_StartTime

double WsfTSPI_Mover::TSPI_Model::mTSPI_StartTime
protected

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved