swift
Public Member Functions | List of all members
swift::misc::simulation::CInterpolatorMulti Class Reference

Multiplexed interpolator which allows switching between modes at runtime. More...

Public Member Functions

 CInterpolatorMulti (const aviation::CCallsign &callsign, ISimulationEnvironmentProvider *p1, IInterpolationSetupProvider *p2, IRemoteAircraftProvider *p3, CInterpolationLogger *logger=nullptr)
 Constructor.
 
CInterpolationResult getInterpolation (qint64 currentTimeSinceEpoch, const CInterpolationAndRenderingSetupPerCallsign &setup, uint32_t aircraftNumber)
 Get interpolated situation. More...
 
const aviation::CAircraftSituationgetLastInterpolatedSituation (CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
 Latest interpolation result. More...
 
const CStatusMessageListgetInterpolationMessages (CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
 Interpolation messages. More...
 
void attachLogger (CInterpolationLogger *logger)
 Attach an observer to read the interpolator's state for debugging. More...
 
void initCorrespondingModel (const CAircraftModel &model)
 Init, or re-init the corressponding model. More...
 
QString getInterpolatorInfo (CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
 Info string.
 

Detailed Description

Multiplexed interpolator which allows switching between modes at runtime.

Definition at line 16 of file interpolatormulti.h.

Member Function Documentation

◆ attachLogger()

void swift::misc::simulation::CInterpolatorMulti::attachLogger ( CInterpolationLogger logger)

Attach an observer to read the interpolator's state for debugging.

Remarks
parts logging has a bool log flag

Definition at line 46 of file interpolatormulti.cpp.

◆ getInterpolation()

CInterpolationResult swift::misc::simulation::CInterpolatorMulti::getInterpolation ( qint64  currentTimeSinceEpoch,
const CInterpolationAndRenderingSetupPerCallsign setup,
uint32_t  aircraftNumber 
)

Get interpolated situation.

Parameters
currentTimeSinceEpochmilliseconds since epoch for which the situation should be interpolated
setupinterpolation setup
aircraftNumbernumber used to spread the computational load of part interpolation
Returns
interpolation result

Definition at line 18 of file interpolatormulti.cpp.

◆ getInterpolationMessages()

const CStatusMessageList & swift::misc::simulation::CInterpolatorMulti::getInterpolationMessages ( CInterpolationAndRenderingSetupBase::InterpolatorMode  mode) const

Interpolation messages.

Definition at line 59 of file interpolatormulti.cpp.

◆ getLastInterpolatedSituation()

const CAircraftSituation & swift::misc::simulation::CInterpolatorMulti::getLastInterpolatedSituation ( CInterpolationAndRenderingSetupBase::InterpolatorMode  mode) const

Latest interpolation result.

Definition at line 35 of file interpolatormulti.cpp.

◆ initCorrespondingModel()

void swift::misc::simulation::CInterpolatorMulti::initCorrespondingModel ( const CAircraftModel model)

Init, or re-init the corressponding model.

Remarks
either by passing a model or using the provider

Definition at line 52 of file interpolatormulti.cpp.


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