|
swift
|
Value object for interpolator and rendering. More...
Public Types | |
| enum | ColumnIndex { IndexMaxRenderedAircraft = CInterpolationAndRenderingSetupBase::IndexFixSceneryOffset + 1 , IndexMaxRenderedDistance } |
| Properties by index. | |
Public Types inherited from swift::misc::CValueObject< CInterpolationAndRenderingSetupGlobal > | |
| using | base_type = CEmpty |
| Base class. | |
Public Types inherited from swift::misc::CEmpty | |
| using | base_type = CEmpty |
| Base class is alias of itself. | |
Public Types inherited from swift::misc::mixin::Index< Derived > | |
| enum | ColumnIndex { IndexPixmap = 10 , IndexIcon , IndexString } |
| Base class enums. | |
Public Types inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| 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 | |
| CInterpolationAndRenderingSetupGlobal ()=default | |
| Constructor. | |
| int | getMaxRenderedAircraft () const |
| Max.number of aircraft rendered. | |
| bool | setMaxRenderedAircraft (int maxRenderedAircraft) |
| Max.number of aircraft rendered. | |
| bool | setMaxRenderedDistance (const physical_quantities::CLength &distance) |
| Max.distance for rendering. | |
| void | clearMaxRenderedDistance () |
| Disable. | |
| bool | isRenderingEnabled () const |
| Rendering enabled (at all)? | |
| bool | isRenderingRestricted () const |
| Rendering enabled, but restricted. | |
| physical_quantities::CLength | getMaxRenderedDistance () const |
| Max.distance for rendering. | |
| bool | isMaxDistanceRestricted () const |
| Restricted by distance? | |
| bool | isMaxAircraftRestricted () const |
| Restricted by quantity? | |
| void | clearAllRenderingRestrictions () |
| Remove all render restrictions. | |
| void | disableRendering () |
| Entirely disable rendering. | |
| QString | getRenderRestrictionText () const |
| Text describing the restrictions. | |
| void | setBaseValues (const CInterpolationAndRenderingSetupBase &baseValues) |
| Set all base values. | |
| 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... | |
Public Member Functions inherited from swift::misc::mixin::MetaType< Derived > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. More... | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
Public Member Functions inherited from swift::misc::mixin::DBusByMetaClass< Derived, Tags > | |
| void | marshallToDbus (QDBusArgument &arg, Tags...) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
Public Member Functions inherited from swift::misc::mixin::DataStreamByMetaClass< Derived > | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. | |
Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< Derived > | |
| QJsonObject | toJson () const |
| Cast to JSON object. | |
| QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| void | convertFromJson (const QString &jsonString, bool acceptCacheFormat=false) |
| Assign from JSON object string. | |
Public Member Functions inherited from swift::misc::mixin::String< Derived > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
Public Member Functions inherited from swift::misc::mixin::Index< Derived > | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. More... | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
Public Member Functions inherited from swift::misc::mixin::Icon< Derived, IconIndex > | |
| CIcons::IconIndex | toIcon () const |
| As icon, not implemented by all classes. | |
Public Member Functions inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| 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 int | InfiniteAircraft () |
| Considered as "all aircraft". | |
Static Public Member Functions inherited from swift::misc::mixin::MetaType< Derived > | |
| static void | registerMetadata () |
| Register metadata. | |
Static Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< Derived > | |
| template<class DerivedObj = Derived> | |
| static DerivedObj | fromJson (const QJsonObject &json) |
| Get object from QJsonObject. | |
| template<class DerivedObj = Derived> | |
| static DerivedObj | fromJson (const QString &jsonString, bool acceptCacheJson=false) |
| Get object from JSON string. | |
| template<class DerivedObj = Derived> | |
| static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Get object from JSON string. | |
Static Public Member Functions inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| static const QString & | modeToString (InterpolatorMode mode) |
| Interpolator mode as string. | |
Additional Inherited Members | |
Protected Member Functions inherited from swift::misc::CValueObject< CInterpolationAndRenderingSetupGlobal > | |
| CValueObject ()=default | |
| Default constructor. | |
| CValueObject (const CValueObject &)=default | |
| Copy constructor. | |
| CValueObject & | operator= (const CValueObject &)=default |
| Copy assignment operator. | |
| ~CValueObject ()=default | |
| Destructor. | |
| CEmpty ()=default | |
| Inheriting constructors. | |
| CEmpty (const CEmpty &)=default | |
| Inheriting constructors. | |
Protected Member Functions inherited from swift::misc::CEmpty | |
| CEmpty ()=default | |
| Protected default constructor. | |
| CEmpty (const CEmpty &)=default | |
| Protected copy constructor. | |
| CEmpty & | operator= (const CEmpty &)=default |
| Protected copy assignment operator. | |
| ~CEmpty ()=default | |
| Non-virtual protected destructor. | |
Protected Member Functions inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| CInterpolationAndRenderingSetupBase ()=default | |
| Constructor. | |
Static Protected Member Functions inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| static bool | canHandleIndex (int index) |
| Can handle index? | |
Protected Attributes inherited from swift::misc::simulation::CInterpolationAndRenderingSetupBase | |
| 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.
Definition at line 145 of file interpolationrenderingsetup.h.
| QString swift::misc::simulation::CInterpolationAndRenderingSetupGlobal::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 256 of file interpolationrenderingsetup.cpp.
| QVariant swift::misc::simulation::CInterpolationAndRenderingSetupGlobal::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 264 of file interpolationrenderingsetup.cpp.
| void swift::misc::simulation::CInterpolationAndRenderingSetupGlobal::setPropertyByIndex | ( | CPropertyIndexRef | index, |
| const QVariant & | variant | ||
| ) |
Set property by index.
Definition at line 281 of file interpolationrenderingsetup.cpp.