11using namespace swift::misc::aviation;
12using namespace swift::misc::simulation;
14namespace swift::simplugin::flightgear
18 : m_aircraft(aircraft),
20 simulator->getRemoteAircraftProvider(), logger))
22 m_interpolator->attachLogger(logger);
23 m_interpolator->initCorrespondingModel(aircraft.
getModel());
28 m_aircraft = simulatedAircraft;
33 Q_ASSERT(m_interpolator);
34 return m_interpolator->getInterpolatorInfo(mode);
39 Q_ASSERT(m_interpolator);
40 m_interpolator->attachLogger(logger);
46 uint32_t aircraftNumber)
const
48 Q_ASSERT(m_interpolator);
49 return m_interpolator->getInterpolation(currentTimeSinceEpoch, setup, aircraftNumber);
60 return { this->
keys() };
Interface to a simulator.
Status messages, e.g. from Core -> GUI.
Value object for a set of callsigns.
QStringList getCallsignStrings(bool sorted=false) const
The callsign strings.
InterpolatorMode
Interpolator type.
Value object for interpolator and rendering per callsign.
Record internal state of interpolator for debugging.
Multiplexed interpolator which allows switching between modes at runtime.
const CStatusMessageList & getInterpolationMessages(CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Interpolation messages.
Comprehensive information of an aircraft.
const simulation::CAircraftModel & getModel() const
Get model (model used for mapping).
const swift::misc::aviation::CCallsign & getCallsign() const
Get callsign.
swift::misc::simulation::CInterpolationResult getInterpolation(qint64 currentTimeSinceEpoch, const swift::misc::simulation::CInterpolationAndRenderingSetupPerCallsign &setup, uint32_t aircraftNumber) const
Get interpolated situation.
CFlightgearMPAircraft()=default
Constructor.
swift::misc::CStatusMessageList getInterpolationMessages(swift::misc::simulation::CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Interpolation messages.
void attachInterpolatorLogger(swift::misc::simulation::CInterpolationLogger *logger) const
Attach an observer to read the interpolator's state for debugging.
QString getInterpolatorInfo(swift::misc::simulation::CInterpolationAndRenderingSetupBase::InterpolatorMode mode) const
Get an interpolator info string (for debug info).
void setSimulatedAircraft(const swift::misc::simulation::CSimulatedAircraft &simulatedAircraft)
Set simulated aircraft.
swift::misc::simulation::CInterpolatorMulti * getInterpolator() const
Interpolator.
QStringList getAllCallsignStrings(bool sorted=false) const
Get all callsign strings.
swift::misc::aviation::CCallsignSet getAllCallsigns() const
Get all callsigns.
Backend services of the swift project, like dealing with the network or the simulators.
Free functions in swift::misc.
QList< swift::misc::aviation::CCallsign > keys() const const