WSF
Fires::BallisticPath Class Reference

#include <BallisticPath.hpp>

Public Member Functions

 BallisticPath (WsfSimulation *aSimPtr)
 BallisticPath (const BallisticPath &aSrc)
virtual ~BallisticPath ()
BallisticPathoperator= (const BallisticPath &aSrc)=delete
bool IsTargetType (const std::string &aType)
virtual bool Update (const WsfTrack &aTrack)
virtual void Update (WsfPlatform *aPlatform)
 Update the trajectory using the given platform.
virtual bool IsValid () const
void Draw (WsfDraw &aDraw) const
 Draw the trajectory using the given WsfDraw object.
void SetIntegrationInterval (double aInterval)
 Set the integration interval to be used for trajectory extrapolation.
double GetApogeeTime () const
 Get the time at which the trajectory is at its apogee.
double GetImpactTime () const
 Get the calculated impact time.
double GetStartTime () const
 Get the start time that the trajectory was calculated.
bool GetLocationWCS (double aSimTime, double aLocWCS[3]) const
bool GetVelocityWCS (double aSimTime, double aVelWCS[3]) const
bool IsInitialized () const
const WsfGeoPointGetImpactPoint () const

Static Public Member Functions

static void GetRangeAndAltitude (const double aOriginLocWCS[3], const double aTargetLocWCS[3], double &aRange, double &aAltitude)
 Find the ground range and altitude of the target with respect to some origin (the shooter).

Protected Member Functions

virtual void Integrate (double aElapsedTime, double aLocWCS[3], double aVelWCS[3])

Constructor & Destructor Documentation

◆ BallisticPath() [1/2]

Fires::BallisticPath::BallisticPath ( WsfSimulation * aSimPtr)
explicit

Referenced by BallisticPath(), and operator=().

◆ BallisticPath() [2/2]

Fires::BallisticPath::BallisticPath ( const BallisticPath & aSrc)

◆ ~BallisticPath()

Fires::BallisticPath::~BallisticPath ( )
virtual

Member Function Documentation

◆ Draw()

void Fires::BallisticPath::Draw ( WsfDraw & aDraw) const

Draw the trajectory using the given WsfDraw object.

References WsfDraw::BeginPolyline(), WsfDraw::End(), and WsfDraw::VertexWCS().

◆ GetApogeeTime()

double Fires::BallisticPath::GetApogeeTime ( ) const
inline

Get the time at which the trajectory is at its apogee.

◆ GetImpactPoint()

const WsfGeoPoint & Fires::BallisticPath::GetImpactPoint ( ) const
inline

◆ GetImpactTime()

double Fires::BallisticPath::GetImpactTime ( ) const
inline

Get the calculated impact time.

◆ GetLocationWCS()

bool Fires::BallisticPath::GetLocationWCS ( double aSimTime,
double aLocWCS[3] ) const

Return the ellipsoidal WCS location of the target at the specified time.

Parameters
aSimTimeThe time for which the target position is to be returned.
aLocWCSThe spherical WCS location of the target at 'aSimTime'.

References IsValid(), and ok.

◆ GetRangeAndAltitude()

void Fires::BallisticPath::GetRangeAndAltitude ( const double aOriginLocWCS[3],
const double aTargetLocWCS[3],
double & aRange,
double & aAltitude )
static

Find the ground range and altitude of the target with respect to some origin (the shooter).

◆ GetStartTime()

double Fires::BallisticPath::GetStartTime ( ) const
inline

Get the start time that the trajectory was calculated.

◆ GetVelocityWCS()

bool Fires::BallisticPath::GetVelocityWCS ( double aSimTime,
double aVelWCS[3] ) const

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

Parameters
aSimTimeThe time for which the target position is to be returned.
aVelWCSThe spherical WCS location of the target at 'aSimTime'.

References ok.

◆ Integrate()

void Fires::BallisticPath::Integrate ( double aElapsedTime,
double aLocWCS[3],
double aVelWCS[3] )
protectedvirtual

◆ IsInitialized()

bool Fires::BallisticPath::IsInitialized ( ) const
inline

◆ IsTargetType()

bool Fires::BallisticPath::IsTargetType ( const std::string & aType)

Return whether the given type is in the list of types defined in the BallisticPlatforms class, using the "ballistic_types" input.

Parameters
aTypeThe platform type to check.

Referenced by operator=().

◆ IsValid()

virtual bool Fires::BallisticPath::IsValid ( ) const
inlinevirtual

Referenced by GetLocationWCS().

◆ operator=()

BallisticPath & Fires::BallisticPath::operator= ( const BallisticPath & aSrc)
delete

References BallisticPath(), and IsTargetType().

◆ SetIntegrationInterval()

void Fires::BallisticPath::SetIntegrationInterval ( double aInterval)
inline

Set the integration interval to be used for trajectory extrapolation.

◆ Update() [1/2]

bool Fires::BallisticPath::Update ( const WsfTrack & aTrack)
virtual

Update the trajectory using the given track.

Parameters
aTrackThe track used to update the trajectory.

References WsfTrack::GetTargetIndex(), WsfTrack::GetUpdateTime(), moverPtr, and platformPtr.

◆ Update() [2/2]

void Fires::BallisticPath::Update ( WsfPlatform * aPlatform)
virtual

Update the trajectory using the given platform.


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