mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
63 lines
2.4 KiB
C++
63 lines
2.4 KiB
C++
/* Copyright (C) 2017
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISC_SIMULATION_INTERPOLATORDUMMY_H
|
|
#define BLACKMISC_SIMULATION_INTERPOLATORDUMMY_H
|
|
|
|
#include "blackmisc/aviation/aircraftparts.h"
|
|
#include "blackmisc/aviation/aircraftsituation.h"
|
|
#include "blackmisc/aviation/callsign.h"
|
|
#include "blackmisc/simulation/interpolationhints.h"
|
|
#include "blackmisc/simulation/interpolationlogger.h"
|
|
#include "blackmisc/simulation/interpolationrenderingsetup.h"
|
|
#include "blackmisc/simulation/interpolator.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Simulation
|
|
{
|
|
/*!
|
|
* Dummy interpolator which does nothing.
|
|
*/
|
|
class BLACKMISC_EXPORT CInterpolatorDummy : public QObject
|
|
{
|
|
public:
|
|
//! Constructor
|
|
CInterpolatorDummy(const BlackMisc::Aviation::CCallsign &, QObject *parent) : QObject(parent) {}
|
|
|
|
//! \copydoc CInterpolator::getInterpolatedSituation
|
|
BlackMisc::Aviation::CAircraftSituation getInterpolatedSituation(
|
|
qint64, const CInterpolationAndRenderingSetup &, const CInterpolationHints &, CInterpolationStatus &) { return {}; }
|
|
|
|
//! \copydoc CInterpolator::getInterpolatedParts
|
|
BlackMisc::Aviation::CAircraftParts getInterpolatedParts(
|
|
qint64, const CInterpolationAndRenderingSetup &, CPartsStatus &, bool = false) { return {}; }
|
|
|
|
//! \copydoc CInterpolator::addAircraftSituation
|
|
void addAircraftSituation(const BlackMisc::Aviation::CAircraftSituation &) {}
|
|
|
|
//! \copydoc CInterpolator::hasAircraftSituations
|
|
bool hasAircraftSituations() const { return false; }
|
|
|
|
//! \copydoc CInterpolator::addAircraftParts
|
|
void addAircraftParts(const BlackMisc::Aviation::CAircraftParts &) {}
|
|
|
|
//! \copydoc CInterpolator::hasAircraftParts
|
|
bool hasAircraftParts() const { return false; }
|
|
|
|
//! \copydoc CInterpolator::attachLogger
|
|
void attachLogger(CInterpolationLogger *) {}
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|