swift
Loading...
Searching...
No Matches
swift::misc::simulation::IInterpolationSetupProvider Class Reference

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

#include <interpolationsetupprovider.h>

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

Public Types

using SetupsPerCallsign
 setups per callsign

Public Member Functions

CInterpolationAndRenderingSetupPerCallsign getInterpolationSetupPerCallsignOrDefault (const aviation::CCallsign &callsign) const
 Get the setup for callsign, if not existing the global setup.
CInterpolationSetupList getInterpolationSetupsPerCallsign () const
 Get all setups per callsign.
bool hasSetupsPerCallsign () const
 Get all setups per callsign.
bool setInterpolationSetupsPerCallsign (const CInterpolationSetupList &setups, bool ignoreSameAsGlobal=true)
 Set all setups per callsign.
virtual CInterpolationAndRenderingSetupGlobal getInterpolationSetupGlobal () const
 The global setup.
aviation::CCallsignSet getLogCallsigns () const
 All callsigns marked to be logged.
bool isLogCallsign (const aviation::CCallsign &callsign) const
 Is callsign marked for logging.
bool setInterpolationMode (const QString &modeAsString, const aviation::CCallsign &callsign)
 Set mode as string.
bool setLogInterpolation (bool log, const aviation::CCallsign &callsign)
 Enable/disable logging.
Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()=default
 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.
virtual bool setInterpolationSetupPerCallsign (const CInterpolationAndRenderingSetupPerCallsign &setup, const aviation::CCallsign &callsign, bool removeGlobalSetup=true)
 Insert specialized setup per callsign.
void setLogCallsign (bool log, const aviation::CCallsign &callsign)
 Log/un-log given callsign.
bool removeInterpolationSetupPerCallsign (const aviation::CCallsign &callsign)
 Remove specialized setup per callsign.
void clearInterpolationLogCallsigns ()
 Clear all interpolation log callsigns.
int clearInterpolationSetupsPerCallsign ()
 Clear all setups.
bool logAnyCallsign () const
 Log any callsign?
SetupsPerCallsign getSetupsPerCallsign () const
 The setups per callsign.
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 Typedef Documentation

◆ SetupsPerCallsign

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 174 of file interpolationsetupprovider.cpp.

◆ clearInterpolationSetupsPerCallsign()

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

Clear all setups.

Remarks
This function is thread safe.

Definition at line 202 of file interpolationsetupprovider.cpp.

◆ emitInterpolationSetupChanged()

virtual void swift::misc::simulation::IInterpolationSetupProvider::emitInterpolationSetupChanged ( )
inlineprotectedvirtual

Pseudo signal, override to emit signal.

Reimplemented in swift::core::ISimulator.

Definition at line 98 of file interpolationsetupprovider.h.

◆ getInterpolationSetupGlobal()

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

The global setup.

Remarks
This function is thread safe.

Definition at line 60 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 13 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 23 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 66 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 230 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 29 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 80 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 218 of file interpolationsetupprovider.cpp.

◆ removeInterpolationSetupPerCallsign()

bool swift::misc::simulation::IInterpolationSetupProvider::removeInterpolationSetupPerCallsign ( const aviation::CCallsign & callsign)
protected

Remove specialized setup per callsign.

Definition at line 149 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 90 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 114 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 128 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 35 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 163 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 102 of file interpolationsetupprovider.cpp.


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