refs #614, moved model set cache and matcher to simulator common class

* removed from FS common class
* formatting
This commit is contained in:
Klaus Basan
2016-04-04 12:57:40 +02:00
parent f3ef7ad7ea
commit aa6370c325
6 changed files with 30 additions and 107 deletions

View File

@@ -54,6 +54,11 @@ namespace BlackCore
connect(&m_oneSecondTimer, &QTimer::timeout, this, &CSimulatorCommon::ps_oneSecondTimer);
this->m_oneSecondTimer.start(1000);
// init mapper
const CSimulatorInfo sim(info.getIdentifier());
this->m_modelSetLoader.changeSimulator(sim);
this->m_modelMatcher.setModelSet(this->m_modelSetLoader.getAircraftModels());
// info
CLogMessage(this).info("Initialized simulator driver %1") << m_simulatorPluginInfo.toQString();
}
@@ -229,6 +234,11 @@ namespace BlackCore
this->m_remoteAircraftProviderConnections.disconnectAll(); // disconnect signals from provider
}
void CSimulatorCommon::reloadInstalledModels()
{
// currently we do nothing here
}
CLength CSimulatorCommon::getRenderedDistanceBoundary() const
{
return CLength(20.0, CLengthUnit::NM());