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

Value object for interpolator and rendering base class. More...

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

Public Types

enum  ColumnIndex {
  IndexLogInterpolation = CPropertyIndexRef::GlobalIndexCInterpolatioRenderingSetup , IndexSimulatorDebugMessages , IndexForceFullInterpolation , IndexSendGndFlagToSimulator ,
  IndexEnabledAircraftParts , IndexInterpolatorMode , IndexInterpolatorModeAsString , IndexFixSceneryOffset ,
  IndexPitchOnGround
}
 Properties by index.
 
enum  InterpolatorMode { Spline , Linear }
 Interpolator type.
 

Public Member Functions

bool showSimulatorDebugMessages () const
 Debugging messages for simulation.
 
void setSimulatorDebuggingMessages (bool debug)
 Debugging messages for simulation.
 
bool logInterpolation () const
 Log.interpolation.
 
bool setLogInterpolation (bool log)
 Log.interpolation.
 
bool isForcingFullInterpolation () const
 Full interpolation (skip optimizations like checking if aircraft moves etc.)
 
void setForceFullInterpolation (bool force)
 Force full interpolation.
 
bool setEnabledAircraftParts (bool enabled)
 Set enabled aircraft parts.
 
bool maskEnabledAircraftParts (bool mask)
 Mask enabled aircraft parts.
 
bool isAircraftPartsEnabled () const
 Aircraft parts enabled (still requires the other aircraft to send parts)
 
bool isSendingGndFlagToSimulator () const
 Send GND flag to simulator.
 
bool setSendingGndFlagToSimulator (bool sendFLag)
 Set sending GND flag to simulator.
 
bool isFixingSceneryOffset () const
 Fix scenery offset if it has been detected.
 
void setFixingSceneryOffset (bool fix)
 Enable fix scenery offset if it has been detected.
 
const physical_quantities::CAnglegetPitchOnGround () const
 Force a given pitch on ground.
 
bool setPitchOnGround (const physical_quantities::CAngle &pitchOnGround)
 Force a given pitch on ground.
 
void consolidateWithClient (const network::CClient &client)
 Consolidate with a network client.
 
InterpolatorMode getInterpolatorMode () const
 Interpolator mode.
 
const QString & getInterpolatorModeAsString () const
 Interpolator mode.
 
bool setInterpolatorMode (InterpolatorMode mode)
 Set interpolator mode.
 
bool setInterpolatorMode (const QString &mode)
 Set interpolator mode.
 
QString convertToQString (bool i18n=false) const
 Cast as QString. More...
 
QVariant propertyByIndex (CPropertyIndexRef index) const
 Property by index. More...
 
void setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant)
 Set property by index. More...
 

Static Public Member Functions

static const QString & modeToString (InterpolatorMode mode)
 Interpolator mode as string.
 

Protected Member Functions

 CInterpolationAndRenderingSetupBase ()
 Constructor.
 

Static Protected Member Functions

static bool canHandleIndex (int index)
 Can handle index?
 

Protected Attributes

bool m_logInterpolation = false
 Debug messages in interpolator.
 
bool m_simulatorDebugMessages = false
 Debug messages of simulator (aka plugin)
 
bool m_forceFullInterpolation = false
 always do a full interpolation, even if aircraft is not moving
 
bool m_enabledAircraftParts = true
 Enable aircraft parts.
 
bool m_sendGndToSim = true
 Send the gnd.flag to simulator.
 
bool m_fixSceneryOffset = false
 Fix. More...
 
int m_interpolatorMode = static_cast<int>(Spline)
 interpolator mode (spline, ...)
 
physical_quantities::CAngle m_pitchOnGround
 pitch angle on ground More...
 

Detailed Description

Value object for interpolator and rendering base class.

Definition at line 30 of file interpolationrenderingsetup.h.

Member Function Documentation

◆ convertToQString()

QString swift::misc::simulation::CInterpolationAndRenderingSetupBase::convertToQString ( bool  i18n = false) const

Cast as QString.

Definition at line 135 of file interpolationrenderingsetup.cpp.

◆ propertyByIndex()

QVariant swift::misc::simulation::CInterpolationAndRenderingSetupBase::propertyByIndex ( CPropertyIndexRef  index) const

Property by index.

Definition at line 96 of file interpolationrenderingsetup.cpp.

◆ setPropertyByIndex()

void swift::misc::simulation::CInterpolationAndRenderingSetupBase::setPropertyByIndex ( CPropertyIndexRef  index,
const QVariant &  variant 
)

Set property by index.

Definition at line 116 of file interpolationrenderingsetup.cpp.

Member Data Documentation

◆ m_fixSceneryOffset

bool swift::misc::simulation::CInterpolationAndRenderingSetupBase::m_fixSceneryOffset = false
protected

Fix.

scenery offset

Definition at line 138 of file interpolationrenderingsetup.h.

◆ m_pitchOnGround

physical_quantities::CAngle swift::misc::simulation::CInterpolationAndRenderingSetupBase::m_pitchOnGround
protected
Initial value:

pitch angle on ground

Definition at line 140 of file interpolationrenderingsetup.h.


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