swift
|
Value object for interpolator and rendering base class. More...
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::CAngle & | getPitchOnGround () 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... | |
Value object for interpolator and rendering base class.
Definition at line 30 of file interpolationrenderingsetup.h.
QString swift::misc::simulation::CInterpolationAndRenderingSetupBase::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 135 of file interpolationrenderingsetup.cpp.
QVariant swift::misc::simulation::CInterpolationAndRenderingSetupBase::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 96 of file interpolationrenderingsetup.cpp.
void swift::misc::simulation::CInterpolationAndRenderingSetupBase::setPropertyByIndex | ( | CPropertyIndexRef | index, |
const QVariant & | variant | ||
) |
Set property by index.
Definition at line 116 of file interpolationrenderingsetup.cpp.
|
protected |
|
protected |
pitch angle on ground
Definition at line 140 of file interpolationrenderingsetup.h.