Go to the documentation of this file.
62 std::optional<float> factorAbs;
63 std::optional<float> offset;
64 std::optional<bool> negativeFactor;
72 float discontinuityOffset,
88 std::optional<float> zeroOffset;
89 std::optional<float> discontinuityOffset;
90 std::optional<float> maxValue;
91 std::optional<bool> isInverted;
void setFactorIsNegative(bool isNegative)
Set the new factor sign, keep the factor absolute value unaffected.
bool getIsInverted() const
The LinearConfig class represents a linear conversion and has a factor and offset.
ModularConvertedValueConfig()=default
float getDiscontinuityOffset() const
ModularConvertedValueConfig overrideWith(const ModularConvertedValueConfig &)
float getZeroOffset() const
LinearConfig overrideWith(LinearConfig)
Perform partial override.
float getFactor() const
Get the factor.
void setIsInverted(bool isNegative)
void setOffset(float offset)
Set the offset.
float getMaxValue() const
void setZeroOffset(float zeroOffset)
void setFactorAbsoluteValue(float factorAbs)
Set the absolute value for factor, keep sign unaffected.