refs #796, allow to toggle full interpolation

* add setup class, metadata registration, property index ...
* removed enableDebugMessages, added setInterpolatorSetup
* adjusted contexts
* used in interolator
This commit is contained in:
Klaus Basan
2016-11-05 01:26:03 +01:00
parent f1ce5fc173
commit 3f6cef1c9f
20 changed files with 241 additions and 79 deletions

View File

@@ -25,7 +25,7 @@ namespace BlackMisc
}
BlackMisc::Aviation::CAircraftSituation IInterpolator::getInterpolatedSituation(const BlackMisc::Aviation::CCallsign &callsign, qint64 currentTimeSinceEpoc,
bool isVtolAircraft, InterpolationStatus &status) const
bool isVtolAircraft, InterpolationStatus &status) const
{
// has to be thread safe
@@ -56,9 +56,16 @@ namespace BlackMisc
return this->remoteAircraftParts(callsign, cutoffTime);
}
void IInterpolator::enableDebugMessages(bool enabled)
void IInterpolator::setInterpolatorSetup(const CInterpolationAndRenderingSetup &setup)
{
this->m_withDebugMsg = enabled;
QWriteLocker l(&m_lock);
m_setup = setup;
}
CInterpolationAndRenderingSetup IInterpolator::getInterpolatorSetup() const
{
QReadLocker l(&m_lock);
return m_setup;
}
bool IInterpolator::InterpolationStatus::allTrue() const
@@ -81,5 +88,4 @@ namespace BlackMisc
{
supportsParts = false;
}
} // namespace