swift
Public Types | Public Member Functions | Protected Member Functions | List of all members
swift::misc::simulation::IInterpolationSetupProvider Class Reference

Direct in memory access to interpolation setup, normally implemented by simulator. More...

Inheritance diagram for swift::misc::simulation::IInterpolationSetupProvider:
[legend]

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...
 
- Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvideroperator= (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.
 
- Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.
 

Detailed Description

Direct in memory access to interpolation setup, normally implemented by simulator.

Definition at line 20 of file interpolationsetupprovider.h.

Member Function Documentation

◆ clearInterpolationLogCallsigns()

void swift::misc::simulation::IInterpolationSetupProvider::clearInterpolationLogCallsigns ( )
protected

Clear all interpolation log callsigns.

Remarks
This function is thread safe.

Definition at line 145 of file interpolationsetupprovider.cpp.

◆ clearInterpolationSetupsPerCallsign()

int swift::misc::simulation::IInterpolationSetupProvider::clearInterpolationSetupsPerCallsign ( )
protected

Clear all setups.

Remarks
This function is thread safe.

Definition at line 167 of file interpolationsetupprovider.cpp.

◆ getInterpolationSetupGlobal()

CInterpolationAndRenderingSetupGlobal swift::misc::simulation::IInterpolationSetupProvider::getInterpolationSetupGlobal ( ) const
virtual

The global setup.

Remarks
This function is thread safe.

Definition at line 52 of file interpolationsetupprovider.cpp.

◆ getInterpolationSetupPerCallsignOrDefault()

CInterpolationAndRenderingSetupPerCallsign swift::misc::simulation::IInterpolationSetupProvider::getInterpolationSetupPerCallsignOrDefault ( const aviation::CCallsign callsign) const

Get the setup for callsign, if not existing the global setup.

Remarks
This function is thread safe.

Definition at line 11 of file interpolationsetupprovider.cpp.

◆ getInterpolationSetupsPerCallsign()

CInterpolationSetupList swift::misc::simulation::IInterpolationSetupProvider::getInterpolationSetupsPerCallsign ( ) const

Get all setups per callsign.

Remarks
This function is thread safe.

Definition at line 21 of file interpolationsetupprovider.cpp.

◆ getLogCallsigns()

CCallsignSet swift::misc::simulation::IInterpolationSetupProvider::getLogCallsigns ( ) const

All callsigns marked to be logged.

Remarks
This function is thread safe.

Definition at line 58 of file interpolationsetupprovider.cpp.

◆ getSetupsPerCallsign()

IInterpolationSetupProvider::SetupsPerCallsign swift::misc::simulation::IInterpolationSetupProvider::getSetupsPerCallsign ( ) const
protected

The setups per callsign.

Remarks
This function is thread safe.

Definition at line 191 of file interpolationsetupprovider.cpp.

◆ hasSetupsPerCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::hasSetupsPerCallsign ( ) const

Get all setups per callsign.

Remarks
This function is thread safe.

Definition at line 27 of file interpolationsetupprovider.cpp.

◆ isLogCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::isLogCallsign ( const aviation::CCallsign callsign) const

Is callsign marked for logging.

Remarks
This function is thread safe.

Definition at line 69 of file interpolationsetupprovider.cpp.

◆ logAnyCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::logAnyCallsign ( ) const
protected

Log any callsign?

Remarks
This function is thread safe.

Definition at line 180 of file interpolationsetupprovider.cpp.

◆ setInterpolationMode()

bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationMode ( const QString &  modeAsString,
const aviation::CCallsign callsign 
)

Set mode as string.

Remarks
This function is thread safe.

Definition at line 76 of file interpolationsetupprovider.cpp.

◆ setInterpolationSetupGlobal()

bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationSetupGlobal ( const CInterpolationAndRenderingSetupGlobal setup)
protectedvirtual

Set the global setup.

Remarks
This function is thread safe.

Reimplemented in swift::core::ISimulator.

Definition at line 94 of file interpolationsetupprovider.cpp.

◆ setInterpolationSetupPerCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationSetupPerCallsign ( const CInterpolationAndRenderingSetupPerCallsign setup,
const aviation::CCallsign callsign,
bool  removeGlobalSetup = true 
)
protectedvirtual

Insert specialized setup per callsign.

Remarks
This function is thread safe.

Definition at line 105 of file interpolationsetupprovider.cpp.

◆ setInterpolationSetupsPerCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::setInterpolationSetupsPerCallsign ( const CInterpolationSetupList &  setups,
bool  ignoreSameAsGlobal = true 
)

Set all setups per callsign.

Remarks
This function is thread safe.

Definition at line 33 of file interpolationsetupprovider.cpp.

◆ setLogCallsign()

void swift::misc::simulation::IInterpolationSetupProvider::setLogCallsign ( bool  log,
const aviation::CCallsign callsign 
)
protected

Log/un-log given callsign.

Remarks
This function is thread safe.

Definition at line 137 of file interpolationsetupprovider.cpp.

◆ setLogInterpolation()

bool swift::misc::simulation::IInterpolationSetupProvider::setLogInterpolation ( bool  log,
const aviation::CCallsign callsign 
)

Enable/disable logging.

Remarks
This function is thread safe.

Definition at line 85 of file interpolationsetupprovider.cpp.


The documentation for this class was generated from the following files: