6#ifndef SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATORMULTI_H
7#define SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATORMULTI_H
13namespace swift::misc::simulation
27 uint32_t aircraftNumber);
Status messages, e.g. from Core -> GUI.
Value object encapsulating information of an aircraft's situation.
Value object encapsulating information of a callsign.
Aircraft model (used by another pilot, my models on disk).
InterpolatorMode
Interpolator type.
Value object for interpolator and rendering per callsign.
Record internal state of interpolator for debugging.
Linear interpolator, calculation inbetween positions.
Multiplexed interpolator which allows switching between modes at runtime.
CInterpolatorMulti(const aviation::CCallsign &callsign, ISimulationEnvironmentProvider *p1, IInterpolationSetupProvider *p2, IRemoteAircraftProvider *p3, CInterpolationLogger *logger=nullptr)
Constructor.
void initCorrespondingModel(const CAircraftModel &model)
Init, or re-init the corressponding model.
CInterpolationResult getInterpolation(qint64 currentTimeSinceEpoch, const CInterpolationAndRenderingSetupPerCallsign &setup, uint32_t aircraftNumber)
Get interpolated situation.
const aviation::CAircraftSituation & getLastInterpolatedSituation(CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Latest interpolation result.
QString getInterpolatorInfo(CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Info string.
const CStatusMessageList & getInterpolationMessages(CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Interpolation messages.
void attachLogger(CInterpolationLogger *logger)
Attach an observer to read the interpolator's state for debugging.
CInterpolatorMulti & operator*() const
CInterpolatorMulti * operator->() const
-> operator
bool hasInterpolator() const
Has interpolator initialized?
bool operator!() const
Bool conversion.
CInterpolatorMultiWrapper()=default
Default ctor, needed for QMap/QHash.
CInterpolatorMulti * interpolator() const
Interpolator.
Cubic spline interpolator.
Direct in memory access to interpolation setup, normally implemented by simulator.
Direct thread safe in memory access to remote aircraft.
Direct in memory access to elevation data.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.