6 #ifndef SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONRENDERINGSETUP_H
7 #define SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONRENDERINGSETUP_H
36 IndexLogInterpolation = CPropertyIndexRef::GlobalIndexCInterpolatioRenderingSetup,
37 IndexSimulatorDebugMessages,
38 IndexForceFullInterpolation,
39 IndexSendGndFlagToSimulator,
40 IndexEnabledAircraftParts,
41 IndexInterpolatorMode,
42 IndexInterpolatorModeAsString,
43 IndexFixSceneryOffset,
64 bool setLogInterpolation(
bool log);
73 bool setEnabledAircraftParts(
bool enabled);
76 bool maskEnabledAircraftParts(
bool mask);
85 bool setSendingGndFlagToSimulator(
bool sendFLag);
109 bool setInterpolatorMode(InterpolatorMode mode);
112 bool setInterpolatorMode(
const QString &mode);
115 QString convertToQString(
bool i18n =
false)
const;
124 static const QString &modeToString(InterpolatorMode mode);
131 static bool canHandleIndex(
int index);
133 bool m_logInterpolation =
false;
134 bool m_simulatorDebugMessages =
false;
135 bool m_forceFullInterpolation =
false;
136 bool m_enabledAircraftParts =
true;
137 bool m_sendGndToSim =
true;
138 bool m_fixSceneryOffset =
false;
139 int m_interpolatorMode =
static_cast<int>(Spline);
146 public CValueObject<CInterpolationAndRenderingSetupGlobal>,
153 IndexMaxRenderedAircraft = CInterpolationAndRenderingSetupBase::IndexFixSceneryOffset + 1,
154 IndexMaxRenderedDistance
161 static int InfiniteAircraft();
164 int getMaxRenderedAircraft()
const;
167 bool setMaxRenderedAircraft(
int maxRenderedAircraft);
173 void clearMaxRenderedDistance();
176 bool isRenderingEnabled()
const;
179 bool isRenderingRestricted()
const;
185 bool isMaxDistanceRestricted()
const;
188 bool isMaxAircraftRestricted()
const;
191 void clearAllRenderingRestrictions();
194 void disableRendering();
197 QString getRenderRestrictionText()
const;
203 QString convertToQString(
bool i18n =
false)
const;
212 int m_maxRenderedAircraft = InfiniteAircraft();
216 CInterpolationAndRenderingSetupGlobal,
231 public CValueObject<CInterpolationAndRenderingSetupPerCallsign>,
238 IndexCallsign = CInterpolationAndRenderingSetupGlobal::IndexMaxRenderedDistance + 1
261 bool isNull()
const {
return m_callsign.isEmpty(); }
Value object encapsulating a list of property indexes.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Value object encapsulating information of a callsign.
ColumnIndex
Base class enums.
Physical unit angle (radians, degrees)
Physical unit length (length)
static const CAngle & null()
NULL PQ.
Value object for interpolator and rendering base class.
const QString & getInterpolatorModeAsString() const
Interpolator mode.
ColumnIndex
Properties by index.
void setFixingSceneryOffset(bool fix)
Enable fix scenery offset if it has been detected.
InterpolatorMode
Interpolator type.
bool logInterpolation() const
Log.interpolation.
bool isSendingGndFlagToSimulator() const
Send GND flag to simulator.
bool isFixingSceneryOffset() const
Fix scenery offset if it has been detected.
bool isAircraftPartsEnabled() const
Aircraft parts enabled (still requires the other aircraft to send parts)
InterpolatorMode getInterpolatorMode() const
Interpolator mode.
void setForceFullInterpolation(bool force)
Force full interpolation.
void setSimulatorDebuggingMessages(bool debug)
Debugging messages for simulation.
const physical_quantities::CAngle & getPitchOnGround() const
Force a given pitch on ground.
bool showSimulatorDebugMessages() const
Debugging messages for simulation.
bool isForcingFullInterpolation() const
Full interpolation (skip optimizations like checking if aircraft moves etc.)
Value object for interpolator and rendering.
physical_quantities::CLength getMaxRenderedDistance() const
Max.distance for rendering.
Value object for interpolator and rendering per callsign.
const aviation::CCallsign & getCallsign() const
Get callsign.
void setCallsign(const aviation::CCallsign &callsign)
Set callsign.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...