swift
|
Direct in memory access to interpolation setup, normally implemented by simulator. More...
Public Types | |
using | SetupsPerCallsign = QMap< aviation::CCallsign, CInterpolationAndRenderingSetupPerCallsign > |
setups per callsign | |
Public Member Functions | |
CInterpolationAndRenderingSetupPerCallsign | getInterpolationSetupPerCallsignOrDefault (const aviation::CCallsign &callsign) const |
Get the setup for callsign, if not existing the global setup. More... | |
CInterpolationSetupList | getInterpolationSetupsPerCallsign () const |
Get all setups per callsign. More... | |
bool | hasSetupsPerCallsign () const |
Get all setups per callsign. More... | |
bool | setInterpolationSetupsPerCallsign (const CInterpolationSetupList &setups, bool ignoreSameAsGlobal=true) |
Set all setups per callsign. More... | |
virtual CInterpolationAndRenderingSetupGlobal | getInterpolationSetupGlobal () const |
The global setup. More... | |
aviation::CCallsignSet | getLogCallsigns () const |
All callsigns marked to be logged. More... | |
bool | isLogCallsign (const aviation::CCallsign &callsign) const |
Is callsign marked for logging. More... | |
bool | setInterpolationMode (const QString &modeAsString, const aviation::CCallsign &callsign) |
Set mode as string. More... | |
bool | setLogInterpolation (bool log, const aviation::CCallsign &callsign) |
Enable/disable logging. More... | |
![]() | |
virtual | ~IProvider () |
Dtor. | |
IProvider (const IProvider &)=delete | |
Copy constructor. | |
IProvider & | operator= (const IProvider &)=delete |
Copy assignment operator. | |
virtual QObject * | asQObject () |
Return as QObject. | |
Protected Member Functions | |
virtual bool | setInterpolationSetupGlobal (const CInterpolationAndRenderingSetupGlobal &setup) |
Set the global setup. More... | |
virtual bool | setInterpolationSetupPerCallsign (const CInterpolationAndRenderingSetupPerCallsign &setup, const aviation::CCallsign &callsign, bool removeGlobalSetup=true) |
Insert specialized setup per callsign. More... | |
void | setLogCallsign (bool log, const aviation::CCallsign &callsign) |
Log/un-log given callsign. More... | |
bool | removeInterpolationSetupPerCallsign (const aviation::CCallsign &callsign) |
Remove specialized setup per callsign. | |
void | clearInterpolationLogCallsigns () |
Clear all interpolation log callsigns. More... | |
int | clearInterpolationSetupsPerCallsign () |
Clear all setups. More... | |
bool | logAnyCallsign () const |
Log any callsign? More... | |
SetupsPerCallsign | getSetupsPerCallsign () const |
The setups per callsign. More... | |
virtual void | emitInterpolationSetupChanged () |
Pseudo signal, override to emit signal. | |
![]() | |
IProvider () | |
Constructor. | |
Direct in memory access to interpolation setup, normally implemented by simulator.
Definition at line 20 of file interpolationsetupprovider.h.
|
protected |
Clear all interpolation log callsigns.
Definition at line 145 of file interpolationsetupprovider.cpp.
|
protected |
Clear all setups.
Definition at line 167 of file interpolationsetupprovider.cpp.
|
virtual |
The global setup.
Definition at line 52 of file interpolationsetupprovider.cpp.
CInterpolationAndRenderingSetupPerCallsign swift::misc::simulation::IInterpolationSetupProvider::getInterpolationSetupPerCallsignOrDefault | ( | const aviation::CCallsign & | callsign | ) | const |
Get the setup for callsign, if not existing the global setup.
Definition at line 11 of file interpolationsetupprovider.cpp.
CInterpolationSetupList swift::misc::simulation::IInterpolationSetupProvider::getInterpolationSetupsPerCallsign | ( | ) | const |
Get all setups per callsign.
Definition at line 21 of file interpolationsetupprovider.cpp.
CCallsignSet swift::misc::simulation::IInterpolationSetupProvider::getLogCallsigns | ( | ) | const |
All callsigns marked to be logged.
Definition at line 58 of file interpolationsetupprovider.cpp.
|
protected |
The setups per callsign.
Definition at line 191 of file interpolationsetupprovider.cpp.
bool swift::misc::simulation::IInterpolationSetupProvider::hasSetupsPerCallsign | ( | ) | const |
Get all setups per callsign.
Definition at line 27 of file interpolationsetupprovider.cpp.
bool swift::misc::simulation::IInterpolationSetupProvider::isLogCallsign | ( | const aviation::CCallsign & | callsign | ) | const |
Is callsign marked for logging.
Definition at line 69 of file interpolationsetupprovider.cpp.
|
protected |
Log any callsign?
Definition at line 180 of file interpolationsetupprovider.cpp.
bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationMode | ( | const QString & | modeAsString, |
const aviation::CCallsign & | callsign | ||
) |
Set mode as string.
Definition at line 76 of file interpolationsetupprovider.cpp.
|
protectedvirtual |
Set the global setup.
Reimplemented in swift::core::ISimulator.
Definition at line 94 of file interpolationsetupprovider.cpp.
|
protectedvirtual |
Insert specialized setup per callsign.
Definition at line 105 of file interpolationsetupprovider.cpp.
bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationSetupsPerCallsign | ( | const CInterpolationSetupList & | setups, |
bool | ignoreSameAsGlobal = true |
||
) |
Set all setups per callsign.
Definition at line 33 of file interpolationsetupprovider.cpp.
|
protected |
Log/un-log given callsign.
Definition at line 137 of file interpolationsetupprovider.cpp.
bool swift::misc::simulation::IInterpolationSetupProvider::setLogInterpolation | ( | bool | log, |
const aviation::CCallsign & | callsign | ||
) |
Enable/disable logging.
Definition at line 85 of file interpolationsetupprovider.cpp.