mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #395, removed worker from interpolator
It was planned to do all interpolation calculations at once in background, this concept is not used anymore
This commit is contained in:
committed by
Mathew Sutcliffe
parent
66075ca0d0
commit
bbd5ad2cbc
@@ -19,11 +19,12 @@ using namespace BlackMisc::Simulation;
|
|||||||
namespace BlackCore
|
namespace BlackCore
|
||||||
{
|
{
|
||||||
|
|
||||||
IInterpolator::IInterpolator(IRemoteAircraftProvider *provider, const QString &workerName, QObject *parent) :
|
IInterpolator::IInterpolator(IRemoteAircraftProvider *provider, const QString &objectName, QObject *parent) :
|
||||||
CContinuousWorker(parent, workerName),
|
QObject(parent),
|
||||||
CRemoteAircraftAware(provider)
|
CRemoteAircraftAware(provider)
|
||||||
{
|
{
|
||||||
Q_ASSERT_X(provider, Q_FUNC_INFO, "missing provider");
|
Q_ASSERT_X(provider, Q_FUNC_INFO, "missing provider");
|
||||||
|
this->setObjectName(objectName);
|
||||||
}
|
}
|
||||||
|
|
||||||
CAircraftPartsList IInterpolator::getPartsBeforeTime(const CCallsign &callsign, qint64 cutoffTime, BlackCore::IInterpolator::PartsStatus &partsStatus)
|
CAircraftPartsList IInterpolator::getPartsBeforeTime(const CCallsign &callsign, qint64 cutoffTime, BlackCore::IInterpolator::PartsStatus &partsStatus)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
//! Interpolator, calculation inbetween positions
|
//! Interpolator, calculation inbetween positions
|
||||||
class BLACKCORE_EXPORT IInterpolator :
|
class BLACKCORE_EXPORT IInterpolator :
|
||||||
public BlackMisc::CContinuousWorker,
|
public QObject,
|
||||||
public BlackMisc::Simulation::CRemoteAircraftAware
|
public BlackMisc::Simulation::CRemoteAircraftAware
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -80,7 +80,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Constructor
|
//! Constructor
|
||||||
IInterpolator(BlackMisc::Simulation::IRemoteAircraftProvider *provider, const QString &workerName, QObject *parent = nullptr);
|
IInterpolator(BlackMisc::Simulation::IRemoteAircraftProvider *provider, const QString &objectName, QObject *parent);
|
||||||
|
|
||||||
bool m_withDebugMsg = false; //!< allows to disable debug messages
|
bool m_withDebugMsg = false; //!< allows to disable debug messages
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user